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.

image image

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

  1. Power on ESP
  2. Open WebUI / Go to (my hub url)/settings
  3. Wait for response
  4. 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)

Most upvoted comments

Happy to give it a shot. I’m away from home for the next week or so no access to my ESPs, but will report back when I return!

@sidoh Have you had the time to try this?

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)