Giter VIP home page Giter VIP logo

Comments (25)

signalkraft avatar signalkraft commented on June 18, 2024 3

I added a country selection in version v0.1.1. After updating and restarting home assistant, please click on configure on myVaillant in integrations and select your country. Afterwards reload the integration.

If you weren't able to login when adding the integration, you should see a country selection after username and password.

from mypyllant-component.

blizarazu avatar blizarazu commented on June 18, 2024 2

It does not work for me either. I uninstalled the previous version before installing v0.1.0, and after entering my credentials, nothing happens. There is no information about the component in the logs.

from mypyllant-component.

signalkraft avatar signalkraft commented on June 18, 2024

I had the same error as you around the same time. It hasn't happened since, so maybe sth. was wrong with the API. I'll keep this open, in case it happens again let me know!

from mypyllant-component.

edudele avatar edudele commented on June 18, 2024

Tuve el mismo error que tú casi al mismo tiempo. No ha sucedido desde entonces, así que tal vez algo. estaba mal con la API. Mantendré esto abierto, en caso de que vuelva a suceder, ¡házmelo saber!

Ok

from mypyllant-component.

edudele avatar edudele commented on June 18, 2024

Good morning,
The problem has not repeated, close the issues and if it happens again I will reopen it.

Possibly it is due to the Vaillant cloud, because it fails a lot, last week we spent 3 days without the application, it was a problem recognized by Vaillant.

Possibly it will happen again when the Vaillant endpoint goes down.

from mypyllant-component.

mc-mario avatar mc-mario commented on June 18, 2024

This has also been happening to me lately;

  File "/Users/mariomblu/GitHub/myPyllant/tests/generate_test_data.py", line 54, in main
    async with MyPyllantAPI(user, password) as api:
  File "/Users/mariomblu/GitHub/myPyllant/src/myPyllant/api.py", line 83, in __aenter__
    await self.login()
  File "/Users/mariomblu/GitHub/myPyllant/src/myPyllant/api.py", line 104, in login
    raise Exception(login_json["errorSummary"])
Exception: Authentifizierung fehlgeschlagen
Unclosed client session

A couple days ago I was prompted to update myVaillant app to use an improved "new login" system. Maybe they are deprecating the old endpoint

from mypyllant-component.

edudele avatar edudele commented on June 18, 2024

It has happened again.

state = self._stringify_state(available)
2023-03-07 13:24:50.426 ERROR (MainThread) [custom_components.mypyllant] Error requesting myVAILLANT data: 400, message='Bad Request', url=URL('https://vaillant-prod.okta.com/oauth2/default/v1/token')
2023-03-07 13:44:16.508 ERROR (MainThread) [custom_components.mypyllant] Error requesting myVAILLANT data: 400, message='Bad Request', url=URL('https://vaillant-prod.okta.com/oauth2/default/v1/token')
2023-03-07 13:44:17.156 ERROR (MainThread) [custom_components.mypyllant] Error requesting myVAILLANT data: 400, message='Bad Request', url=URL('https://vaillant-prod.okta.com/oauth2/default/v1/token')

I have included this in my config:

logger:
logs:
custom_components.mypyllant: debug
myPyllant: debug

Regarding the last authentication after the update, the same thing happened to me, it seems to me that they use OAuth 2.0, since that login came out of a website using a federated cloud Web App login.

I may be wrong, but it is possible that the download of the new token in the current version is done by OAuth.

from mypyllant-component.

edudele avatar edudele commented on June 18, 2024

After restarting home assistant with the logger on, two errors:

Logger: homeassistant.config_entries
Source: custom_components/mypyllant/init.py:34
Integration: myVAILLANT (documentation, issues)
First occurred: 15:50:31 (1 occurrences)
Last logged: 15:50:31
Error setting up entry [email protected] for mypyllant
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/mypyllant/init.py", line 34, in async_setup_entry
await api.login()
File "/usr/local/lib/python3.10/site-packages/myPyllant/api.py", line 104, in login
raise Exception(login_json["errorSummary"])
Exception: Authentifizierung fehlgeschlagen

Logger: myPyllant.api
Source: custom_components/mypyllant/init.py:34
Integration: myVAILLANT (documentation, issues)
First occurred: 15:50:31 (1 occurrences)
Last logged: 15:50:31
Could not log in, got status 401 this response: {'errorCode': 'E0000004', 'errorSummary': 'Authentifizierung fehlgeschlagen', 'errorLink': 'E0000004', 'errorId': 'oae-W27IQvsTry1MHxO3FpSkw', 'errorCauses': []}

The German translation of
Authentifizierung fehlgeschlagen -> Authentification failed

And devices:
image

This new update has a lot of changes in authentication so it seems

from mypyllant-component.

edudele avatar edudele commented on June 18, 2024

Performing the wipe and recreating the device, still fails to authenticate.
image

It seems that the myPyllant library has been invalidated at least the login

from mypyllant-component.

signalkraft avatar signalkraft commented on June 18, 2024

Vaillant changed the login workflow completely, see signalkraft/myPyllant#7 (comment)

Latest version should work again!

from mypyllant-component.

edudele avatar edudele commented on June 18, 2024

In my case it doesn't work.

In the installation, after installing (upgrading) by HACS:
Try to login, I know the fields when configuring the user and the account, after login and it does not advance

from mypyllant-component.

ardyp87 avatar ardyp87 commented on June 18, 2024

Having the same issue, no error in the log. Thanks.

from mypyllant-component.

signalkraft avatar signalkraft commented on June 18, 2024

I tested the setup with a blank HA docker container, it works for me.

When you log into the myVaillant app, do you get a browser window like this, or do you enter username and password in the app?

image

If you get the browser window, could you share the URL you are getting? In my case it starts with https://identity.vaillant-group.com/auth/realms/vaillant-germany-b2c/protocol/openid-connect/auth.

Maybe there are different realms (groups) in Vaillant's new authentication, in my case it's vaillant-germany-b2c. I would need to know which addresses you are seeing to validate that.

from mypyllant-component.

ardyp87 avatar ardyp87 commented on June 18, 2024

https://identity.vaillant-group.com/auth/realms/vaillant-italy-b2c/protocol/openid-connect/auth?client_id=myvaillant&redirect_uri=enduservaillant.page.link%3A%2F%2Flogin&login_hint=[emailaddress]&response_mode=fragment&response_type=code&scope=offline_access%20openid&code_challenge=******&code_challenge_method=S256

That’s the link I got since a week or so.

from mypyllant-component.

minosrex avatar minosrex commented on June 18, 2024

https://identity.vaillant-group.com/auth/realms/vaillant-belgium-b2c/protocol/openid-connect/auth?client_id=myvaillant&redirect_uri=enduservaillant.page.link%3A%2F%2Flogin&login_hint=***EMAIL***&response_mode=fragment&response_type=code&scope=offline_access%20openid&code_challenge=****&code_challenge_method=S256

Belgium

from mypyllant-component.

edudele avatar edudele commented on June 18, 2024

My link, Spain

https://identity.vaillant-group.com/auth/realms/vaillant-spain-b2c/protocol/openid-connect/auth?client_id=myvaillant&redirect_uri=enduservaillant.page.link%3A%2F%2Flogin&login_hint=***email***%40gmail.com&response_mode=fragment&response_type=code&scope=offline_access%20openid&code_challenge=*****&code_challenge_method=S256

from mypyllant-component.

ardyp87 avatar ardyp87 commented on June 18, 2024

Tried uninstalling and reinstalling the component, I’m now unable to login.

from mypyllant-component.

edudele avatar edudele commented on June 18, 2024

V0.1.1 login perfectly.

Thank you for your work.

We keep in observation...

from mypyllant-component.

mc-mario avatar mc-mario commented on June 18, 2024

Can confirm it works great 🙌🏻 !

from mypyllant-component.

ardyp87 avatar ardyp87 commented on June 18, 2024

Thanks, this fixed the issue for me after uninstall and reinstall.

from mypyllant-component.

Alllfff avatar Alllfff commented on June 18, 2024

Perfect, works fine now

from mypyllant-component.

blizarazu avatar blizarazu commented on June 18, 2024

It works like a charm now. Thank you!

from mypyllant-component.

Micky2149 avatar Micky2149 commented on June 18, 2024

Thanks

from mypyllant-component.

MP14588 avatar MP14588 commented on June 18, 2024

Thank you. Now the log in works perfectly.
Unfortunately no devices are listed in the integration.

I report some errors:

Logger: custom_components.mypyllant
Source: custom_components/mypyllant/init.py:139
Integration: myVAILLANT (documentation, issues)
First occurred: 8 marzo 2023 alle ore 23:26:08 (4 occurrences)
Last logged: 21:59:45

Unexpected error fetching myVAILLANT data: 1 validation error for Zone current_room_temperature field required (type=value_error.missing)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 239, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/mypyllant/init.py", line 139, in _async_update_data
data = [
File "/config/custom_components/mypyllant/init.py", line 139, in
data = [
File "/usr/local/lib/python3.10/site-packages/myPyllant/api.py", line 200, in get_systems
system = System(
File "/usr/local/lib/python3.10/site-packages/myPyllant/models.py", line 114, in init
self.zones = [Zone(system_id=self.id, **z) for z in self._raw_zones]
File "/usr/local/lib/python3.10/site-packages/myPyllant/models.py", line 114, in
self.zones = [Zone(system_id=self.id, **z) for z in self._raw_zones]
File "pydantic/main.py", line 342, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for Zone
current_room_temperature
field required (type=value_error.missing)

And the other one:

Logger: homeassistant.components.binary_sensor
Source: custom_components/mypyllant/binary_sensor.py:32
Integration: Sensore binario (documentation, issues)
First occurred: 8 marzo 2023 alle ore 23:26:09 (4 occurrences)
Last logged: 21:59:46

Error while setting up mypyllant platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/mypyllant/binary_sensor.py", line 32, in async_setup_entry
for index, system in enumerate(coordinator.data):
TypeError: 'NoneType' object is not iterable

Any help?

Thanks

from mypyllant-component.

signalkraft avatar signalkraft commented on June 18, 2024

I'm closing this and moving your issue to a new ticket @MP14588

from mypyllant-component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.