automations.yaml, zigbee2mqtt/state.json

This commit is contained in:
Home Assistant Version Control committed 2026-10-01 05:25:33 +00:00
1 parent b3d9ae54fa
commit 4192ecbaae
2 files changed
+32 -26

No files matched your search

+24 -18
View File
@@ -4213,10 +4213,11 @@
mode: restart mode: restart
- id: sparkx_i7_cfs_auto_recover - id: sparkx_i7_cfs_auto_recover
alias: SparkX i7 - CFS Info Auto Recover alias: SparkX i7 - CFS Info Auto Recover
description: The ha_creality_ws integration drops its CFS sensors to unavailable description: 'The ha_creality_ws integration drops its CFS sensors to unavailable
whenever the integration is reloaded, and they only come back when the printer whenever the integration is reloaded, and they only come back when the printer
is asked. This re-requests CFS info after a sustained outage, with a settle delay is asked. A state trigger only fires on the transition, so this retries the recovery
and a re-check so a brief reload gap does not cause a spurious request. rather than relying on a single attempt: up to 3 tries spaced 2 minutes apart,
then it gives up and writes a logbook entry instead of retrying forever.'
triggers: triggers:
- entity_id: sensor.sparkx_i7_cfs_box_1_temperature - entity_id: sensor.sparkx_i7_cfs_box_1_temperature
id: cfs_unavailable id: cfs_unavailable
@@ -4240,24 +4241,29 @@
sequence: sequence:
- delay: - delay:
seconds: 60 seconds: 60
- repeat:
count: 3
sequence:
- else: []
if:
- condition: template
value_template: '{{ is_state(''sensor.sparkx_i7_cfs_box_1_temperature'',
''unavailable'') }}'
then:
- action: ha_creality_ws.request_cfs_info
target:
device_id: 1196bfc60ac925f3874be27098978ef6
- delay:
seconds: 30
- if: - if:
- condition: template - condition: template
value_template: '{{ is_state(''sensor.sparkx_i7_cfs_box_1_temperature'', ''unavailable'') value_template: '{{ is_state(''sensor.sparkx_i7_cfs_box_1_temperature'', ''unavailable'')
}}' }}'
then: then:
- action: ha_creality_ws.request_cfs_info - action: logbook.log
target: data:
device_id: 1196bfc60ac925f3874be27098978ef6 entity_id: sensor.sparkx_i7_cfs_box_1_temperature
- delay: message: CFS info still unavailable after 3 recovery attempts; giving up until
seconds: 30 the next state change
- if: name: SparkX i7 CFS
- condition: template
value_template: '{{ is_state(''sensor.sparkx_i7_cfs_box_1_temperature'', ''unavailable'')
}}'
then:
- action: logbook.log
data:
entity_id: sensor.sparkx_i7_cfs_box_1_temperature
message: CFS info still unavailable 30s after request_cfs_info
name: SparkX i7 CFS
mode: single mode: single
+8 -8
View File
@@ -27,8 +27,8 @@
"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.3, "power": 1.9,
"current": 0.09, "current": 0.1,
"energy": 50.77, "energy": 50.77,
"power_factor": 0.19, "power_factor": 0.19,
"update": { "update": {
@@ -48,7 +48,7 @@
"voltage": 120.5, "voltage": 120.5,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"energy": 96.05, "energy": 96.05,
"power_factor": 0.3, "power_factor": 0.89,
"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": 145, "linkquality": 145,
"power": 5.7, "power": 86.4,
"current": 0.19, "current": 0.82,
"power_on_behavior": "on" "power_on_behavior": "on"
}, },
"0xb40e060fffe031e3": { "0xb40e060fffe031e3": {
@@ -77,8 +77,8 @@
"voltage": 119.3, "voltage": 119.3,
"state": "ON", "state": "ON",
"ac_frequency": 60, "ac_frequency": 60,
"energy": 198.19, "energy": 198.2,
"power": 104.1, "power": 105,
"current": 0.92, "current": 0.92,
"power_factor": 0.95, "power_factor": 0.95,
"update": { "update": {
@@ -98,7 +98,7 @@
"voltage": 121, "voltage": 121,
"energy": 95.94, "energy": 95.94,
"state": "ON", "state": "ON",
"power": 17.4, "power": 15.3,
"current": 0.26, "current": 0.26,
"ac_frequency": 60, "ac_frequency": 60,
"power_factor": 0.56, "power_factor": 0.56,