From 332d9590d9ae120091d06c94aa3b6f4c8509bac4 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Thu, 5 Nov 2026 16:22:24 +0100 Subject: [PATCH] Control energy monitor backlight by workplace presence --- automations.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/automations.yaml b/automations.yaml index 694675d..be96b63 100644 --- a/automations.yaml +++ b/automations.yaml @@ -1581,3 +1581,36 @@ entity_id: button.schlafzimmeruhr_show_seconds data: {} mode: single +- id: energymonitor_backlight_workplace_presence + alias: 'Energy Monitor: Display nach Arbeitsplatz-Anwesenheit schalten' + description: Schaltet die Displaybeleuchtung beim Verlassen des Arbeitsplatzes aus + und bei der Rückkehr wieder ein. + triggers: + - trigger: zone + entity_id: person.marcus_scholz + zone: zone.arbeitsplatz_handwerker_gewerbepark + event: leave + id: leave + - trigger: zone + entity_id: person.marcus_scholz + zone: zone.arbeitsplatz_handwerker_gewerbepark + event: enter + id: enter + conditions: [] + actions: + - choose: + - conditions: + - condition: trigger + id: leave + sequence: + - action: light.turn_off + target: + entity_id: light.energy_monitor_display_backlight + - conditions: + - condition: trigger + id: enter + sequence: + - action: light.turn_on + target: + entity_id: light.energy_monitor_display_backlight + mode: restart