Interacting with Domoticz
Posted: 17 Mar 2019, 13:08
I am working on a project where ESP Easy is interacting with Domoticz, or the other way around. I have now managed to get information from Domoticz to ESP Easy and Domoticz to read values from devices on ESP Easy. I am using two Setpoints on Domoticz to set wanted value of the temperature using rules on ESP Easy and dzVents on Domoticz:
return {
active = true,
on = {
devices = {
'BadNede'}
},
execute = function(domoticz, device)
local url= 'http://10.0.0.217/control?cmd=event,Bad ... ice.state)..'' -- your IP !!!
print(url)
domoticz.openURL(url)
end}
This works as expected.
Now I want to implement a dummy switch which I want to use to indicate the status of the relays, but I don't know if this can be done by rules on ESP Easy, and if so how it should be implemented.
It is possible this is not a topic for this forum, so I cross post it on the Domoticz forum.
Best regards
Ulf
return {
active = true,
on = {
devices = {
'BadNede'}
},
execute = function(domoticz, device)
local url= 'http://10.0.0.217/control?cmd=event,Bad ... ice.state)..'' -- your IP !!!
print(url)
domoticz.openURL(url)
end}
This works as expected.
Now I want to implement a dummy switch which I want to use to indicate the status of the relays, but I don't know if this can be done by rules on ESP Easy, and if so how it should be implemented.
It is possible this is not a topic for this forum, so I cross post it on the Domoticz forum.
Best regards
Ulf