attempt to make notification

This commit is contained in:
2023-04-11 07:06:27 +02:00
parent c21802c5a6
commit dfe18853d5
+58
View File
@@ -0,0 +1,58 @@
- alias: 'Der er nogen i huset'
trigger:
- platform: state
entity_id: binary_sensor.hue_motion_sensor_2_motion_2
to: 'on'
- platform: state
entity_id: binary_sensor.hue_motion_sensor_2_motion
to: 'on'
- platform: state
entity_id: binary_sensor.hue_motion_sensor_1_motion_2
to: 'on'
- platform: state
entity_id: binary_sensor.bad_motion_sensor_motion
to: 'on'
- platform: state
entity_id: binary_sensor.gang_sensor_motion
to: 'on'
- platform: state
entity_id: binary_sensor.forgang_sensor_motion
to: 'on'
condition:
platform: state
entity_id: zone.home
to: "0"
action:
- service: notify.mobile_app_clausiphone
data:
message: "Der er nogen i huset"
# - service: script.sonos_say
# data:
# sonos_entity: media_player.alrum
# volume: 0.4
# delay: '00:00:05'
# message: 'Der er nogen i indkørslen'
- service: scene.create
data:
scene_id: before
snapshot_entities:
- light.pendle1
- service: light.turn_on
data:
entity_id: light.pendle1
brightness: 255
rgb_color: [255, 0, 0]
flash: long
- delay: 2
- service: scene.turn_on
entity_id: scene.before
# - service: script.sonos_say
# data:
# sonos_entity: media_player.kontor
# volume: 0.7
# message: 'Hej Claus er det dig der går i gangen?'
# delay: '00:00:05'