automations.yaml

This commit is contained in:
Home Assistant Version Control
2026-09-24 15:27:59 +00:00
parent dfdfab176c
commit c070346afe
+26 -26
View File
@@ -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