automations.yaml, zigbee2mqtt/state.json

This commit is contained in:
Home Assistant Version Control committed 2026-10-01 05:21:07 +00:00
1 parent db9096940d
commit b3d9ae54fa
2 files changed
+56 -6

No files matched your search

+50
View File
@@ -4211,3 +4211,53 @@
value_template: '{{ is_state(''sensor.sparkx_i7_print_status'', ''completed'')
}}'
mode: restart
- id: sparkx_i7_cfs_auto_recover
alias: SparkX i7 - CFS Info Auto Recover
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
is asked. This re-requests CFS info after a sustained outage, with a settle delay
and a re-check so a brief reload gap does not cause a spurious request.
triggers:
- entity_id: sensor.sparkx_i7_cfs_box_1_temperature
id: cfs_unavailable
to: unavailable
trigger: state
- event: start
id: ha_start
trigger: homeassistant
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id: cfs_unavailable
sequence:
- delay:
minutes: 2
- conditions:
- condition: trigger
id: ha_start
sequence:
- delay:
seconds: 60
- 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:
- 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