vinodnx
(Vinod)
February 19, 2024, 11:01pm
1
Hello Friends,
I am trying to understand my mistake, but I am not sure how I can fix it. created 3d Script from Broadlink for my blinds, example is below
This my code in covers.yaml
This my from my dashboard
when i press any button, I get the below error
I do not know how to change, and I have been struggling for more than two days because everything is so new.
Have you restarted HA since creating that covers.yaml file?
vinodnx
(Vinod)
February 19, 2024, 11:09pm
3
yes, I did, but same error
I take it you have a reference to the covers.yaml file in your configuration.yaml file…?
vinodnx
(Vinod)
February 19, 2024, 11:12pm
5
This one you are talking about?
Yep. Can you post your automation script in yaml? It makes it easier to see what is in there.
123
(Taras)
February 19, 2024, 11:14pm
7
Post the contents of script.mablop
in YAML format.
vinodnx
(Vinod)
February 19, 2024, 11:14pm
8
Do I need to make some change in automation yaml?
I edited my above post, but you shouldn’t have any of that in automations.yaml, that’s for configuration.yaml only
vinodnx
(Vinod)
February 19, 2024, 11:20pm
10
like this? I deleted all code in cover.yaml
Getting the same error
123
(Taras)
February 19, 2024, 11:33pm
12
Unfortunately, no. That’s not script.mablop
.
Look at the error message you received. It says script.mablop
called service cover.open_cover
. It would be helpful to see the contents of this script you created called script.mablop
. If you don’t have a script.mablop
then that’s definitely a problem.
For future reference, when sharing information that’s text, try to post it as text instead of a screenshot.
vinodnx
(Vinod)
February 19, 2024, 11:36pm
13
alias: m blind
sequence:
service: remote.send_command
target:
entity_id: remote.blinds
device_id: 628cc5df0393c5406070bdfe120b21e7
data:
device: blind
command: mablop
mode: single
this is from my scripts
alias: main blind open
sequence:
service: remote.send_command
metadata: {}
data:
device: blind
command: mablop
target:
device_id: 628cc5df0393c5406070bdfe120b21e7
entity_id: remote.blinds
mode: single
icon: phu:ikea-blind-open
might be helpful
sparkydave
(🇦🇺 Dave)
February 19, 2024, 11:38pm
15
No, the covers.yaml was ok, it was automations.yaml which for some reason has the same entries as your configuration .yaml, which it shouldn’t.
vinodnx
(Vinod)
February 19, 2024, 11:38pm
16
but when ever just run the script, it work but it not working in cover template
sparkydave
(🇦🇺 Dave)
February 19, 2024, 11:39pm
17
That’s not the script though.
sparkydave
(🇦🇺 Dave)
February 19, 2024, 11:40pm
19
When you post code you need to format it correctly. Select the code text in the forum post and then click on this icon:
sparkydave
(🇦🇺 Dave)
February 19, 2024, 11:42pm
20
That script appears to be called ‘main blind open’, not script.mablop.