sidoh / esp8266_milight_hub

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

Changing Setting of Group does not change settings for single light #755

Open andiaa734 opened 2 years ago

andiaa734 commented 2 years ago

Describe the bug

When you select All lights on a remote and change color, everything is working fine. But then if you select a single light and change e.g. its brightness this light is switched back to it's previous color.

Steps to reproduce

Setup some custom lights with esphome, let the listen and report to mqtt. Select All lights on a remote and change color. Select a single light and change brightness.

Expected behavior

Only the brightness is changed. Color keeps the same

Setup information

Firmware version

Output of http://milight-hub.local/about

"... /about output. put between the ```s"

{"firmware":"milight-hub","version":"UNKNOWN","ip_address":"192.168.10.60","reset_reason":"External System","variant":"nodemcuv2","free_heap":14848,"arduino_version":"2_4_2","queue_stats":{"length":0,"dropped_packets":0}}

Output of http://milight-hub.local/settings

"... /settings output. put between the ```s"

{"admin_username":"","admin_password":"","ce_pin":4,"csn_pin":15,"reset_pin":0,"led_pin":-2,"radio_interface_type":"nRF24","packet_repeats":50,"http_repeat_factor":1,"auto_restart_period":0,"mqtt_server":"192.168.10.253","mqtt_username":"user","mqtt_password":"password","mqtt_topic_pattern":"milight/commands/:device_id/:device_type/:group_id","mqtt_update_topic_pattern":"milight/updates/:device_id/:device_type/:group_id","mqtt_state_topic_pattern":"milight/states/:device_id/:device_type/:group_id","mqtt_client_status_topic":"milight/client_status","hass_server":"","api_token":"","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":0,"packet_repeat_throttle_threshold":200,"packet_repeat_minimum":3,"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":"HIGH","rf24_listen_channel":"MID","wifi_static_ip":"","wifi_static_ip_gateway":"","wifi_static_ip_netmask":"","packet_repeats_per_loop":10,"home_assistant_discovery_prefix":"homeassistant","wifi_mode":"n","default_transition_period":500,"rf24_channels":["HIGH"],"device_ids":[6041],"gateway_configs":[],"group_state_fields":["state","brightness","mode","color_temp","bulb_mode","computed_color"],"group_id_aliases":{"ambilight1":["fut089",6041,1]}}

Additional context

Maybe the settings of the single light has to be updated when there is a change on Group 0.