hansen-hasst/packages/nursery/nursery.yaml

116 lines
3.4 KiB
YAML
Raw Permalink Normal View History

2023-07-14 23:04:33 +00:00
automation:
# Nursery heat lamp turn on from bedroom Philipp
2024-04-24 19:58:21 +00:00
- alias: nursery_light_on
description: "nursery_light_on"
mode: single
2023-07-14 23:04:33 +00:00
trigger:
- device_id: 1baf5adc6850ac0413ee80d5ce75f1b8
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
action:
- type: turn_on
device_id: 8d78194d0cb175221b3b0ffa337a9592
entity_id: light.nursery_bulb
domain: light
2024-04-24 19:58:21 +00:00
2023-07-14 23:04:33 +00:00
# Nursery heat lamp turn off from bedroom Philipp
2024-04-24 19:58:21 +00:00
- alias: nursery_light_off
description: "nursery_light_off"
mode: single
2023-07-14 23:04:33 +00:00
trigger:
- device_id: 1baf5adc6850ac0413ee80d5ce75f1b8
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
action:
- type: turn_off
device_id: 8d78194d0cb175221b3b0ffa337a9592
entity_id: light.nursery_bulb
domain: light
###### Nursery #####
# Nursery heat lamp turn on button door
- alias: nursery_heat_lamp_turn_on_nursery_button_door
trigger:
- device_id: 990a122b3d7c305259f6033660c23e98
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
action:
- type: turn_on
device_id: 8d78194d0cb175221b3b0ffa337a9592
entity_id: light.nursery_bulb
2024-04-24 19:58:21 +00:00
domain: light
2023-07-14 23:04:33 +00:00
# Nursery heat lamp + light turn on button door
- alias: nursery_heat_lamp_bulb_turn_on_nursery_button_door
trigger:
- device_id: 990a122b3d7c305259f6033660c23e98
domain: zha
platform: device
type: remote_button_long_press
subtype: dim_up
action:
- type: turn_on
device_id: f544eb364af0e4c42f36e5479f79e111
entity_id: switch.nursery
2024-04-24 19:58:21 +00:00
domain: switch
- type: turn_on
device_id: 8d78194d0cb175221b3b0ffa337a9592
entity_id: light.nursery_bulb
domain: light
2023-07-14 23:04:33 +00:00
- delay:
minutes: 15
- type: turn_off
device_id: f544eb364af0e4c42f36e5479f79e111
entity_id: switch.nursery
domain: switch
2024-04-24 19:58:21 +00:00
- type: turn_off
device_id: 8d78194d0cb175221b3b0ffa337a9592
entity_id: light.nursery_bulb
domain: light
2023-07-14 23:04:33 +00:00
# Nursery heat lamp turn off button door
- alias: nursery_heat_lamp_turn_off_nursery_button_door
trigger:
- device_id: 990a122b3d7c305259f6033660c23e98
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
action:
- type: turn_off
device_id: f544eb364af0e4c42f36e5479f79e111
entity_id: switch.nursery
domain: switch
- type: turn_off
device_id: 8d78194d0cb175221b3b0ffa337a9592
entity_id: light.nursery_bulb
2023-07-17 11:39:40 +00:00
domain: light
- alias: Baby Notification
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.baby_cam_noise
to: 'on'
condition:
- condition: state
entity_id: input_boolean.baby_cry_notification
state: 'on'
action:
2024-04-24 19:58:21 +00:00
- service: notify.mobile_app_pixel_7_pro
2023-07-17 11:39:40 +00:00
data:
message: Baby schreit
2024-04-24 19:58:21 +00:00
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
2023-07-17 11:39:40 +00:00
mode: single