I have a script that works from Developer Tools, Services. I select script.fios_stb_office_pause then click on “Call Service”, and the set-top box pauses.
I run half a dozen scripts everyday to reboot my pi zero’s, mostly because I can’t seem to run a direct shell command from nodered. When they fail they show up in HA’s main log.
And I just remembered, look in dev tools for the script. I have a few named scripts that I have to call by a number that HA assigns. eg script.1616143114854
Ok… let me rephrase then, if the script has more than one service call then sure.
But having one service call in a script then you are not winning anything.
It works in node red also.
You’re making a service call in the script and that is exactly what the call service node does.
I’ve got the same issue with an RM4 mini device… I’m trying to call a service to send “device”:“AC” and “command”:“poweroff” and although it runs and turns off the AC, I get API Error.