This commit is contained in:
Home Assistant Version Control
2026-10-03 15:16:28 +00:00
parent 82a1235a76
commit 0bb5fe6ac5
3 changed files with 79 additions and 0 deletions
+39
View File
@@ -3530,6 +3530,45 @@
filename: /config/www/sparkx_i7_complete_snapshot.jpg
target:
entity_id: camera.sparkx_i7_printer_camera
- variables:
sparkx_needs_light: '{{ not is_state(''light.sparkx_i7_light'', ''on'') }}'
bedroom_needs_light: '{{ not is_state(''light.bedroom_lamp_2'', ''on'') }}'
- if:
- condition: template
value_template: '{{ sparkx_needs_light }}'
then:
- action: light.turn_on
continue_on_error: true
target:
entity_id: light.sparkx_i7_light
- if:
- condition: template
value_template: '{{ bedroom_needs_light }}'
then:
- action: light.turn_on
continue_on_error: true
target:
entity_id: light.bedroom_lamp_2
- delay:
seconds: 3
- delay:
seconds: 2
- if:
- condition: template
value_template: '{{ sparkx_needs_light }}'
then:
- action: light.turn_off
continue_on_error: true
target:
entity_id: light.sparkx_i7_light
- if:
- condition: template
value_template: '{{ bedroom_needs_light }}'
then:
- action: light.turn_off
continue_on_error: true
target:
entity_id: light.bedroom_lamp_2
- action: telegram_bot.send_photo
data:
caption: '{{ completion_message }}'