sidoh / esp8266_milight_hub

Replacement for a Milight/LimitlessLED hub hosted on an ESP8266
MIT License
931 stars 219 forks source link

MQTT setup example #789

Closed axelrathey closed 9 months ago

axelrathey commented 1 year ago

Hi,

Can you give a setup example to use it with mosquitto MQTT broker. Are there wildcards in the mqtt pattern allowed? What is the difference between "MQTT update topic pattern" and "MQTT status topic pattern" and "MQTT Client Status Topic"?

I tried different things but there ist nothing else as $SYS to bee seen on mosquitto MQTT broker. Other MQTT clients like instar camera works on my mosquitto.

I tried something like "milight/0x155C/#" for the pattern

Thanks Axel

Linkenelis commented 1 year ago

Client Status => connected; ip etc

here is how it look in my broker: image

and the settings: image image

Update = latest change State = current state (eg on/off; brightnesd bulb_mode; color; device type

image

axelrathey commented 1 year ago

Hi Linkenelis, tanks a lot, now it works. The cmnd ist to switch the lamps from within mqtt? Axel

Linkenelis commented 1 year ago

Hi Linkenelis, tanks a lot, now it works. The cmnd ist to switch the lamps from within mqtt? Axel Yes. For me I use UDP for commands, but MQTT should work.