Core: Linky sensor cannot log in to Enedis

Created on 2 Oct 2018  路  10Comments  路  Source: home-assistant/core

Home Assistant release with the issue: 0.79.2

Last working Home Assistant release (if known): none

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

Component/platform: sensor.linky

Description of problem:

The Linky platform cannot log in to Enedis API. This error occurs every 10 minutes in the HA logs.

Login error: Please check your username/password.

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

sensor:
  - platform: linky
    username: !secret enedis_username
    password: !secret enedis_password

File secrets.yaml

enedis_username: [email protected]
enedis_password: pa55w0rd!

Enedis password policy requires minimum 8 characters, including a letter, a number and a special character (excluding " " and "/").

Traceback (if applicable):

Login error: Please check your username/password.
16:57 components/sensor/linky.py (ERROR)

Additional information:

Running pyLinky manually in a console, works fine.

pip install pylinky
pylink -u "[email protected]" -p "pa55w0rd!"

All 10 comments

@tiste Have you experienced this behavior?

This error occurs every 10 minutes in the HA logs.

Makes me think about the scan interval of the sensor.

Btw, I know the enedis platform is not really stable currently (they're often in maintenance mode).

I have the same issue. Even with a timeout set to 30s. If I rollback to the custom component we can find in the forum it works fine.
Also, do you plan to retrieve other values like day-2, last month, last year data?

The error message is the same as providing a wrong password to pyLinky.
I am wondering if the username and password are correctly encoded when used in the pyLinky library.

Hi, same problem here, glad to see I'm not the only one !

Hi, same problem here too ! Waiting for the fix 馃憤

Waiting for the delivery of the fix, you can use this code in a custom component: config/custom_components/sensor/linky.py.

That did the trick ! Thanks !!!

Hi !

Did anybody plan to merge this in the main Home Assistant repo for a future release ? I don't really know the process, maybe it's already done by someone ...

Yes, we are on it with @hobbe .
Yesterday, author of pylinky has accepted my PR to improve his library. Now, I'm waiting that he update it on Pypi.

Was this page helpful?
0 / 5 - 0 ratings