I have a zigbee ir blaster to control my non smart heat pump. I am using ZHA not Z2M.
To trigger it to turn on or off I have created a button on the dashboard that triggers a script to send the correct ir to the AC unit. If I am logged in under the admin user it works fine, if a non admin user tries it they get the following error: “Failed to call service script/1689997199912. Unauthorized”
If I log in an go to their dashboard it works fine, so it seems to be a permission error as if I make them an admin it works.
Can a regular user not call a service script? If that is the case what would be a work around so they are able to do this?
I have a similar issue where my partner (a non-admin user) cannot call scripts that I use to trigger a Tuya IR Blaster that controls the amplifier for our TV/speakers.
I wonder if this is the intended behaviour, but it’s a real pain. Maybe something to raise with the devs over on GitHub?
I have exactly the same as @HA_Tom but for LED candles.
I have a tempate light that calls a script to send the IR codes to the blaster.
It seems very silly that a in configuration.yaml defined light (by an admin) can’t be called by a regular user…
Actually, I figured this out and created a long-term API key under my HA profile. One place where I got stuck is that I had to add ‘Bearer’ in front of the API key in my secrets.yaml. Thanks for the tip!