I’m trying to create an automation to open a specific URL (which triggers another device).
But I can’t get it working, it keeps sending me the “Unable to determine action @ data[0]” error.
Does anyone know what I did wrong?
I’m trying to create an automation to open a specific URL (which triggers another device).
But I can’t get it working, it keeps sending me the “Unable to determine action @ data[0]” error.
Does anyone know what I did wrong?
You don’t configure the rest command in the automation.
You put it in your configuration.yaml file then call that command from your automation.
e.g.
configuration.yaml file:
rest_command:
cinema_adaptive_drc_on:
url: "http://10.1.1.17/YamahaExtendedControl/v1/main/setAdaptiveDrc?enable=true"
cinema_adaptive_drc_off:
url: "http://10.1.1.17/YamahaExtendedControl/v1/main/setAdaptiveDrc?enable=false"
cinema_adaptive_dsp_on:
url: "http://10.1.1.17/YamahaExtendedControl/v1/main/setAdaptiveDspLevel?enable=true"
cinema_adaptive_dsp_off:
url: "http://10.1.1.17/YamahaExtendedControl/v1/main/setAdaptiveDspLevel?enable=false"
Automation:
action:
- service: rest_command.cinema_adaptive_drc_on
Note: you have to restart home assistant after creating your rest command.
It works!
Thanks!