automations.yaml, zigbee2mqtt/state.json

This commit is contained in:
Home Assistant Version Control
2026-09-25 17:46:37 +00:00
parent cc03a76eee
commit e0f4afd026
2 changed files with 83 additions and 56 deletions
+68 -41
View File
@@ -3821,53 +3821,80 @@
mode: single
- id: '1787723854939'
alias: 3D Printer Lights - Sync Boolean
description: Synchronizes input_boolean.3d_printer_lights when either printer light
changes manually, keeping the SparkX and local lights aligned.
description: Keeps the SparkX and local printer lights aligned when either light
is manually turned on or off. Brightness and color-only updates are ignored.
triggers:
- entity_id:
- light.sparkx_i7_light
- light.3d_printer_lights_local
id: light_changed
- entity_id: light.sparkx_i7_light
from: 'off'
id: sparkx_on
to: 'on'
trigger: state
- entity_id: light.sparkx_i7_light
from: 'on'
id: sparkx_off
to: 'off'
trigger: state
- entity_id: light.3d_printer_lights_local
from: 'off'
id: local_on
to: 'on'
trigger: state
- entity_id: light.3d_printer_lights_local
from: 'on'
id: local_off
to: 'off'
trigger: state
- event: start
id: ha_start
trigger: homeassistant
conditions:
- condition: template
value_template: "{{ is_state('input_boolean.3d_printer_lights', 'on') !=\n (is_state('light.sparkx_i7_light',
'on') or\n is_state('light.3d_printer_lights_local', 'on')) }}"
actions:
- if:
- condition: trigger
id: ha_start
then:
- delay:
seconds: 15
- else:
- 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
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'
then:
- 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
- choose:
- conditions:
- condition: trigger
id:
- sparkx_on
- local_on
sequence:
- action: light.turn_on
continue_on_error: true
target:
entity_id:
- light.sparkx_i7_light
- light.3d_printer_lights_local
- conditions:
- condition: trigger
id:
- sparkx_off
- local_off
sequence:
- action: light.turn_off
continue_on_error: true
target:
entity_id:
- light.sparkx_i7_light
- light.3d_printer_lights_local
- conditions:
- condition: trigger
id: ha_start
sequence:
- delay:
seconds: 15
- 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'
then:
- action: light.turn_on
continue_on_error: true
target:
entity_id:
- light.sparkx_i7_light
- light.3d_printer_lights_local
mode: single
- id: '1787790202454'
alias: Z2M Error Monitor