Hey all,
I’ve been putting this off for some time now, because it will require a bit of work and thinking. So I thought I’d reach out to see if anyone has already tried this?
Basically I have some “dumb” RF controlled blinds, so they don’t return their current position. As such, I need to set their position_template: “50” so that I can always open/close them.
I want to look at maybe setting a custom value for their position based on the time it takes for a blind to fully close.
So if it takes 10 seconds for the blind to close, and I press “stop” at 7 seconds, then I want the position_template to equal 70. (if left blank, then I can’t continue to close blinds as it thinks they are closed).
Here is the cover code for one blind:
cover:
- platform: template
covers:
blind_01:
friendly_name: "Bedroom 1"
# position_template: "50" *When commented out, the blinds don't work as expected.
device_class: shade
open_cover:
service: remote.send_command
data:
entity_id: remote.rmpro_remote
command: b64:sgD0Ap8y3AAAAAA=
close_cover:
service: remote.send_command
data:
entity_id: remote.rmpro_remote
command: b64:sgD0ApAAAAAA=
stop_cover:
service: remote.send_command
data:
entity_id: remote.rmpro_remote
command: b64:sgD8AJ4yAAAAAA==
What I’m thinking is that when the Blind is opened, I will need to call a service that counts from the current position_template for that blind and begins to add/subtract time to set the new position.
Note: I have 15 shades, hoping it won’t be very complex to implement for each.