Closed Stupco closed 1 year ago
Updated with telnet logs.
I think this needs to be looked at from the HA / CC side... there is a ton of repeated commands sent to the plate. So that's why it is acting erratic.
Please provide HA logs with:
custom_components.openhasp: debug
Perform all steps below and tick them with [x]
Describe the bug
When turning on the light, the command is sent from the plate to HA to turn on the light. If you are using the openHASP custom component to set state values for buttons, they can sometimes lag out and cause small loops.
This causes the light to flicker a few times, until it finds a normalised states. Unfortunately it can finally decide to settle in the OFF state, so it is impossible to turn lights on and keep on using the plate in production with this bug. Usually a reset of the plate (remove from wall and reconnect) can resolve this. Will usually occur a few days later.
To Reproduce
I think this could potentially be caused by a delay caused in WiFi messages and MAY be more pronounced the further your plate is away from the WiFi router. Provide a small, independent code sample that can be used to reproduce the issue. Format the code like this:
Telnet Logs: Logs.txt
Expected behavior
Lights to not flicker and to turn on.
Noting that the use of GROUPID will remove this issue (I will start to update my jsonl pages), unfortunately until the last brightness is passed through (issue:99) the lights turn on at full brightness which is not a great solution for production use cases.
Screenshots or video
https://user-images.githubusercontent.com/64451616/131414768-2d1c6765-045a-4ffc-b965-ea29527aca18.mp4