Populate dummy device with Domoticz data

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
wizworks
New user
Posts: 3
Joined: 03 Feb 2017, 06:03

Populate dummy device with Domoticz data

#1 Post by wizworks » 07 Feb 2017, 23:53

Hi,

Is there a way to create a dummy device on the EASY ESP and populate it with data from a Domoticz system?

Here's what I want to do:

I have an ESP8266 dev module with an OLED screen and I want to grab the electric utilization data from the sensor on the Domoticz controller (say idx 68) and put its value into the dummy device on the ESP8266.
I then want to display the value from the dummy device on the OLED screen so that I can see the electric usage data on the OLED.

Is this possible?

User avatar
Westcott
Normal user
Posts: 24
Joined: 05 Sep 2016, 18:14
Location: Gloucester
Contact:

Re: Populate dummy device with Domoticz data

#2 Post by Westcott » 09 Feb 2017, 11:21

Yes, there is a dummy device that will hold up to 4 values.
I use this in Domoticz to update the setpoint value -
url = 'curl -m 5 "http://sonoff-1/control?cmd=event,Setpo ... herdevices['Cylinder setpoint']..'"'
assert(io.popen(url))
and an ESPeasy rule to update the 1st value of task 6 (device) -
on Setpoint do
TaskValueSet 6,1,%eventvalue%
endon
Domoticz, Sonoff, ESP32

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 28 guests