drknow
November 17, 2022, 1:55am
1
I’d like to create an entry like this for each of my rooms:
Each arrow would call a different service (which are curtain up and curtain down through a Broadlink Pro). It would basically go under the light controls as an additional line.
I’m missing the right jargon as to what these arrows are called in order to do the proper google-fu… Thanks so much!
tom_l
November 17, 2022, 2:07am
2
I can’t see your screenshots but you probably need to create template covers for each of your curtains. The covers can then be added to your dashboard.
drknow
November 17, 2022, 5:04am
3
ok. you seem to have put me on the right track for sure. Thanks tom.
My one question (which is a hijack of my own thread) is how to make a template cover when what i want to call is a service.
service: remote.send_command
data:
device: Master-bedroom-windows
command: curtain-down
num_repeats: 4
delay_secs: 0.4
target:
device_id: dd1f0f284f47ce229894158e40771157
would be what i want to call when i click one of the arrows. I"ll test more tomorrow - late here already. Thanks for the help!
tom_l
November 17, 2022, 11:34am
4
There are places in the configuration for services to open and close the cover. See the example here:
drknow
November 17, 2022, 5:00pm
5
Thank you @tom_l . Looks great.
For posterity and google, i use a broadlink rm4 pro to send RF commands to cheap Lowes RF shades (these: https://www.lowes.com/pd/allen-roth-Motorized-Cellular-Shade-34-in-x-72-in-White-Blackout-Cordless-Motorized-Cellular-Shade/5001056303 ). I set it up using the broadlink documentation here (Broadlink - Home Assistant ) with a single centrally located broadlink device sending commands to 6 shades in 4 rooms.
This is what the end template looks like in /config/configuration.yaml:
cover:
- platform: template
covers:
master_bedroom_window_shades:
device_class: shade
friendly_name: "Master Bedroom Windows Shades"
#position_template: "{{ states('sensor.position-sensor') }}"
open_cover:
#- condition: state
# entity_id: sensor.position-sensor
# state: "off"
- service: remote.send_command
data:
device: Master-bedroom-windows
command: curtain-up
num_repeats: 4
delay_secs: 0.4
target:
device_id: dd1f0f284f47ce229894158e40771157
#- condition: state
# entity_id: sensor.position-sensor
# state: "on"
close_cover:
- service: remote.send_command
data:
device: Master-bedroom-windows
command: curtain-down
num_repeats: 4
delay_secs: 0.4
target:
device_id: dd1f0f284f47ce229894158e40771157
stop_cover:
- service: remote.send_command
data:
device: Master-bedroom-windows
command: curtain-stop
num_repeats: 4
delay_secs: 0.4
target:
device_id: dd1f0f284f47ce229894158e40771157
I left the commented section of the sensor; i don’t have a way to identify where the shade is, and i’m contemplating if pasting a door contact sensor to the top (or bottom) of the shade is worth it, since it would still be binary (fully open/not fully open).