YET another time controlled cover (RFLink)

Would you be so kind as to take the following test?

In the CC manifest.json file, modify the value of the following line:

   "dependencies": ["rflink"],

Thanks in advanced.

That did the trick, it’s loading the component now. Thanks a lot for this workaround/fix.

I just updated the CC to the latest version of the xknx library which introduces changes in the position calculation.
For those that work well for you, it is not necessary to update the code, since it does not add functionalities or fix bugs.

@javicalle, that’s sound big stuff. Congratulations.

I discovered your post because I aml looking for the same custom component but with rfxrtx. I have a USB RFXCOM RFXtrx433E to pilot SOMFY RTS rolling shutters.

Can you advice me some other CC or adaptation to yours ?

I am a newbie in Home Assistant but I am not afraid at code lines.

I have had a look and adapting the implementation is not trivial. It is not complicated because both integrations are quite similar, but you have to take a lot of code (the configuration, initialization and new functionalities).

I can try to help you if you want to implement it on your own.

The other CC I know I don’t think are a good fit:

1 Like

Thanks ! I tried it and that worked great.

Here it is my feedback :
Custom Component: Cover Time Based - Share your Projects! / Custom Components - Home Assistant Community (home-assistant.io)

1 Like

Hello Javicalle

Help, it no longer works with the latest version of Home Assistant 2021.3.0 !!!
rst_rflink 0.0.54

Logger: homeassistant.config
Source: custom_components/rts_rflink/cover.py:28
First occurred: 12:32:00 (1 occurrences)
Last logged: 12:32:00

Platform error: cover
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config.py", line 834, in async_process_component_config
    platform = p_integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 499, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 504, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/config/custom_components/rts_rflink/cover.py", line 28, in <module>
    from homeassistant.components.rflink import (
ImportError: cannot import name 'CONF_DEVICES' from 'homeassistant.components.rflink' (/usr/src/homeassistant/homeassistant/components/rflink/__init__.py)


Logger: homeassistant.components.hassio
Source: components/hassio/__init__.py:454
Integration: Hass.io (documentation, issues)
First occurred: 12:37:39 (1 occurrences)
Last logged: 12:37:39

Platform error cover.rts_rflink - cannot import name 'CONF_DEVICES' from 'homeassistant.components.rflink' (/usr/src/homeassistant/homeassistant/components/rflink/__init__.py)

I have the same issue. I’m happy i’m not alone :smiley:
@javicalle do you still support it? Thank you!

1 Like

I’ve done a quick and dirty fix.
Can you please check if will fix the error?

Hey, Thank you for quick response. Yes, it works again!

1 Like

Thanks, great, it works now…
Did you simply move CONF_DEVICES from ‘from homeassistant.components.cover import’ to ‘from homeassistant.const import’ ?

Thank you for your responsiveness. I always fear that one day you will no longer support your code.

Yes, this part has been updated for RFLink integration and I missed it.

I think it is not very difficult to keep the changes, but in any case I will try to keep the CC updated.

Hello Javicalle,

I updated Home Assistant to 2021.3.3 and rts_rflink 1.0.6 but have the same problem as sidwin9.

What was the fix for the problem?

Logger: homeassistant.components.hassio
Source: components/hassio/init.py:454
Integration: Hass.io (documentation, issues)
First occurred: 7:46:51 PM (1 occurrences)
Last logged: 7:46:51 PM

Platform error cover.rts_rflink - cannot import name ‘CONF_DEVICES’ from ‘homeassistant.components.rflink’ (/usr/src/homeassistant/homeassistant/components/rflink/init.py)

You need to update your local cover.py file to the last version:

Thanks, It is fixed.

Another question. I have Brel-motors in my roller tilt shutters that are configured with a pulse (step control). A short push will tilt the shutter a bit open or close. A long push (2 seconds) will completly open or close the shutter.

The short push works perfectly. Only I can’t give a long push to open or close the shutter completly. Is it possible to achieve this?

Great!

I will say that with the current firmware version it is not possible.
There are several reports about long/short pulse and cover tilt/motion, and it seems that RFLink maintainers are aware of it, but it is not implemented in the available version.

This is one of the posts that most clearly explain the problem:

Hey javicalle,

I have an info via the following error message, it seems that there will be an evolution concerning the RF_LINK for version 2021.6.

Logger: homeassistant.loader
Source: loader.py:794
First occurred: 17:07:09 (1 occurrences)
Last logged: 17:07:09

No ‘version’ key in the manifest file for custom integration ‘rts_rflink’. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of ‘rts_rflink’

1 Like

Hi @sidwin9,
sorry for the delay and thanks for your interest.

I’m aware of the new requirements and it is something that I plan to review, but I have not yet been able to dedicate time to it.

I am also willing to adapt the module to make it compatible with HACS. This would facilitate updates.

I hope I can take some time this weekend to be able to at least solve the version error for v2021.06

Hi,
the version and iot_class has been added to the CC. That will make it compatible with v2021.06

Now I’m looking for integrate with HACS, but I think that a refactor or even repository change can be required.

Hi,

Great, thank you.
Strongly integrate into HACS…