Find error in automation...ios notify

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 :wink:

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 }}"

on the last line change msg: to message:

2 Likes

o wow, and ive read over that so many times…
thanks!

why the system wont kick in an alert on that, too bad really.
great to have this forum!
Cheers,
Marius