Page 1 of 1

Rules not working, Publish domoticz/in

Posted: 09 Nov 2019, 23:14
by catzzz
Hello, I am trying to send sensor data using rules(https://espeasy.readthedocs.io/en/lates ... Rules.html) to domoticz but I still get "Error: MQTT: Invalid data received!"
My sensor:
Image

FW info:
Easyesp build mega-20191104
Domoticz version 4.11474

my rule:

Code: Select all

on TES#tt do
 Publish domoticz/in,{"idx":32,"nvalue":0,"svalue":"[TES#tt]"} //Own made up IDX 123456
endon

on TES#hh do
 Publish domoticz/in,{"idx":33,"nvalue":0,"svalue":"[TES#hh]"} //Own made up IDX 654321
endon
The rest of the sensors work, but use the "Send to Controller" option
In this case, I can't use this option because I have a "custom sensor" in domoticz, it only reads one IDX.

Re: Rules not working, Publish domoticz/in

Posted: 09 Nov 2019, 23:29
by TD-er
See this issue I added as a sticky issue, just to explain what has to be done: https://github.com/letscontrolit/ESPEasy/issues/2724

Re: Rules not working, Publish domoticz/in

Posted: 10 Nov 2019, 13:05
by catzzz

Code: Select all

on TES#tt do
 Publish domoticz/in,'{"idx":32,"nvalue":0,"svalue":"[TES#tt]"}' //Own made up IDX 123456
endon

on TES#hh do
 Publish domoticz/in,'{"idx":33,"nvalue":0,"svalue":"[TES#hh]"}' //Own made up IDX 654321
endon
now it's working