Update automations
This commit is contained in:
parent
3eaff26ea0
commit
a370b76fec
@ -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
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
action:
|
||||||
- condition: template
|
- choose:
|
||||||
value_template: '{{ trigger.event.data.event == ''SLEEP_TRACKING_STARTED'' }}'
|
- conditions:
|
||||||
- condition: device
|
- condition: device
|
||||||
device_id: c76e890aeaf8b90472ce178076298aad
|
device_id: c76e890aeaf8b90472ce178076298aad
|
||||||
domain: device_tracker
|
domain: device_tracker
|
||||||
entity_id: device_tracker.sm_g965f
|
entity_id: device_tracker.sm_g965f
|
||||||
type: is_home
|
type: is_home
|
||||||
action:
|
- condition: template
|
||||||
|
value_template: '{{ trigger.event.data.event == ''SLEEP_TRACKING_STARTED'' }}'
|
||||||
|
sequence:
|
||||||
- service: notify.mobile_app_sm_g965f
|
- service: notify.mobile_app_sm_g965f
|
||||||
data:
|
data:
|
||||||
message: Sleep automation
|
message: Sleep automation
|
||||||
- service: script.good_night
|
- service: script.good_night
|
||||||
|
- conditions:
|
||||||
- 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
|
- condition: device
|
||||||
device_id: c76e890aeaf8b90472ce178076298aad
|
device_id: c76e890aeaf8b90472ce178076298aad
|
||||||
domain: device_tracker
|
domain: device_tracker
|
||||||
entity_id: device_tracker.sm_g965f
|
entity_id: device_tracker.sm_g965f
|
||||||
type: is_home
|
type: is_home
|
||||||
action:
|
- condition: template
|
||||||
|
value_template: '{{ trigger.event.data.event == ''SLEEP_TRACKING_STOPPED'' }}'
|
||||||
|
sequence:
|
||||||
- service: notify.mobile_app_sm_g965f
|
- service: notify.mobile_app_sm_g965f
|
||||||
data:
|
data:
|
||||||
message: Sleep automation
|
message: Sleep automation
|
||||||
- service: script.good_morning
|
- service: script.good_morning
|
||||||
|
default:
|
||||||
- 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
|
- service: notify.mobile_app_sm_g965f
|
||||||
data:
|
data:
|
||||||
message: 'Automation {{ trigger.event.data.event }}'
|
message: 'Unknown state '
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user