From c070346afea46322c9b728412de857b0887ff609 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Thu, 24 Sep 2026 15:27:59 +0000 Subject: [PATCH] automations.yaml --- automations.yaml | 52 ++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/automations.yaml b/automations.yaml index 59093055..421f3166 100644 --- a/automations.yaml +++ b/automations.yaml @@ -3728,41 +3728,41 @@ path: jhol-byte/Ikea_bilresa_scroll_wheel.yaml - id: '1787723814939' alias: 3D Printer Lights - Toggle from Boolean - description: Turns 3D printer light on/off when input_boolean.3d_printer_light is - toggled + description: Turns the SparkX i7 light on or off when input_boolean.3d_printer_lights + changes. triggers: - - trigger: state - entity_id: input_boolean.3d_printer_lights + - entity_id: input_boolean.3d_printer_lights + trigger: state actions: - - if: + - else: + - action: light.turn_off + data: {} + target: + entity_id: light.sparkx_i7_light + if: - condition: state entity_id: input_boolean.3d_printer_lights state: 'on' then: - action: light.turn_on - target: - entity_id: light.3d_printer_lights_local data: {} - else: - - action: light.turn_off target: - entity_id: light.3d_printer_lights_local - data: {} + entity_id: light.sparkx_i7_light mode: single - id: '1787723854939' alias: 3D Printer Lights - Sync Boolean - description: Syncs input_boolean.3d_printer_light when 3D printer light is toggled - manually + description: Synchronizes input_boolean.3d_printer_lights when the SparkX i7 light + changes manually. triggers: - - trigger: state - entity_id: light.3d_printer_lights_local + - entity_id: light.sparkx_i7_light id: light_changed - - trigger: homeassistant - event: start + trigger: state + - event: start id: ha_start + trigger: homeassistant conditions: - condition: template - value_template: '{{ is_state(''input_boolean.3d_printer_lights'', ''on'') != is_state(''light.3d_printer_lights_local'', + value_template: '{{ is_state(''input_boolean.3d_printer_lights'', ''on'') != is_state(''light.sparkx_i7_light'', ''on'') }}' actions: - if: @@ -3771,20 +3771,20 @@ then: - delay: seconds: 15 - - if: + - else: + - action: input_boolean.turn_off + data: {} + target: + entity_id: input_boolean.3d_printer_lights + if: - condition: state - entity_id: light.3d_printer_lights_local + entity_id: light.sparkx_i7_light state: 'on' then: - action: input_boolean.turn_on + data: {} target: entity_id: input_boolean.3d_printer_lights - data: {} - else: - - action: input_boolean.turn_off - target: - entity_id: input_boolean.3d_printer_lights - data: {} mode: single - id: '1787790202454' alias: Z2M Error Monitor