lpcadeco
(LPCadeco)
April 10, 2025, 11:00am
1
Hello,
I have some curtains that operate via an RF remote, and I would like to control them.
I’ve already set up a Broadlink RM4 Pro in HA and have captured the RF codes for open, close and stop all the curtains.
Now, I’d like to create a cover template for each of them, but I’m having trouble doing so.
I followed the instructions from /cover.template and although I’m not getting any errors in the code, I can’t find the cover entity anywhere.
Could you help me understand what I might be doing wrong?
Please find the code below:
template:
- cover:
- name: tela_8
device_class: shade
friendly_name: "Tela 8"
open_cover:
action: script.tela8_up
close_cover:
action: script.tela8_down
stop_cover:
action: script.tela8_stop
Your code looks quite a bit different than the example in the link you shared
# Example configuration.yaml entry
cover:
- platform: template
covers:
garage_door:
device_class: garage
friendly_name: "Garage Door"
value_template: "{{ states('sensor.garage_door')|float > 0 }}"
open_cover:
action: script.open_garage_door
close_cover:
action: script.close_garage_door
stop_cover:
action: script.stop_garage_door
lpcadeco
(LPCadeco)
April 10, 2025, 11:17am
3
Oh I’m sorry, that was a different code that I was testing.
At the moment the code is this, like the example:
cover:
- platform: template
covers:
tela_8:
device_class: shade
friendly_name: "Tela 8"
open_cover:
action: script.tela8_up
close_cover:
action: script.tela8_down
stop_cover:
action: script.tela8_stop
If I enter your code in the configuration.yaml I see the device
cover:
- platform: template
covers:
tela_8:
device_class: shade
friendly_name: "Tela 8"
open_cover:
action: script.tela8_up
close_cover:
action: script.tela8_down
stop_cover:
action: script.tela8_stop
tom_l
April 10, 2025, 11:41am
5
Where did you put that config?
Did you reload (or restart if this is your first cover)?
Any related errors in Settings → System → Logs?
lpcadeco
(LPCadeco)
April 10, 2025, 11:58am
6
It’s working now.
It was on configuration.yaml and I restarted several times.
Then I reverted to an old backup (from yesterday) and it started working properly.
Thank you for your help