Doerklokker: nattestop 22-06, logbook debug, batteri-overvågning

- bagdoer + fordoer: bloker lyd/notifikation kl 22-06
- logbook.log for ALLE MQTT events (ogsaa wake-ups) til debugging
- Ny sensor: shelly_bagdoer_batteri + shelly_fordoer_batteri (MQTT)
- Ny automation: notifikation ved under 30% batteri
This commit is contained in:
2026-04-21 06:39:38 +02:00
parent 8fa3cf7c87
commit c82c8a66e5
4 changed files with 61 additions and 0 deletions
+13
View File
@@ -20,9 +20,22 @@
entity_id: input_number.shelly_bagdor_event_cnt
data:
value: "{{ new_cnt }}"
# Log ALLE MQTT events (ogsaa filtrerede) til logbog for debugging
- service: logbook.log
data:
name: "Shelly bagdoer"
message: >-
MQTT event={{ trigger.payload_json.event }}
event_cnt={{ new_cnt }} (old={{ old_cnt }})
battery={{ trigger.payload_json.battery | default('?') }}%
entity_id: input_number.shelly_bagdor_event_cnt
# Stop hvis: foerste sync efter restart (old=-1) eller samme cnt (periodisk wake-up)
- condition: template
value_template: "{{ old_cnt >= 0 and new_cnt != old_cnt }}"
# Bloker ringeklokke om natten (22-06)
- condition: time
after: '06:00:00'
before: '22:00:00'
- choose:
- conditions:
- condition: template