Rules not working, Publish domoticz/in

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
catzzz
Normal user
Posts: 2
Joined: 09 Nov 2019, 23:01

Rules not working, Publish domoticz/in

#1 Post by catzzz » 09 Nov 2019, 23:14

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.

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

Re: Rules not working, Publish domoticz/in

#2 Post by TD-er » 09 Nov 2019, 23:29

See this issue I added as a sticky issue, just to explain what has to be done: https://github.com/letscontrolit/ESPEasy/issues/2724

catzzz
Normal user
Posts: 2
Joined: 09 Nov 2019, 23:01

Re: Rules not working, Publish domoticz/in

#3 Post by catzzz » 10 Nov 2019, 13:05

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

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests