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 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 either printer light description: Keeps the SparkX and local printer lights aligned when either light
changes manually, keeping the SparkX and local lights aligned. is manually turned on or off. Brightness and color-only updates are ignored.
triggers: triggers:
- entity_id: - entity_id: light.sparkx_i7_light
- light.sparkx_i7_light from: 'off'
- light.3d_printer_lights_local id: sparkx_on
id: light_changed 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 trigger: state
- event: start - event: start
id: ha_start id: ha_start
trigger: homeassistant 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: actions:
- if: - choose:
- condition: trigger - conditions:
id: ha_start - condition: trigger
then: id:
- delay: - sparkx_on
seconds: 15 - local_on
- else: sequence:
- action: light.turn_off - action: light.turn_on
target: continue_on_error: true
entity_id: light.sparkx_i7_light target:
- action: light.turn_off entity_id:
continue_on_error: true - light.sparkx_i7_light
target: - light.3d_printer_lights_local
entity_id: light.3d_printer_lights_local - conditions:
if: - condition: trigger
- condition: or id:
conditions: - sparkx_off
- condition: state - local_off
entity_id: light.sparkx_i7_light sequence:
state: 'on' - action: light.turn_off
- condition: state continue_on_error: true
entity_id: light.3d_printer_lights_local target:
state: 'on' entity_id:
then: - light.sparkx_i7_light
- action: light.turn_on - light.3d_printer_lights_local
target: - conditions:
entity_id: light.sparkx_i7_light - condition: trigger
- action: light.turn_on id: ha_start
continue_on_error: true sequence:
target: - delay:
entity_id: light.3d_printer_lights_local 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 mode: single
- id: '1787790202454' - id: '1787790202454'
alias: Z2M Error Monitor alias: Z2M Error Monitor
+15 -15
View File
@@ -4,7 +4,7 @@
"state": "ON", "state": "ON",
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"voltage": 119.8, "voltage": 119.3,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"ac_frequency": 60, "ac_frequency": 60,
"power_factor": 0.11, "power_factor": 0.11,
@@ -27,7 +27,7 @@
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"power": 2.5, "power": 2.3,
"current": 0.1, "current": 0.1,
"energy": 46.98, "energy": 46.98,
"power_factor": 0.18, "power_factor": 0.18,
@@ -45,10 +45,10 @@
"state": "ON", "state": "ON",
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"voltage": 119.3, "voltage": 118.8,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"energy": 91.31, "energy": 91.33,
"power_factor": 0.9, "power_factor": 0.99,
"ac_frequency": 60, "ac_frequency": 60,
"update": { "update": {
"state": "idle", "state": "idle",
@@ -58,8 +58,8 @@
"latest_release_notes": null "latest_release_notes": null
}, },
"linkquality": 120, "linkquality": 120,
"power": 83.9, "power": 195.9,
"current": 0.89, "current": 1.66,
"power_on_behavior": "on" "power_on_behavior": "on"
}, },
"0xb40e060fffe031e3": { "0xb40e060fffe031e3": {
@@ -74,11 +74,11 @@
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"voltage": 118.3, "voltage": 117.8,
"state": "ON", "state": "ON",
"ac_frequency": 60, "ac_frequency": 60,
"energy": 187, "energy": 187.01,
"power": 101.3, "power": 96.6,
"current": 0.95, "current": 0.95,
"power_factor": 0.34, "power_factor": 0.34,
"update": { "update": {
@@ -95,13 +95,13 @@
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"voltage": 118.5, "voltage": 119.1,
"energy": 92.88, "energy": 92.89,
"state": "ON", "state": "ON",
"power": 57.7, "power": 57.6,
"current": 0.61, "current": 0.59,
"ac_frequency": 60, "ac_frequency": 60,
"power_factor": 0.79, "power_factor": 0.8,
"update": { "update": {
"state": "idle", "state": "idle",
"installed_version": 268513381, "installed_version": 268513381,