automations.yaml
This commit is contained in:
+13
-18
@@ -3829,41 +3829,36 @@
|
||||
mode: single
|
||||
- id: '1789399923492'
|
||||
alias: 3D Printer Running - Reconcile on HA Start
|
||||
description: 'When Home Assistant starts, if the 3D printer running helper is already
|
||||
on (restored from a previous print, so no state change fires the main automation),
|
||||
re-apply the ''printer started'' actions: printer lights bright white, bedroom
|
||||
lamp on, basement heat 22C, filter on. A short delay lets devices that are still
|
||||
settling after restart come online.'
|
||||
description: When Home Assistant starts during an active SparkX i7 print, re-apply
|
||||
the print-started light, bedroom, basement heat, and filter actions after devices
|
||||
settle.
|
||||
triggers:
|
||||
- trigger: homeassistant
|
||||
event: start
|
||||
- event: start
|
||||
trigger: homeassistant
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.3d_printer_running
|
||||
state: 'on'
|
||||
- condition: template
|
||||
value_template: '{{ states(''sensor.sparkx_i7_print_status'') in [''printing'',
|
||||
''paused''] }}'
|
||||
actions:
|
||||
- delay:
|
||||
seconds: 15
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.3d_printer_lights_local
|
||||
entity_id: light.sparkx_i7_light
|
||||
- action: light.turn_on
|
||||
data:
|
||||
brightness_pct: 100
|
||||
rgb_color:
|
||||
- 255
|
||||
- 255
|
||||
- 255
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.bedroom_lamp_2
|
||||
data:
|
||||
brightness_pct: 100
|
||||
- action: climate.set_temperature
|
||||
data:
|
||||
hvac_mode: heat
|
||||
temperature: 22
|
||||
target:
|
||||
entity_id: climate.basement
|
||||
data:
|
||||
temperature: 22
|
||||
hvac_mode: heat
|
||||
- action: switch.turn_on
|
||||
target:
|
||||
entity_id: switch.filter
|
||||
|
||||
Reference in New Issue
Block a user