voed / esphome_prana_ble

ESPHome component for Prana recuperators
15 stars 3 forks source link

Fan lock switch #27

Open matlar83 opened 1 week ago

matlar83 commented 1 week ago

When I toogle the "fan lock" switch,

it toggle by itself other 2 times: https://github.com/user-attachments/assets/d140a818-d99e-4c97-b3ff-a5c4ad81a112

The final result is correct, but - because I use the switch value to show or hide a UI tab - it produces a flickering UI.

voed commented 1 week ago

Can you check now? It's still may happen sometimes, but very rarely.

matlar83 commented 1 week ago

I tried the new version, it is for sure an improvement. It still happen, even if not every time. But it is not so rare to happen, I would say 20% of the time.

voed commented 1 week ago

Try to reduce update interval to 0.4-0.5s:

prana_ble:
  - id: prana_client
    ble_client_id: prana
    update_interval: 0.5s

Should be better. But cannot get rid of this completely right now, it needs a deep rework to fix that.

matlar83 commented 1 week ago

Seems better, it's fully usable. Thank you