Closed enricozocca closed 2 years ago
Need more info about the problem...
Yes sorry, I don't know why but text was lost.
This is the problem: I'm not be able to change checkbox flag on Settings page (new Sidebar), for example if I want to create battery sensor. Flag not change when i click. nothing happen. Config page works well
This is the log: 2021-12-15 22:49:05 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140043729705664] Error handling message: Unknown error Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response await func(hass, connection, msg) File "/config/custom_components/shelly/ws_handler.py", line 114, in shelly_setting instance.set_config_sensor(id, value=="True") File "/config/custom_components/shelly/init.py", line 192, in set_config_sensor self.update_config_list(CONF_SENSORS, id, value) File "/config/custom_components/shelly/init.py", line 222, in update_config_list list = options[type] = options[type].copy() KeyError: 'sensors'
Regards Enrico
Can you take a screen shot on the settings page?
Do you have Shelly config in yaml file or added in HA gui?
Here below settings page. I'm able to change value on textbox and it's working (example decimals field). Not possible to tick/untick checbox.
I have found the problem and it will be fixed in the next release, hopefully, released today.
workaround: If you go to configuration for the integration in HA GUI and select sensors there it will then be possible to use Shelly GUI settings.
Workaround it's working but probably due to a limitiation is not possible to go on 2nd page without put mttq settings. This probably creste in my HA installation an issue and after restart shelly light entity was not discovered anymore. I think it's better to way next release! Enrico
Environment
Describe the bug
Steps to Reproduce
Expected behavior
Screenshots
Traceback/Error logs
Additional context