I’m getting this error when I try to run an automation which I’ve created using the Lovelace UI in HA Core:
Invalid config for [automation]: required key not provided @ data['device_id']. Got None.
The idea is to respond to the “on” payload for my binary sensor by arming my home alarm system. I can’t work out which key I need to enter. The definition is below.
Could anyone advise?
The screenshot seems to be a little small, so here’s what I’ve entered (any field not listed I have left blank):
- Name: Turn on alarm using Sonoff 433MHz remote
- Mode: Single
Trigger: - Trigger Type: State
- Trigger ID: alarm_on
- Entity: binary_sensor.sonoff_433MHz_remote
- To: on
Action: - Action type: Call service
- Service: alarm_control_panel.alarm_arm_away
- Targets: home_alarm