Template Cover

Sorry to revive an old topic, but with the new async update of 0.84, the custom component by @PhracturedBlue does not work any more.
I would also like to see the opening time and closing time in the official component. So that we can set the covers to any position, not just %100 and %0.
Thank you.

Should i place the template.py file under custom_components\cover\ . or directly under custom_components?
I place under the cover but it does not seem to load.

You should put it under custom_components\cover. But the current version of the code gives errors in 0.84. Check your log for errors.
I made small changes and it is working again. Thanks to @PhracturedBlue‘s great work. If anyone is interested I can upload it to github.
I wonder why this is not implemented in the official version yet.

Hello sendorm,

Can you please place it in github your version of template.py. Thanks.

1 Like

I think i got my version of template.py altered and is working now.

Great to hear. I’ll still upload the code after work, for reference.

Here is my updated version for 0.84+
https://raw.githubusercontent.com/sendorm/home-assistant/master/cover/template.py

1 Like

HA HassIO … has a new update
And Broadlink updated their home assistant control system
and it has changed a bit

I can’t get the timed cover to work. Would it still work with the latest version of HA ?
or is there an other simple way to integrate the covers on time based open / close.

@sendorm i see you posted a command on an other topic about the timed cover.
there you have a config example about timedcover. I looked at your github HA config.
But cant find the covers on your github.

The code still works, but you have to add manifest.json and init.py

You can find a small readme and the required files at:

1 Like

Thanks, i added the files and sadly the timedcover is not working proparly.
i used your sample config to test with.
On default i get an tiltposition and an normal position.
i only use the open/close/stop_cover commands
and have tried tilt_optimistic: false
i asume i the tilt position would not show up.

When i use lets say 30 sec for open and close the cover does nothing with these values
When i push the button to lower the screen the position jumps emediatly to down.

what am i missing or doing wrong ?

It works with the cover position slider. When you press the up or down it might jump to 0 or 100. That’s not that important. But let’s say your covers are closed and at 0 percent. Move the slider to %50 percent and the cover will work for 15seconds and settle at middle position. This also works with google home. Just say google to set the position to %50. It will do so. One thing to note. When you press the up to open the cover, wait for 30 seconds until your next command. If you don’t it will put the covers out of sync. Just press another arrow and wait to fix.

I was hoping that when i stop the cover going down within the time i would have the options for up and down. But therefore the slider needs to update to the correct percent (or at least be between 1 and 99). But that part does not working if i interperter your comment correct.

You can use the stop button, but currently it does not update the cover position to the position it’s stopped at. As I’ve said I use the position with google assistant and it works as expected (setting the cover position to any percent with voice commands)

It would be nice that the position is updated for my aplication. I dont use any voice assistent and only uses the buttons.

You could either try to fix the code yourself or find a good coder :slight_smile: Unfortunately I am not a coder. It would have been perfect if this feature request was implemented in the official version. Fingers crossed.

1 Like

Im also not a coder and dont now any who can solve this. I have seen that there is an esp-home timed cover. So it would be very nice if ha also add this future in the template cover or a seperate timed cover. The basic is already here. I look forward to it.

Thanks to @PhracturedBlue for the nice custom cover integration. And thanks to @sendorm for putting it all into an easy to consume repo.

I didn’t need the tilt function so I disabled it in the cover.py file.
I had noticed a few others were trying to do this as well.

I forked the timedcover repo from @sendorm and changed line 199 of the cover.py file to set the tilt value to None instead of 0.

Here’s the change I made: https://github.com/rmooreID/timedcover/commit/111ffaa62147f6dee575dd03389bc7f8666a6bc7

Hope this helps anyone else who didn’t need the tilt functionality.

1 Like

Thank you for the fix.

Hi,

I already put the files under custom_components/timedcover folder. My doubt is to adjust the timedcover in configuration.yaml to my blinds.

I have my knx blinds working with this code:

cover:
  - platform: knx
    name: Living_Room_Blind
    move_long_address: '1/2/1'
    move_short_address: '1/2/0'
    position_address: '4/2/0'
    position_state_address: '4/2/1'
    angle_address: '4/6/0'
    angle_state_address: '4/6/1'
    travelling_time_down: 51
    travelling_time_up: 61

Hi @sendorm,
Could you please help me to adapt my covers to timedcover custom component?
Thanks.