Whenever the radio is restarted, it turns on the lights to a specific value even if there was no command sent.
roydestroy opened this issue · comments
Describe the bug
Whenever the radio is restarted, for example after a complet reset or chaning radio values, the lights either turn on (if they were off) or change their brightness to a specific value (if they were on and at a different brightness level than the one the radio sends)
Steps to reproduce
Just restarting the device should do this.
Expected behavior
Restarting the device or chaning radio values like the send channel or listen channel should not send any command at all.
Setup information
Firmware version
1.11.2 (nodemcuv2)
Output of http://milight-hub.local/about
{"firmware":"milight-hub","version":"1.11.2","ip_address":"192.168.1.27","reset_reason":"Software/System restart","variant":"nodemcuv2","free_heap":18120,"arduino_version":"3.1.2","free_stack":1600,"flash_used":16315,"flash_total":957314,"flash_pct_free":98,"queue_stats":{"length":0,"dropped_packets":0}}
Output of http://milight-hub.local/settings
{"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.1.42:1883","mqtt_username":"","":"","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","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":"Slow blip","led_mode_operating":"On","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":10,"home_assistant_discovery_prefix":"homeassistant","wifi_mode":"g","default_transition_period":500,"rf24_channels":["HIGH"],"device_ids":[51622],"gateway_configs":[],"group_state_fields":["state","brightness","mode"]}
Additional context
Nevermind it was retained past messages. I removed them and it was fixed sorry for this.