Hi guys,
I’m trying to setup pushover notifications from an automation, I followed several examples I’ve found but none seem to work for me, I’m now consistly getting an error:
Invalid config for [automation]: required key not provided @ data['action']. Got None
required key not provided @ data['trigger']. Got None. (See /config/configuration.yaml, line 13). Please check the docs at https://home-assistant.io/components/automation/
Invalid config for [automation]: [data] is an invalid option for [automation]. Check: automation->action->0->data. (See /config/configuration.yaml, line 13). Please check the docs at https://home-assistant.io/components/automation/
I’ve checked line 13 in my configuration.yaml - it’s “group: !include groups.yaml” so I don’t see how it’s related.
I can trigger a pushover notification from the Services tab fine and I receive it on my phone.
My configuration.yaml contains
# Pushover
notify:
- name: Powercut_PushOver
platform: pushover
api_key: xxxxxxxxxxx
user_key: xxxxxxxxxx
And my automation for this notification is as follows:
- id: '1567961259606'
- alias: 'Powercut'
trigger:
- platform: state
entity_id: sensor.apc_ups_status
condition: []
action:
- data:
service: notify.powercut_pushover
message: "APC UPS Status Change"
title: "Power Event"
Any ideas please? Thanks.