1
0

Update automations

This commit is contained in:
pgrondek 2021-04-12 17:32:28 +02:00
parent 3eaff26ea0
commit a370b76fec
4 changed files with 36 additions and 47 deletions

View File

@ -7,7 +7,7 @@
device_id: 58e9b8fc848631004a3c1e303ff25229 device_id: 58e9b8fc848631004a3c1e303ff25229
entity_id: sensor.3d_printer_power entity_id: sensor.3d_printer_power
domain: sensor domain: sensor
below: 10 below: 30
for: for:
hours: 0 hours: 0
minutes: 30 minutes: 30

View File

@ -60,7 +60,7 @@
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.bathroom_motion_sensor entity_id: binary_sensor.bathroom_motion_sensor
for: '0:02:00' for: '0:05:00'
from: 'on' from: 'on'
to: 'off' to: 'off'
action: action:

View File

@ -9,7 +9,7 @@
condition: condition:
- condition: numeric_state - condition: numeric_state
entity_id: sensor.bedroom_motion_illuminance entity_id: sensor.bedroom_motion_illuminance
below: '50' below: '25'
- condition: state - condition: state
entity_id: input_select.home_mode entity_id: input_select.home_mode
state: Day state: Day

View File

@ -1,50 +1,39 @@
- id: phone-sleep-start - id: phone-sleep-as-android
alias: '[Phone] Sleep start' alias: '[Phone] Sleep as Android'
mode: single mode: single
trigger: trigger:
- platform: webhook - platform: webhook
webhook_id: 56af98df-9477-431d-a38c-9cd42bc1c512 webhook_id: 56af98df-9477-431d-a38c-9cd42bc1c512
condition:
- condition: template
value_template: '{{ trigger.event.data.event == ''SLEEP_TRACKING_STARTED'' }}'
- condition: device
device_id: c76e890aeaf8b90472ce178076298aad
domain: device_tracker
entity_id: device_tracker.sm_g965f
type: is_home
action: action:
- service: notify.mobile_app_sm_g965f - choose:
data: - conditions:
message: Sleep automation - condition: device
- service: script.good_night device_id: c76e890aeaf8b90472ce178076298aad
domain: device_tracker
entity_id: device_tracker.sm_g965f
type: is_home
- condition: template
value_template: '{{ trigger.event.data.event == ''SLEEP_TRACKING_STARTED'' }}'
sequence:
- service: notify.mobile_app_sm_g965f
data:
message: Sleep automation
- service: script.good_night
- conditions:
- condition: device
device_id: c76e890aeaf8b90472ce178076298aad
domain: device_tracker
entity_id: device_tracker.sm_g965f
type: is_home
- condition: template
value_template: '{{ trigger.event.data.event == ''SLEEP_TRACKING_STOPPED'' }}'
sequence:
- service: notify.mobile_app_sm_g965f
data:
message: Sleep automation
- service: script.good_morning
default:
- service: notify.mobile_app_sm_g965f
data:
message: 'Unknown state '
- id: phone-sleep-end
alias: '[Phone] Sleep end'
mode: single
trigger:
- platform: webhook
webhook_id: 56af98df-9477-431d-a38c-9cd42bc1c512
condition:
- condition: template
value_template: '{{ trigger.event.data.event == ''SLEEP_TRACKING_STOPPED'' }}'
- condition: device
device_id: c76e890aeaf8b90472ce178076298aad
domain: device_tracker
entity_id: device_tracker.sm_g965f
type: is_home
action:
- service: notify.mobile_app_sm_g965f
data:
message: Sleep automation
- service: script.good_morning
- id: phone-webhook
alias: '[Phone] Webhook'
mode: single
trigger:
- platform: webhook
webhook_id: 56af98df-9477-431d-a38c-9cd42bc1c512
action:
- service: notify.mobile_app_sm_g965f
data:
message: 'Automation {{ trigger.event.data.event }}'