Core: unable to find RF-link platform while it is present

Created on 30 Mar 2019  路  10Comments  路  Source: home-assistant/core

Home Assistant release with the issue:

0.90.2

Last working Home Assistant release (if known):
unkown - at 0.82 it didn't seem to be working for me aswell..

Operating environment (Hass.io/Docker/Windows/etc.):

Debian running homeassistant in a virtual environment.

Component/platform:

https://www.home-assistant.io/components/light.rflink/
https://www.home-assistant.io/components/switch.rflink/

( only : https://www.home-assistant.io/components/rflink/ seems to be working)

Description of problem:
The RFLink component seems to run fine and I see all the messages well in my log. But all the platforms I tried so far don't work (light and switch) I get the following error :
'''2019-03-30 13:26:10 ERROR (MainThread) [homeassistant.loader] Unable to find platform rfl矛nk'''

I double checked if rflink.py is available in the light and switch folder and that is the case in the virtual environment.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

light:
  - platform: rfl矛nk
    automatic_add: true
switch:
  - platform: rfl矛nk
    devices:
      NewKaku_01e81c12_1:
        name: "Eettafel"

also while checking config:
image

Most helpful comment

... You are right! I have no idea how that got there since we don't use the accented letter in my langauge anyway... Thank you so much!

All 10 comments

Have you configured the rflink platform in your configuration.yaml according to the docs?
https://www.home-assistant.io/components/rflink/

@javicalle yes the rflink component works perfectly fine and I receive all the signals. Only all the platforms are broken/ I think it might have to do with the great migration, but not sure... Anything I can do or look into to help fix it?

After "great migration" the components folder structure changes to something like

+ rflink
    + _init_.py
    + light.py
    + switch.py
    +... 

But you said

I double checked if rflink.py is available in the light and switch folder and that is the case in the virtual environment.

And your config validations blames:

  • Platform not found: switch.rflink
  • Platform not found: light.rflink

After "great migration" must be rflink.switch and rflink.light. I think there is something wrong here.

Can you check that?

here the results @javicalle :

rf link component folder :
image

Light platform folder :
image

switch platform folder :
image

If I understand correctly this is wrong after the big migration than? Weird thing is that on github all these components are placed in the rflink folder as specified : https://github.com/home-assistant/home-assistant/tree/dev/homeassistant/components/rflink

I see you are right. At v0.90.2 the folder structure is as you say:

My HA is Hass.io, and the folder structure is the one I have with rflink components at custom_components (not the official one) hence my mistake.

Do you have any custom_components development for this components?

@javicalle I have no custom_components for RFLink but if you have a custom one that does work than I'm intrested for the mean time!

I do not think it's the solution, there must be some problem somewhere, but if you want to try, you can do the following:

The only configuration that can be diferent will be the logger:. The references to homeassistant.components.rflink must point to custom_components.rflink, for example:

logger:
  default: error
  logs:
    # homeassistant.components.rflink: info
    custom_components.rflink: info
    custom_components.rflink.light: debug

I think that is the only thing that must be taken into account.

WTF!, I think it's much simpler. You have an accented letter!

rfl矛nk

Also the validation message point to it.
Check the letter i of rflink

... You are right! I have no idea how that got there since we don't use the accented letter in my langauge anyway... Thank you so much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arangates picture arangates  路  3Comments

aweb-01 picture aweb-01  路  3Comments

sogeniusio picture sogeniusio  路  3Comments

sibbl picture sibbl  路  3Comments

moskovskiy82 picture moskovskiy82  路  3Comments