Analog value available on another device

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Dick60
Normal user
Posts: 242
Joined: 11 Feb 2018, 17:35
Location: The Netherlands

Analog value available on another device

#1 Post by Dick60 » 10 Jan 2023, 22:12

I use the latest build on my ESP8266. I want to use an volue from another device.
I have an LDR on DEVICE 1 (Analog ADC (TOUT)) and I want the analog value available on another device without using Domoticz. What did I do already: Created an dummy device on DEVICE 2 and read the documentation for the JSON solution. The result is this command <http:// ip DEVICE 1/json?view=sensorupdate&tasknr=9 > . The browser shows this

TaskValues
0
ValueNumber 1
Name "Analog"
NrDecimals 0
Value 483
TTL 300000
TaskEnabled "true"
TaskNumber 9

How can I get the "Value" 483 in my Dummy device on the DEVICE 2 After the value changed on DEVICE 1.

User avatar
Ath
Normal user
Posts: 3419
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Analog value available on another device

#2 Post by Ath » 10 Jan 2023, 22:16

The ESPEasy P2P Controller can be used for that: https://espeasy.readthedocs.io/en/lates ... #c013-page
It seems to describe exactly your scenario ;)
/Ton (PayPal.me)

Dick60
Normal user
Posts: 242
Joined: 11 Feb 2018, 17:35
Location: The Netherlands

Re: Analog value available on another device

#3 Post by Dick60 » 10 Jan 2023, 22:23

Not exactly because I do not use the p2p solution. I use a Domoticz controler but in this particular project I want to insert the value of my analog LDR vaue on an other device. In some situations I do not want to depand on my Domoticz. If Domoticz is down al stops and I want to be prepared for this incident. It is also extra knowledge for the future.

User avatar
Ath
Normal user
Posts: 3419
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Analog value available on another device

#4 Post by Ath » 10 Jan 2023, 22:54

Dick60 wrote: 10 Jan 2023, 22:23 Not exactly because I do not use the p2p solution. I use a Domoticz controler but in this particular project I want to insert the value of my analog LDR vaue on an other device. In some situations I do not want to depand on my Domoticz. If Domoticz is down al stops and I want to be prepared for this incident. It is also extra knowledge for the future.
That is a good reason to use the ESPEasy P2P network...
/Ton (PayPal.me)

Dick60
Normal user
Posts: 242
Joined: 11 Feb 2018, 17:35
Location: The Netherlands

Re: Analog value available on another device

#5 Post by Dick60 » 11 Jan 2023, 08:18

It works great! That it was that easy I did not expect. Good documented!
Thanks for the support.

User avatar
Ath
Normal user
Posts: 3419
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Analog value available on another device

#6 Post by Ath » 11 Jan 2023, 08:22

Dick60 wrote: 11 Jan 2023, 08:18 It works great! That it was that easy I did not expect. Good documented!
Thanks for the support.
It is called ESPEasy for a reason :D we try to make things as easy as possible
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8644
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Analog value available on another device

#7 Post by TD-er » 11 Jan 2023, 08:38

Ath wrote: 11 Jan 2023, 08:22 [...]

It is called ESPEasy for a reason :D we try to make things as easy as possible
... but not easier than possible, meaning there still is some learning curve :)

Dick60
Normal user
Posts: 242
Joined: 11 Feb 2018, 17:35
Location: The Netherlands

Re: Analog value available on another device

#8 Post by Dick60 » 11 Jan 2023, 15:13

and I am working on that. :idea:

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 25 guests