Hello
I don't understand if it's a domoticz, a MQTT or a ESPEasy problem configuration.
When I send From ESPEasy to domoticz via a MQTT mosquito server this command in a ESPEasy rules:
Publish domoticz/in, {"idx":35, "command":"switchlight", "switchcmd":"Set Level", "level":"30"}
I got in the domoticz log:
2018-03-15 20:26:12.826 MQTT: Topic: domoticz/in, Message: {"idx":35, "command":"switchlight", "switchcmd":"set level", "level":"30"}
2018-03-15 20:26:12.827 Error: MQTT: Invalid data received!
If I send the same command via a local mosquitto client:
mosquitto_pub -h localhost -t 'domoticz/in' -m '{"idx":35, "command":"switchlight", "switchcmd":"Set Level", "level":"30"}'
It works
Nothing special in the mosquitto.log server log.
Any idea ?
MQTT in from ESPEasy rule
Moderators: grovkillen, Stuntteam, TD-er
Re: MQTT in from ESPEasy rule
Hi, hinano2012,
One thing I do notice is that the switchcmd is "Set Level" (uppercase S and L) in the one which works, whereas the first one has lowercase letters.
Might make a difference?
HTH.
Andrew
One thing I do notice is that the switchcmd is "Set Level" (uppercase S and L) in the one which works, whereas the first one has lowercase letters.
Might make a difference?
HTH.
Andrew
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: MQTT in from ESPEasy rule
Maybe update to latest build? Rules had a bug that lower cased publish mqtt.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
-
- New user
- Posts: 4
- Joined: 13 Mar 2018, 00:27
Re: MQTT in from ESPEasy rule
Thanks for your help
- I check with lowercase in the mqtt publishing command in rules. Same thing publishing to MQTT OK but domoticz doesn't understood.
- With last sources unfortunately now ESPEasy failed to publish to MQTT mosquitto server.
bad luck
Other idea ?
- I check with lowercase in the mqtt publishing command in rules. Same thing publishing to MQTT OK but domoticz doesn't understood.
- With last sources unfortunately now ESPEasy failed to publish to MQTT mosquitto server.
bad luck
Other idea ?
Re: MQTT in from ESPEasy rule
If you use the send-to-controller-function from the device section for your MQTT-publish, then maybe you take a look here.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 122 guests