automations.yaml

This commit is contained in:
Home Assistant Version Control
2026-09-24 15:37:34 +00:00
parent 52521a9506
commit 7c90b22b92
+27 -14
View File
@@ -3828,10 +3828,12 @@
mode: single mode: single
- id: '1787723854939' - id: '1787723854939'
alias: 3D Printer Lights - Sync Boolean alias: 3D Printer Lights - Sync Boolean
description: Synchronizes input_boolean.3d_printer_lights when the SparkX i7 light description: Synchronizes input_boolean.3d_printer_lights when either printer light
changes manually. changes manually, keeping the SparkX and local lights aligned.
triggers: triggers:
- entity_id: light.sparkx_i7_light - entity_id:
- light.sparkx_i7_light
- light.3d_printer_lights_local
id: light_changed id: light_changed
trigger: state trigger: state
- event: start - event: start
@@ -3839,8 +3841,8 @@
trigger: homeassistant trigger: homeassistant
conditions: conditions:
- condition: template - condition: template
value_template: '{{ is_state(''input_boolean.3d_printer_lights'', ''on'') != is_state(''light.sparkx_i7_light'', value_template: "{{ is_state('input_boolean.3d_printer_lights', 'on') !=\n (is_state('light.sparkx_i7_light',
''on'') }}' 'on') or\n is_state('light.3d_printer_lights_local', 'on')) }}"
actions: actions:
- if: - if:
- condition: trigger - condition: trigger
@@ -3849,19 +3851,30 @@
- delay: - delay:
seconds: 15 seconds: 15
- else: - else:
- action: input_boolean.turn_off - action: light.turn_off
data: {}
target: target:
entity_id: input_boolean.3d_printer_lights entity_id: light.sparkx_i7_light
- action: light.turn_off
continue_on_error: true
target:
entity_id: light.3d_printer_lights_local
if: if:
- condition: state - condition: or
entity_id: light.sparkx_i7_light conditions:
state: 'on' - condition: state
entity_id: light.sparkx_i7_light
state: 'on'
- condition: state
entity_id: light.3d_printer_lights_local
state: 'on'
then: then:
- action: input_boolean.turn_on - action: light.turn_on
data: {}
target: target:
entity_id: input_boolean.3d_printer_lights entity_id: light.sparkx_i7_light
- action: light.turn_on
continue_on_error: true
target:
entity_id: light.3d_printer_lights_local
mode: single mode: single
- id: '1787790202454' - id: '1787790202454'
alias: Z2M Error Monitor alias: Z2M Error Monitor