Home-AssistantConfig/automation/device_status.yaml

35 lines
1.0 KiB
YAML
Raw Normal View History

2016-10-19 17:47:13 +00:00
###################################
## Notifies me via IFTTT when something goes down.
###################################
- alias: 'Device Status'
hide_entity: True
trigger:
- platform: state
entity_id:
2016-11-10 18:31:44 +00:00
- sensor.wii
- sensor.hue_hub
- sensor.tablotv
- sensor.alexa_echo
- sensor.amazon_dot
- sensor.circle
- sensor.rachio
- sensor.skybell
2016-11-19 18:45:39 +00:00
#- sensor.samsungtv
2016-11-10 18:31:44 +00:00
- sensor.chromecast_audio_1
- sensor.chromecast_audio_2
- sensor.nest_upstairs
- sensor.nest_downstairs
- sensor.ciscoap
- sensor.actiontechap
2016-11-21 22:12:04 +00:00
- sensor.garadget_small
- sensor.garadget_large
action:
service: script.turn_on
entity_id: script.notify_ifttt
data_template:
variables:
value1: 'Device Status '
value2: "{{ trigger.entity_id.split('.')[1] }} is "
value3: "{{ trigger.to_state.state }}"