Many updates
This commit is contained in:
0
packages/nursery/babycrydetection.yaml
Normal file → Executable file
0
packages/nursery/babycrydetection.yaml
Normal file → Executable file
56
packages/nursery/nursery.yaml
Normal file → Executable file
56
packages/nursery/nursery.yaml
Normal file → Executable file
@ -1,6 +1,8 @@
|
||||
automation:
|
||||
# Nursery heat lamp turn on from bedroom Philipp
|
||||
- alias: nursery_heat_lamp_bedroom_button_philipp_turn_on
|
||||
- alias: nursery_light_on
|
||||
description: "nursery_light_on"
|
||||
mode: single
|
||||
trigger:
|
||||
- device_id: 1baf5adc6850ac0413ee80d5ce75f1b8
|
||||
domain: zha
|
||||
@ -8,23 +10,16 @@ automation:
|
||||
type: remote_button_short_press
|
||||
subtype: turn_on
|
||||
action:
|
||||
- type: turn_on
|
||||
device_id: f544eb364af0e4c42f36e5479f79e111
|
||||
entity_id: switch.nursery
|
||||
domain: switch
|
||||
- type: turn_on
|
||||
device_id: 8d78194d0cb175221b3b0ffa337a9592
|
||||
entity_id: light.nursery_bulb
|
||||
domain: light
|
||||
- delay:
|
||||
minutes: 15
|
||||
- type: turn_off
|
||||
device_id: f544eb364af0e4c42f36e5479f79e111
|
||||
entity_id: switch.nursery
|
||||
domain: switch
|
||||
|
||||
|
||||
# Nursery heat lamp turn off from bedroom Philipp
|
||||
- alias: nursery_heat_lamp_bedroom_button_philippturn_off
|
||||
- alias: nursery_light_off
|
||||
description: "nursery_light_off"
|
||||
mode: single
|
||||
trigger:
|
||||
- device_id: 1baf5adc6850ac0413ee80d5ce75f1b8
|
||||
domain: zha
|
||||
@ -36,10 +31,6 @@ automation:
|
||||
device_id: 8d78194d0cb175221b3b0ffa337a9592
|
||||
entity_id: light.nursery_bulb
|
||||
domain: light
|
||||
- type: turn_off
|
||||
device_id: f544eb364af0e4c42f36e5479f79e111
|
||||
entity_id: switch.nursery
|
||||
domain: switch
|
||||
|
||||
###### Nursery #####
|
||||
|
||||
@ -52,20 +43,10 @@ automation:
|
||||
type: remote_button_short_press
|
||||
subtype: turn_on
|
||||
action:
|
||||
- type: turn_on
|
||||
device_id: f544eb364af0e4c42f36e5479f79e111
|
||||
entity_id: switch.nursery
|
||||
domain: switch
|
||||
- type: turn_on
|
||||
device_id: 8d78194d0cb175221b3b0ffa337a9592
|
||||
entity_id: light.nursery_bulb
|
||||
domain: light
|
||||
- delay:
|
||||
minutes: 15
|
||||
- type: turn_off
|
||||
device_id: f544eb364af0e4c42f36e5479f79e111
|
||||
entity_id: switch.nursery
|
||||
domain: switch
|
||||
domain: light
|
||||
|
||||
# Nursery heat lamp + light turn on button door
|
||||
- alias: nursery_heat_lamp_bulb_turn_on_nursery_button_door
|
||||
@ -79,13 +60,21 @@ automation:
|
||||
- type: turn_on
|
||||
device_id: f544eb364af0e4c42f36e5479f79e111
|
||||
entity_id: switch.nursery
|
||||
domain: switch
|
||||
domain: switch
|
||||
- type: turn_on
|
||||
device_id: 8d78194d0cb175221b3b0ffa337a9592
|
||||
entity_id: light.nursery_bulb
|
||||
domain: light
|
||||
- delay:
|
||||
minutes: 15
|
||||
- type: turn_off
|
||||
device_id: f544eb364af0e4c42f36e5479f79e111
|
||||
entity_id: switch.nursery
|
||||
domain: switch
|
||||
- type: turn_off
|
||||
device_id: 8d78194d0cb175221b3b0ffa337a9592
|
||||
entity_id: light.nursery_bulb
|
||||
domain: light
|
||||
|
||||
# Nursery heat lamp turn off button door
|
||||
- alias: nursery_heat_lamp_turn_off_nursery_button_door
|
||||
@ -105,7 +94,6 @@ automation:
|
||||
entity_id: light.nursery_bulb
|
||||
domain: light
|
||||
|
||||
- id: '1689371777559'
|
||||
- alias: Baby Notification
|
||||
description: ''
|
||||
trigger:
|
||||
@ -118,11 +106,11 @@ automation:
|
||||
entity_id: input_boolean.baby_cry_notification
|
||||
state: 'on'
|
||||
action:
|
||||
- service: notify.mobile_app_pixel_7_pro
|
||||
- service: notify.mobile_app_pixel_7_pro
|
||||
data:
|
||||
message: Baby schreit
|
||||
data:
|
||||
image: /api/camera_proxy/camera.nursery_baby_cam?token={{state_attr('camera.nursery_baby_cam','access_token')}}
|
||||
url: /dashboard-babycam
|
||||
clickAction: /dashboard-babycam/0
|
||||
data:
|
||||
image: /api/camera_proxy/camera.nursery_baby_cam?token={{state_attr('camera.nursery_baby_cam','access_token')}}
|
||||
url: /dashboard-babycam
|
||||
clickAction: /dashboard-babycam/0
|
||||
mode: single
|
Reference in New Issue
Block a user