Custom Component: Cover Time Based

Hi Brandon,
It is possible with the trigger-script version of this component, which has the cover_rf_time_based.set_known_position service exactly for this :wink:
If you put a door sensor to the desired end or in the pathway, you can make it jump there every time it passes by it, so you get an auto-calibration each time.

Thanks! I’ll look into that. I don’t think the travel distance is big enough for a door sensor (the contact zone is too wide), but perhaps an optical one or a 3d printer style limit switch would work

Hi,

I am having problem to implment this using rfxcom. I have created a folder under config/cover_rf_time_based but for some reason still got his error.

Logger: homeassistant.components.hassio
Source: components/hassio/init.py:420
Integration: Hass.io (documentation, issues)

Platform error cover.cover_rf_time_based - Integration ‘cover_rf_time_based’ not found.

I suggest to install HACS first to your Home Assistant instance. It will make the management of your custom components a whole lot easier.

Hi,

Thanks manage to solve my problem after install HACS. I am using the rfxcom integration. Next step to figure out how to integrate the state of the blind when someone use an external remote. I do have tasmota rf module as well. May be I should use to update the blind status when someone press the remote. The other simple option is to replace the external remote with opple scene switch (6 buttons)

cover:

  • platform: cover_rf_time_based
    devices:
    blind1_cover_time_based:
    name: Test Blind 1
    travelling_time_up: 68
    travelling_time_down: 68
    close_script_entity_id: script.rf_blind1_down
    stop_script_entity_id: script.rf_blind1_stop
    open_script_entity_id: script.rf_blind1_up
    send_stop_at_ends: False #optional
    aliases:
    - Test Blind 1

‘rf_blind1_down’:
sequence:

  • device_id: b77fdf9bd4a916ca8c96fda9099efba3
    domain: cover
    entity_id: cover.unknown_type_0x19_0x06_010101_16
    type: close
    mode: single

‘rf_blind1_stop’:
sequence:

  • device_id: b77fdf9bd4a916ca8c96fda9099efba3
    domain: cover
    entity_id: cover.unknown_type_0x19_0x06_010101_16
    type: stop
    mode: single

‘rf_blind1_up’:

sequence:

  • device_id: b77fdf9bd4a916ca8c96fda9099efba3
    domain: cover
    entity_id: cover.unknown_type_0x19_0x06_010101_16
    type: open
    mode: single

Hi,

homeassistant:
customize_domain: #for all covers
cover:
device_class: shutter
customize: #for each cover separately
cover.my_test_cover_time_based:
device_class: shutter

How to add a slider to the components so that I can adjust the percentage it open or close

With the latest update from HACS, we respect the changes introduced in XKNX version 0.12.0 where position 0 means “fully open”, 100 means “fully closed”.

After update you need to simply close all your covers from Lovelace to re-sync their position with the reality. From now on 0 means “fully open”, 100 means “fully closed” here too.
This was requested many times and it was impossible until now.

Are you aware that the knx HA integration is inverting this again when interfacing with xknx?

This is done to avoid issues with other integrations. Eg. when you call Alexa to “open covers” it will send 100% to HA - which will be passed to other integrations then.

It was changed in xknx to stick to the KNX specifications, which are in this case the inverse of HAs.

It remains compatible. Many people asked for it as it’s more logic like this.

Thats a matter of taste.
Would be nice if this could be made optional.

I’m not sure if it’s possible. But if you can submit a PR, I’d love to merge it


Tasmota’s default is also 100=fully open. This means people who use Tasmota & HA covers will get confused (like myself) or need to change all Tasmota covers which could be a lot of work. Therefore I agree with VDRainer : make it configurable.

Let’s vote then, I can revert the change if many people complain.
I don’t have the time and priority now to make it configurable.

OK, I then vote for keeping 100 = fully open.

For people who use RF covers with Tasmota RF Brigde some new tips to improve reliability of code transmission.

This is an excellent addon, but after the update I had problems with the graphics. The up arrow opens the curtain, but graphically it is closing. the same happens when I ask to close. the down arrow closes the curtain, but graphically it is opening. would you have any tips for me to solve? it worked very well before the update. thanks

Scroll 9 posts up and start reading there.
Welcome to HA!

Hi,
IMHO although in the documentation for the integration ‘cover’ it is not positioned in an OPEN / CLOSED criterion, within the code you can see several references about which value is OPEN/CLOSED:

Maybe the comments are out of date, but I think going against the base implementation can end up causing problems in the CC interoperatibility.

Well, it seems that there is an ‘official’ documentation on this subject:

OK reverted. Toggle up and down each one to re-sync state to reality.

1 Like