esp8266_milight_hub: /Settings endpoint returns half the required data
Describe the bug
FYI: I have looked through the ‘troubleshooting’ and ‘issues’ tab and could not find a fitting/duplicate issue.
When attemping to open the settings in the webUI/rest API the content returned is incomplete. All other endpoints are working fine.
JSON returned:
{"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":"","mqtt_username":"","mqtt_password":"","mqtt_topic_pattern":"","mqtt_update_topic_pattern":"","mqtt_state_topic_pattern":"","mqtt_client_status_topic":"","simple_mqtt_client_status":false,"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":"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":"","wifi_mode":"g","d"
As you can see the JSON is incomplete and thus I cannot properly read/edit my settings.
Steps to reproduce
- Power on ESP
- Open WebUI / Go to (my hub url)/settings
- Wait for response
- Response is incomplete / (current-) settings are empty
Expected behavior
When opening the settings tab, the current settings should be displayed in the required fields. When ‘get’-ing the data from the /settings endpoint the data should return all the current settings in a complete JSON structure.
Setup information
Firmware version
1.11.1-nodemcuv2 1.11.2-nodemcuv2
Output of http://milight-hub.local/about
{"firmware":"milight-hub","version":"1.11.2","ip_address":"192.168.22.105","reset_reason":"Software/System restart","variant":"nodemcuv2","free_heap":20336,"arduino_version":"3.1.2","free_stack":1792,"flash_used":12299,"flash_total":957314,"flash_pct_free":98,"queue_stats":{"length":0,"dropped_packets":0}}
Output of http://milight-hub.local/settings
Incomplete since that is the bug I am encountering.
{"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":"","mqtt_username":"","mqtt_password":"","mqtt_topic_pattern":"","mqtt_update_topic_pattern":"","mqtt_state_topic_pattern":"","mqtt_client_status_topic":"","simple_mqtt_client_status":false,"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":"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":"","wifi_mode":"g","d
Additional context
About this issue
- Original URL
- State: open
- Created 6 months ago
- Comments: 18 (3 by maintainers)
Won’t help as I have confirmed it’s not the settings, it has something to do with the chip itself. I ordered a ESP-12E chip and it worked fine after.
So guess @sidoh would need to check if there is something he can do about the specific 12F chips(but I guess it isn’t worth it)