spigotx / Moodlite

Moodlite
GNU General Public License v3.0
109 stars 17 forks source link

MQTT light control by Hue Essential Android App #23

Open DaOliver86 opened 3 years ago

DaOliver86 commented 3 years ago

Hello everybody,

I would like to control my Moodlite panels via Hue App. For this, the DIYHUE project (https://github.com/diyhue/diyHue) enables adding MQTT controlled lights - I opend up a topic there as well (https://github.com/diyhue/diyHue/issues/497).

I managed to pair my Moodlite with the DIYHUE and it showes up in the Android App. Unfortunately, the required payloads differ from the payloads sent by DIYHUE. The Moodlite project contains the MQTT folder, but I can not find any documentation on this on. The main problem at this point is, that I am not able to change the payload required for turning the light on/off, change colour, speed, pattern and so on in Moodlite and not in DIYHUE. Where are the inputs for the SET topics in the Moodlite projects defined? DIYHUE is sending following payloads when: Turning On: {"transition": 0.3, "state": "ON"} Turning Off: {"transition": 0.3, "state": "OFF"} Changing color: {"transition": 0.3, "color": {"r": 0, "g": 45, "b": 35}} Changing brithness: {"transition": 0.3, "brightness": 65}

Maybe somebody can give me a hint on how to costumize the required MQTT inputs to make this work.

Thank you everbody!