3 files
This commit is contained in:
@@ -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 }}'
|
||||
|
||||
Reference in New Issue
Block a user