toblum / McLighting

The ESP8266 based multi-client lighting gadget
MIT License
1.05k stars 291 forks source link

No response on MQTT "<HOSTNAME>/in" #480

Open maxledfreak opened 4 years ago

maxledfreak commented 4 years ago

Hello,

try to control LEDs over MQTT. If I chance parameter over web interface, messages on /out are published. Tested with MQTT.fx and iobroker. Message are like "OK %50". When I try to send on /in message like "%70" or other strings from API description, nothing hapens. Setup in code: mclighting Right know, I have no idea what is wrong with my setup, because receiving messages is no problem on 2 independent systems but not sending any commands.

Any idea what could be wrong with my setup?

greetings max

gitpower2017 commented 3 years ago

Hello,

I had the same problem. With the "homeassistant" path it works.

Set: home.HOSTNAME_ha.state.in Answer: home.HOSTNAME_ha.state.out

in the answer you see the whole string:

{"state":"ON","segment":0,"color":{"r":255,"g":255,"b":0,"w":255,"r2":255,"g2":0,"b2":3,"w2":0,"r3":255,"g3": 179,"b3":0,"w3":0},"white_value":255,"brightness":255,"color_temp":327,"speed":100,"effect":"Static"}

You can set a subset: (for example)

{"color":{"r":255,"g":255,"b":0,"w":255},"brightness":"255","effect":"Static"}

I have the fork for the sk6812 and w: is the withe LED or {"brightness":8,"speed":10,"effect":"Rainbow Cycle"}