From ff62b812af85e40c0c330dd191ce7a4ba58a19a7 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Thu, 24 Sep 2026 15:37:14 +0000 Subject: [PATCH] automations.yaml --- automations.yaml | 107 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 83 insertions(+), 24 deletions(-) diff --git a/automations.yaml b/automations.yaml index ef941a13..ad92612e 100644 --- a/automations.yaml +++ b/automations.yaml @@ -3657,46 +3657,77 @@ mode: single - id: '1787723383610' alias: 3D Printer Lights Control - Scroll Wheel - description: Controls the SparkX i7 on/off light and the bedroom lamp from the 3D - printer scroll wheel. Right-scroll turns lights on; left-scroll turns them off. + description: Controls the SparkX i7 light, local 3D printer light, and bedroom lamp + from the 3D printer scroll wheel. Right-scroll turns lights on; left-scroll turns + them off. use_blueprint: input: click_action_ch1: - - action: light.toggle - data: {} - metadata: {} - target: - entity_id: light.sparkx_i7_light + - choose: + - conditions: + - condition: state + entity_id: light.sparkx_i7_light + state: 'on' + sequence: + - action: light.turn_off + target: + entity_id: light.sparkx_i7_light + - action: light.turn_off + continue_on_error: true + target: + entity_id: light.3d_printer_lights_local + default: + - action: light.turn_on + target: + entity_id: light.sparkx_i7_light + - action: light.turn_on + continue_on_error: true + target: + entity_id: light.3d_printer_lights_local click_action_ch2: - else: - action: light.turn_on - data: {} target: - entity_id: - - light.sparkx_i7_light - - light.bedroom_lamp_2 + entity_id: light.sparkx_i7_light + - action: light.turn_on + continue_on_error: true + target: + entity_id: light.3d_printer_lights_local + - action: light.turn_on + target: + entity_id: light.bedroom_lamp_2 if: - condition: or conditions: - condition: state entity_id: light.sparkx_i7_light state: 'on' + - condition: state + entity_id: light.3d_printer_lights_local + state: 'on' - condition: state entity_id: light.bedroom_lamp_2 state: 'on' then: - action: light.turn_off target: - entity_id: - - light.sparkx_i7_light - - light.bedroom_lamp_2 + entity_id: light.sparkx_i7_light + - action: light.turn_off + continue_on_error: true + target: + entity_id: light.3d_printer_lights_local + - action: light.turn_off + target: + entity_id: light.bedroom_lamp_2 click_action_ch3: [] double_click_action_ch1: - action: light.turn_on - data: {} - metadata: {} target: entity_id: light.sparkx_i7_light + - action: light.turn_on + continue_on_error: true + target: + entity_id: light.3d_printer_lights_local double_click_action_ch2: [] long_click_action_ch1: [] long_click_action_ch2: [] @@ -3720,6 +3751,10 @@ - action: light.turn_on target: entity_id: light.sparkx_i7_light + - action: light.turn_on + continue_on_error: true + target: + entity_id: light.3d_printer_lights_local - conditions: - condition: template value_template: '{{ scroll_direction == ''left'' }}' @@ -3727,6 +3762,10 @@ - action: light.turn_off target: entity_id: light.sparkx_i7_light + - action: light.turn_off + continue_on_error: true + target: + entity_id: light.3d_printer_lights_local scroll_wheel_user_action_ch2: - choose: - conditions: @@ -3735,18 +3774,28 @@ sequence: - action: light.turn_on target: - entity_id: - - light.sparkx_i7_light - - light.bedroom_lamp_2 + entity_id: light.sparkx_i7_light + - action: light.turn_on + continue_on_error: true + target: + entity_id: light.3d_printer_lights_local + - action: light.turn_on + target: + entity_id: light.bedroom_lamp_2 - conditions: - condition: template value_template: '{{ scroll_direction == ''left'' }}' sequence: - action: light.turn_off target: - entity_id: - - light.sparkx_i7_light - - light.bedroom_lamp_2 + entity_id: light.sparkx_i7_light + - action: light.turn_off + continue_on_error: true + target: + entity_id: light.3d_printer_lights_local + - action: light.turn_off + target: + entity_id: light.bedroom_lamp_2 path: jhol-byte/Ikea_bilresa_scroll_wheel.yaml - id: '1787723814939' alias: 3D Printer Lights - Toggle from Boolean @@ -3852,8 +3901,8 @@ - id: '1789399923492' alias: 3D Printer Running - Reconcile on HA Start description: When Home Assistant starts during an active SparkX i7 print, re-apply - the print-started light, bedroom, basement heat, and filter actions after devices - settle. + the print-started actions for both printer lights, the bedroom, basement heat, + and filter after devices settle. triggers: - event: start trigger: homeassistant @@ -3870,6 +3919,16 @@ - action: light.turn_on target: entity_id: light.sparkx_i7_light + - action: light.turn_on + continue_on_error: true + data: + brightness_pct: 100 + rgb_color: + - 255 + - 255 + - 255 + target: + entity_id: light.3d_printer_lights_local - action: light.turn_on data: brightness_pct: 100