YET another time controlled cover (RFLink)

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…

Hello,
I have the same error after updating to core-2021.6.3.
I downgraded to core-2021.5.5 to have RFLink workable.

Using “Check Home Assistant configuration” I have this error:

Failed config
  General Errors: 
    - Platform error cover.rts_rflink - Integration 'rts_rflink' not found.

So I’m waiting to see a fix before updating hassio.

Thank you.

Hello Cyrildu31,

Just update the file manifest.json available under :

custom_components/manifest.json at master · javicalle/custom_components (github.com)

I’m not sure what the bug is in your case, but as @sidwin9 comments, it may be related to the v2021.06 requirements

Please update the CC to the latest version specifically the manifest.json file

Thank you with updating the manifest RFLink works with the latest version 2021.6.
:+1:

Hello @javicalle,
I found this thread by chance and that would be exactly what I am looking for.
See RFLink with Cover Time Based entity for Somfy RTS RF shutters
Is this component still up to date?
(What about integration with HACS?).
Thanks.