Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: "Porta Blindata Aperta"
- hide_entity: true
- #initial_state: 'off'
- trigger:
- - platform: state
- entity_id: binary_sensor.door_window_sensor_158d000203052a
- from: 'off'
- to: 'on'
- # condition:
- # condition: numeric_state
- # entity_id: sensor.illumination_xxxxxx
- # below: 200
- action:
- - service: light.turn_on
- entity_id: light.gateway_light_7811dce17669
- data:
- brightness: 250
- rgb_color: [255, 0, 0]
- - service: shell_command.log
- data_template:
- text: >
- - Gateway light. Light ON
- # - delay: '00:00:03'
- - service: xiaomi_aqara.play_ringtone
- data:
- gw_mac: !secret xiaomi_gateway1_mac
- ringtone_id: 10
- ringtone_vol: 6
- - service: shell_command.log
- data_template:
- text: >
- - Gateway ringtone. Play ON
- # - delay: '00:00:01'
- - service: xiaomi_aqara.stop_ringtone
- - service: shell_command.log
- data_template:
- text: >
- - Gateway ringtone. Play OFF
- - service: light.turn_off
- entity_id: light.gateway_light_7811dce17669
- - service: shell_command.log
- data_template:
- text: >
- - Gateway light. Light OFF
- # - delay: '00:00:03'
- - service: notify.notifiche_telegram
- data:
- message: 'Foto Blindata Aperta'
- target:
- - !secret allowed_chat_ids
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement