Template Cover

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.

I donā€™t have any experience with the knx system. The custom component is mainly for one way communication motors. The custom component has an opening and closing time so that the percentage can also be handled.
The knx integration seems to have opening/closing time and status updates. If so you shouldnā€™t need this custom component.

Iā€™d just like to add the tilt comand (arrows).
Thanks anyway.

Hi sendorm, thanks for your timedcover component, it works pretty nicely.

However, it doesnā€™t save the states between HA restarts. Iā€™ve seen that you have from homeassistant.helpers.restore_state import RestoreEntity present but somehow the states are lost after restart. It would be good to have at least open/close state saved.

Any idea why?

This is an old code and I am not the owner. I just made it compatible with the current code. And yes I also observed that the state is not saved and it bothers me a bit. It would be great if this code can be integrated into HASS as an official component.

Hi,
Thanks for this code. It has worked wonderfully for my RF controlled patio cover. I have other template covers (not using the timed cover template) and they donā€™t save the state either. 3 use the Broadlink integration (as does my patio cover) and the last is a somfy blind using an arduino RF transmitter and scripts to handle the rolling code.

I use RECORDER and their states are saved in the database, but on restart, they all go back to an initial state (also saved in the database).

So to get around this, I save the states to INPUT_SELECTs for each blind whenever the state changes and then when HA starts, an automation uses a python script (set_state.py) to restore the states.

It works, EXCEPT for the Timed cover. In fact, if I use Developer Tools to set the state of the timed cover, it resets to whatever state it was in immediately. I can see the change and change back happen very quickly.

Why can I not set the STATE of the timed cover? Even with Developer Tools?

Any ideas?

No idea, sorry.

In case it can help someone, here is a custom component:

Great! And thereā€™s a version for RF covers too!