sidoh / esp8266_milight_hub

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

Domoticz 2024.7 fails with v1.13 #854

Open sincze opened 17 hours ago

sincze commented 17 hours ago

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}}

sidoh commented 16 hours ago

Hello! The backend changes in 1.13 are pretty limited and shouldn't cause any issues like this. Can you try downgrading to 1.12 and see if it still works?

State output shouldn't be any different as long as your config hasn't changed.

I don't use domoticz, so hard for me be super helpful here. Happy to fix anything that's broken, but might need a hand isolating the issue.