Hey. i'm new Home assistant and automation i fail to succeed at making an automation, it's simple i just want by the press of a button to turn on and off a light. But HA keep telling me "New automation setup failed" here the picture of it.
the button is an Shelly RC Button 4, the light is an KL-130 from tp-link. both are connected to HA and work on their own, but can't use them on a automation, actually i can't create a automation whatever device i use it always fail. i don't know i am doing wrong in the yalm as it is the one already made.
mode: single
triggers:
- device_id: a8ae26d26bd0fc0bb2fb13997050e6e7
domain: bthome
type: button_4
subtype: press
trigger: device
conditions: []
actions:
- action: light.toggle
metadata: {}
data: {}
target:
entity_id: light.lampe_salon```
if anyone can help me know what am i doing wrong i will be so grateful.
ps: i look and i don't have anything in the log and Ha is on Truenas witch is not throttled in anyway.