Closed ZackWilson90 closed 2 years ago
I seem to have the same issue. Affects light groups of only sengled bulbs for some reason. If an automation turns on the bulbs the state will not update but it does update when turning off through another automation?!? It's very strange. Could home assistant be set to poll the status of the lights at a regular interval or a configurable interval preferably?
The current SCAN_INTERVAL is 10 second's.
Was able to get the logger running and found this: Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/connection.py:96 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 12:51:24 PM (8 occurrences) Last logged: 12:51:24 PM
[547888254304] Received invalid command: hacs/subscribe
configuration.yaml
:
logger:
default: warning
logs:
custom_components.sengledapi: debug
I'm going to close this issue. Technically it didn't resolve, I just ended up deciding to use the ZHA integration and bypass the Sengled system all together.
@jfarmer08 @ZackWilson90 I've submitted a PR to fix this issue (I also had a similar problem).
PS. I only have the element bulbs with a hub so I'm unable to test if this breaks other things (it looks like the blame for the line was for an issue with switches).
This may not be a bug, but rather me not understanding the features of this integration properly. I use home assistant primarily to view data and not control at the moment. When I turn a bulb on or off through Alexa or the Sengled app, the state of that bulb shown in home assistant doesn’t change. I assume it only polls the state when telling the bulbs to change? Would there be a way to add automatic state polling or is there a limitation on the API? Thanks!