From 260353b9d0fc4cd50e1b88d42627bed89ef295c5 Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Sat, 20 Jun 2026 19:33:01 +0200 Subject: [PATCH] Ventilator: start via switch button 2 long press (Andreas + Daniel), sluk efter slider-timer --- include/automations/ventilator_button.yaml | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 include/automations/ventilator_button.yaml diff --git a/include/automations/ventilator_button.yaml b/include/automations/ventilator_button.yaml new file mode 100644 index 0000000..dd31482 --- /dev/null +++ b/include/automations/ventilator_button.yaml @@ -0,0 +1,41 @@ +- id: '1750445000001' + alias: Andreas ventilator start - switch button 2 longpress + description: Long press på button 2 (dæmp op) tænder ventilatoren og slukker den + efter sluk-timer-slideren (input_number.andreas_ventilator_timer) + trigger: + - platform: event + event_type: hue_event + event_data: + device_id: d8eb3c4b3fcc7cc36600b24aa819c180 + type: long_release + subtype: 2 + condition: [] + action: + - service: light.turn_on + target: + entity_id: light.indkorsel_plug + - service: script.turn_on + target: + entity_id: script.andreas_ventilator_sluk_timer + mode: restart + +- id: '1750445000002' + alias: Daniel ventilator start - switch button 2 longpress + description: Long press på button 2 (dæmp op) tænder ventilatoren og slukker den + efter sluk-timer-slideren (input_number.daniel_ventilator_timer) + trigger: + - platform: event + event_type: hue_event + event_data: + device_id: e286dca25ab7ad629af4f7c1ebdf40b2 + type: long_release + subtype: 2 + condition: [] + action: + - service: switch.turn_on + target: + entity_id: switch.stik_daniel + - service: script.turn_on + target: + entity_id: script.daniel_ventilator_sluk_timer + mode: restart