Fix spontan doorbell efter HA genstart: restart-safe event_cnt

- input_number initial sat til -1 (sentinel for 'aldrig synkroniseret')
- condition fjernet, event_cnt check flyttet ind i action blok
- counter opdateres ALTID (ogsaa ved wake-up)
- doorbell koerer kun naar old_cnt >= 0 OG new_cnt != old_cnt
- foerste wake-up efter restart synkroniserer stille uden at ringe
This commit is contained in:
2026-04-20 07:01:19 +02:00
parent ce888204db
commit 43034bb41e
3 changed files with 41 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
shelly_bagdor_event_cnt:
name: Shelly bagdoer event count
min: -1
max: 99999
step: 1
mode: box
initial: -1
shelly_fordor_event_cnt:
name: Shelly fordoer event count
min: -1
max: 99999
step: 1
mode: box
initial: -1