HI,
@CCOSTAN
i can’t seem to find the error in my automation, could you please have a look?
i have edited https://github.com/CCOSTAN/Home-AssistantConfig/blob/a2485d167bdd0892617797fa8a0a87ce2a5eb9f2/automation/System/device_status.yaml
a bit and tailored it to my situation, apparently incorrectly …
the fact that the appletv_library is off is correct, which i hoped it would notify me of
error:
2018-01-13 14:19:16 ERROR (MainThread) [homeassistant.core] Invalid service data for notify.ios_telefoonmhb: extra keys not allowed @ data['msg']. Got 'appletv_library is off'
required key not provided @ data['message']. Got None
automation:
- alias: 'Device Status'
hide_entity: True
trigger:
- platform: state
entity_id:
- sensor.tv_auditorium_template
- sensor.appletv_auditorium_template
- sensor.tv_library_template
- sensor.appletv_library_template
- sensor.brystonbdp1_template
to: 'off'
for:
minutes: 5
action:
service: notify.ios_telefoonmhb #script.notify_plus
data_template:
msg: "{{ trigger.entity_id.split('.')[1]|replace('_template', '') }} is {{ trigger.to_state.state }}"