tschamm / boschshc-hass

Home Assistant component for accessing Bosch Smart Home Controller using boschshcpy python library.
Other
168 stars 25 forks source link

PhantomEvents after restart and return from unavailability #128

Closed COLT9001 closed 10 months ago

COLT9001 commented 10 months ago

Hello,

Since the first day of using this HACS package, I have observed a phenomenon that events are triggered after updates or restarts, even though no user has pressed a switch or similar. In the logs you can see that at certain times a switch triggers an event even though everyone was asleep, which of course ended when the white light was switched on..... An example of the universal switch II from the log

SwitchCouch Battery was normal 21:37:55 - 11 hours ago Bosch SHC 'PRESS_SHORT' click event for SchalterCouch button 'LOWER_RIGHT_BUTTON' was fired. 21:37:55 - 11 hours ago SchalterCouch Button UPPER_RIGHT_BUTTON detected an event 21:37:55 - 11 hours ago SchalterCouch Button UPPER_LEFT_BUTTON detected an event 21:37:55 - 11 hours ago SchalterCouch Button LOWER_RIGHT_BUTTON detected an event 21:37:55 - 11 hours ago SchalterCouch Button LOWER_LEFT_BUTTON detected an event 21:37:55 - 11 hours ago SchalterCouch Battery became unavailable 21:37:55 - 11 hours ago

I also always have the problem that switches don't work after restarting HomeAssistant. I always have to press all the switches once and then reload the devices under /Devices/Integration. Then all the switches that I pressed once before work again, but all the others still don't work. However, the switches work in Bosch SmartHome, it is not due to the Bosch API but to this repo Somehow it looks to me as if a flag is not working properly!

tschamm commented 10 months ago

I confirm a bug when restarting the Bosch Smart Home Controller, making key press events unavailable until pressing a button and then restarting HA. I fixed that. I cannot confirm Phantom Events however.

COLT9001 commented 10 months ago

Hallo, der Fehler muss irgendwo bei einem Trigger für das Event liegen. Leider hat der Schalter wohl keine Stabile Funkverbindung (warum auch immer) und löst dadurch regelmäßig die Events aus.

Komisch ist, dass ich auf allen vier Tastern eine Automation liegen habe aber nur die PRESS_SHORT UPPER_RIGHT_BUTTON wirklich auch eine Aktion auslöst.

Ich habe auch schon das Debug Log aktiviert aber keine Fehler in Bezug auf dieses Thema gefunden...... Wenn mir jemand einen Einstiegspunkt im Quellcode geben könnte dann kann ich mal schauen ob ich mich da rein arbeiten kann.......

SchalterCouch Battery was normal 13:13:32 - 42 minutes ago Bosch SHC 'PRESS_SHORT' click event for SchalterCouch button 'UPPER_RIGHT_BUTTON' was fired. 13:13:31 - 42 minutes ago SchalterCouch Button UPPER_RIGHT_BUTTON detected an event 13:13:31 - 42 minutes ago SchalterCouch Button UPPER_LEFT_BUTTON detected an event 13:13:31 - 42 minutes ago SchalterCouch Button LOWER_RIGHT_BUTTON detected an event 13:13:31 - 42 minutes ago SchalterCouch Button LOWER_LEFT_BUTTON detected an event 13:13:31 - 42 minutes ago SchalterCouch Battery became unavailable 13:13:31 -

COLT9001 commented 10 months ago

Die Problematik mit dem Verbindungsabbruch bzw. der schwachen Signalstärke scheint auch generell ein Problem bei dem Universalschalter II zu sein..... https://community.bosch-smarthome.com/t5/technische-probleme/universalschalter-ii-signalst%C3%A4rke-sehr-schwach/m-p/42376