51 lines
1.5 KiB
YAML
Raw Normal View History

2017-01-06 02:03:07 +00:00
###################################
## Notifies me via IFTTT when something goes down.
###################################
- alias: 'Device Status'
hide_entity: True
trigger:
- platform: state
entity_id:
2017-01-06 02:03:07 +00:00
- sensor.wii
- sensor.Hue_Hub_1
- sensor.Hue_Hub_2
2017-01-06 02:03:07 +00:00
- sensor.tablotv
- sensor.alexa_echo
- sensor.amazon_dot
- sensor.circle
- sensor.rachio
- sensor.skybell
- sensor.printer
2017-01-06 02:03:07 +00:00
- sensor.chromecast_audio_1
- sensor.chromecast_audio_2
- sensor.nest_upstairs
- sensor.nest_downstairs
2017-01-24 20:35:30 +00:00
- sensor.cisco_ap
2017-01-06 02:03:07 +00:00
- sensor.actiontechap
2017-03-10 15:58:38 +00:00
- sensor.unifi_ap
- sensor.small_garage
- sensor.large_garage
2017-02-26 06:36:13 +00:00
- sensor.led_rgb_garage_large
2017-01-06 02:03:07 +00:00
- sensor.led_rgb_garage_small
- sensor.led_rgb_outdoor_den
#- sensor.withings_scale
- sensor.smart_water_meter
2017-02-10 01:36:46 +00:00
- sensor.sleep_number_bed
- sensor.nodemcu1
- sensor.carlopihole
to: 'offline'
for:
minutes: 5
2017-01-06 02:03:07 +00:00
action:
- service: script.ifttt_notify
data_template:
value1: 'Device Status:'
value2: "{{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} is "
value3: "{{ trigger.to_state.state }}"
- service: script.Voice_notify
data_template:
value1: "{{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} is now {{ trigger.to_state.state }}"