tschamm / boschshc-hass

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

false event recognized #192

Open andreas257 opened 3 months ago

andreas257 commented 3 months ago

Hi, I am using Universal Switch 2 and implemented automations, triggered by button events. I am using 3 of the 4 buttons, all triggered by "PRESS_SHORT" event. Now I am having the issue that few times a day an event is recognized by HA which has not been triggered by pressing any button on the switch. Checking the HA logbook, I see the following entries:

last entry is triggering my automation. My 2 other automations based on other buttons are not triggered.

any idea what the cause of the issue and a solution could be?

tschamm commented 2 months ago

Do you still see these phantom clicks. It might happen if the switch is not available and turns available again. I haven't check that on my side.

Nalugas42 commented 3 weeks ago

Hi together, same issue on my side. I´m also using the Universal Switch II. These phantom clicks are occuring once a month at my system.

Bildschirmfoto 2024-11-08 um 08 52 30

In my case it also starts with battery not available and finally the 'UPPER_LEFT_BUTTON' was fired.

I recognized this problem the first time in the end of 2023. In the past I had the problem several times a day. Nowadays it only occurs once a month.

tschamm commented 3 weeks ago

Seems that these events are created after an entity becomes available again. Need to dig deeper into the code if the events are reported by the API when the device becomes available.

Nalugas42 commented 3 weeks ago

Can I support with more or special logfiles? If yes, which ones are interssting? But maybe it needs some more days or weeks until this false trigger occours again.

Nalugas42 commented 6 days ago

Hello together, I think I found a very native workaround to avoid my phantom clicks with Bosch Universal Switch II. In my automations which use the Button LOWER_LEFT_BUTTON etc. as trigger, I added the condition "battery state normal" for the last 30 seconds. In the last weeks it avoided my phantom klicks and triggers in the automations. I'll keep you up to dat if it will work for long term solution.