hansen-hasst/automations.yaml
2023-07-15 01:04:33 +02:00

33 lines
811 B
YAML

- id: '1672243158980'
description: ''
trigger:
- device_id: 85e0a07a3b952671b37fd008f7b2a299
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
condition: []
action: []
mode: single
- id: '1689371777559'
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:
- 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
mode: single