Open wertzui opened 3 years ago
version 1.10.6 I have IOBroker with build-in (plugin) MQTT, both state and update are set when changes happen. MQTT for MiLight hub is only used for timer commands (On/Off), as IOBroker has a Pluin for MiLight hub. But I tried out this issue anyway.. turn off: state = {"state":"OFF","brightness":110,"bulb_mode":"color","color":{"r":255,"g":66,"b":69},"device_type":"rgb_cct"} update = {"state":"OFF"}
turn on: state = {"state":"ON","brightness":110,"bulb_mode":"color","color":{"r":255,"g":66,"b":69},"device_type":"rgb_cct"} update = {"state":"ON"}
change brightness: state = {"state":"ON","brightness":125,"bulb_mode":"color","color":{"r":255,"g":66,"b":69},"device_type":"rgb_cct"} update = {"state":"ON"} -> expected {"brightness":125} It is updated, but to {"state":"ON"}, not to brightness
If all you need is "state" (or command), on my system it works OK.
Are you sending the commands from IOBroker through MQTT to a MiLight Bulb, or sending the commands from a MiLight Remote through MQTT to IOBroker?
My Problem is the second one here, as a tap on the MiLight remote does not result in the MQTT state topic for that remote button getting updated. If it is ObenHAB, IOBroker or anything else reading the MQTT topic does not matter, as there is no update send from the MiLight Hub to the MQTT topic.
From IOBroker using UDP to Milight-hub, then reading MQTT. but still not the same :-) I wil try the T4...
Hmmm. I have 2 devices in MiLighthub device 0x1 and 0x2. The wallswitch (a T4) reports on 0x2227 state and update in the same manner as the MiLight-hub
mqtt.0 -> milight -> state (update and command are also this level) -> 0x01, 0x02 and 0x2227 below each -> group ID 1 to 4 + All
This is happening... in settings: milight/state/:device_id/:group_id in mqtt: milight/:device_id/state/:group_id
Oh same for update..
Oops sorry! got things mixed up...
I tried group 1 on the T4 (device_id = 0x2227
I put a screenshot, so there can be no mistakes
Describe the bug
1.10.6 introduced the MQQT debounce delay. With 1.10.5, repeated presses of the same remote button would be send to the MQTT state topic. Since 1.10.6 the state topic is not send again, but only the update topic is sent. THis breaks the workflow described below.
Steps to reproduce
Expected behavior
state topic is updated and light will turn on
Setup information
Firmware version
1.10.6 and 1.10.7 show this bug 1.10.5 is the last version which does not have this bug
Output of http://milight-hub.local/about
Output of http://milight-hub.local/settings
Additional context