esp8266_milight_hub: Domoticz 2024.7 fails with v1.13
Describe the bug
Domoticz Mi-Lights discovered via auto discovery do not respond correctly anymore. Colors can not be changed / brightness does not respond
Steps to reproduce
Install latest version of the bridge software.
Expected behavior
Domoticz should be able to control the lights as with pre FW versions.
Setup information
Firmware version
1.13
Output of http://milight-hub.local/about
"{
"firmware": "milight-hub",
"version": "1.13.0",
"ip_address": "192.xxx.xxx.xxx",
"reset_reason": "Software/System restart",
"variant": "d1_mini",
"free_heap": 14368,
"arduino_version": "3.1.2",
"free_stack": 1168,
"flash_used": 11797,
"flash_total": 957314,
"flash_pct_free": 98,
"mqtt": {
"configured": true,
"connected": true,
"status": "Connected"
},
"queue_stats": {
"length": 0,
"dropped_packets": 0
}
}"
Output of http://milight-hub.local/settings
{
"admin_username": "idonot",
"admin_password": "wanttosharethis",
"ce_pin": 4,
"csn_pin": 15,
"reset_pin": 0,
"led_pin": -2,
"radio_interface_type": "nRF24",
"packet_repeats": 75,
"http_repeat_factor": 1,
"auto_restart_period": 0,
"mqtt_server": "mqtt.myserver.lan:1883",
"mqtt_username": "top",
"mqtt_password": "secret",
"mqtt_topic_pattern": "milight/commands/:device_id/:device_type/:group_id",
"mqtt_update_topic_pattern": "",
"mqtt_state_topic_pattern": "milight/state/:device_id/:device_type/:group_id",
"mqtt_client_status_topic": "milight/client_status",
"simple_mqtt_client_status": true,
"discovery_port": 48899,
"listen_repeats": 3,
"state_flush_interval": 10000,
"mqtt_state_rate_limit": 500,
"mqtt_debounce_delay": 500,
"mqtt_retain": true,
"packet_repeat_throttle_sensitivity": 20,
"packet_repeat_throttle_threshold": 750,
"packet_repeat_minimum": 100,
"enable_automatic_mode_switching": false,
"led_mode_wifi_config": "Fast toggle",
"led_mode_wifi_failed": "On",
"led_mode_operating": "Slow blip",
"led_mode_packet": "Flicker",
"led_mode_packet_count": 3,
"hostname": "milight-hub",
"rf24_power_level": "MAX",
"rf24_listen_channel": "LOW",
"wifi_static_ip": "",
"wifi_static_ip_gateway": "",
"wifi_static_ip_netmask": "",
"packet_repeats_per_loop": 75,
"home_assistant_discovery_prefix": "milight-discovery",
"wifi_mode": "n",
"default_transition_period": 500,
"rf24_channels": [
"LOW",
"MID",
"HIGH"
],
"device_ids": [
2651,
51994
],
"gateway_configs": [
[
51994,
8899,
5
],
[
2651,
8898,
5
]
],
"group_state_fields": [
"state",
"brightness",
"computed_color",
"mode",
"color_temp",
"color_mode",
"status"
]
}"
Additional context
I noticed the commands seems to have changed a bit: from:
{
"state": "ON",
"brightness": 255,
"color": {
"r": 255,
"g": 255,
"b": 255
},
"color_mode": "brightness",
"status": "ON"
}
To:
{"state":"ON","color":{"r":255,"g":136,"b":100}}
{"state":"ON","brightness":148}
{"state":"ON","color":{"r":255,"g":255,"b":255}}
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 35 (10 by maintainers)
@sincze The state topic is one-way and only shows the current state. You want to use the command topic to control the lights.
For reference, here is what the supported discovery configs are:
https://www.home-assistant.io/integrations/light.mqtt/#json-schema---configuration
So that should indeed be set to true.
This should not have brightness in it.