I’ve never been a user of scripts before and I’m trying to get the hang of it to no avail.
Specifically I am trying to setup a Broadlink RM4 mini to control my a/c. I’ve got it working in the Broadlink app and I even created the file in the .storage folder with all the learned codes.
I tried to then create scripts but something has gone amiss. Here is an example. Does it seem correct?
Where did you read to do this? The Broadlink file is created when you learn commands within HA. You shouldn’t need to do this manually.
You don’t (can’t) reference the codes within that file from the script. That file is merely a list of codes learned. You need to take the data from there and use it in the command in your script (not what seems like a label that you’ve used), the bit that’s a very long string (normally).
sorry let me clarify, the Broadlink integration created the file with the codes, I was just trying to say it worked.
In fact, after much frustration, I discovered the scripts work as well, via the Scripts page in the Configuration section. I just now can’t seem to get them to trigger via a button in my frontend.
But that doesn’t seem to actually trigger the script. I’ve tried it with and without an entity_id for the button as it really isn’t required is it? You just have the correct service being called in the tap action.