1
0
Fork 0

Compare commits

...

3 commits

2 changed files with 34 additions and 13 deletions

View file

@ -45,12 +45,14 @@
- service: notify.mobile_app_iphone - service: notify.mobile_app_iphone
data: data:
message: 3D printer has finished message: 3D printer has finished
data:
entity_id: camera.3d_printer entity_id: camera.3d_printer
url: "/lovelace-tablet/3d-printer"
- service: camera.snapshot - service: camera.snapshot
data: data:
filename: /config/www/cctv/3d_printer.jpg filename: /config/www/cctv/3d_printer.jpg
target: target:
entity_id: camera.hallway entity_id: camera.3d_printer
- service: notify.home_assistant - service: notify.home_assistant
data: data:
message: "3D Printer has finished" message: "3D Printer has finished"
@ -161,5 +163,8 @@
action: action:
- service: notify.mobile_app_iphone - service: notify.mobile_app_iphone
data: data:
message: Print has been paused title: Prusa i3 MMU
title: Prusa i3 message: 3D Print has been paused
data:
entity_id: camera.3d_printer
url: "/lovelace-tablet/3d-printer"

View file

@ -1,4 +1,4 @@
- id: brightness-dark - id: office-brightness-dark
alias: '[Brightness] Dark - close covers' alias: '[Brightness] Dark - close covers'
mode: single mode: single
trigger: trigger:
@ -9,6 +9,10 @@
hours: 0 hours: 0
minutes: 1 minutes: 1
seconds: 0 seconds: 0
condition:
- condition: state
entity_id: input_select.home_mode
state: Day
action: action:
- service: cover.close_cover - service: cover.close_cover
target: target:
@ -16,7 +20,7 @@
- cover.office_blinds - cover.office_blinds
- cover.dining_blinds - cover.dining_blinds
- id: brightness-dark-lights-on - id: office-brightness-dark-lights-on
alias: '[Brightness] Dark - turn on lights' alias: '[Brightness] Dark - turn on lights'
mode: single mode: single
trigger: trigger:
@ -45,7 +49,7 @@
action: action:
- service: script.office_lights_on - service: script.office_lights_on
- id: brightness-ok-lights-off - id: office-brightness-ok-lights-off
alias: '[Brightness] Dark - turn off lights' alias: '[Brightness] Dark - turn off lights'
mode: single mode: single
trigger: trigger:
@ -56,17 +60,21 @@
hours: 0 hours: 0
minutes: 1 minutes: 1
seconds: 0 seconds: 0
condition:
- condition: state
entity_id: input_select.home_mode
state: Day
action: action:
- service: script.office_lights_off - service: script.office_lights_off
- id: brightness-ok - id: office-brightness-ok
alias: '[Brightness] OK - open covers' alias: '[Brightness] OK - open covers'
mode: single mode: single
trigger: trigger:
- platform: numeric_state - platform: numeric_state
entity_id: sensor.office_illuminance entity_id: sensor.office_illuminance
above: '30' above: '30'
below: '150' below: '800'
for: for:
hours: 0 hours: 0
minutes: 0 minutes: 0
@ -74,7 +82,7 @@
- platform: numeric_state - platform: numeric_state
entity_id: sensor.office_illuminance entity_id: sensor.office_illuminance
above: '30' above: '30'
below: '150' below: '800'
for: for:
hours: 0 hours: 0
minutes: 1 minutes: 1
@ -82,7 +90,7 @@
- platform: numeric_state - platform: numeric_state
entity_id: sensor.office_illuminance entity_id: sensor.office_illuminance
above: '30' above: '30'
below: '150' below: '800'
for: for:
hours: 0 hours: 0
minutes: 2 minutes: 2
@ -90,11 +98,15 @@
- platform: numeric_state - platform: numeric_state
entity_id: sensor.office_illuminance entity_id: sensor.office_illuminance
above: '30' above: '30'
below: '150' below: '800'
for: for:
hours: 0 hours: 0
minutes: 3 minutes: 3
seconds: 0 seconds: 0
condition:
- condition: state
entity_id: input_select.home_mode
state: Day
action: action:
- choose: - choose:
- conditions: - conditions:
@ -115,7 +127,7 @@
- cover.dining_blinds - cover.dining_blinds
- service: script.office_blinds_up - service: script.office_blinds_up
- id: brightness-bright - id: office-brightness-bright
alias: '[Brightness] Bright - close covers' alias: '[Brightness] Bright - close covers'
mode: single mode: single
trigger: trigger:
@ -126,6 +138,10 @@
hours: 0 hours: 0
minutes: 1 minutes: 1
seconds: 0 seconds: 0
condition:
- condition: state
entity_id: input_select.home_mode
state: Day
action: action:
- service: cover.close_cover - service: cover.close_cover
target: target: