Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Unexpected error fetching cozytouch data: 401 since last update HA #48

Open
jybi89 opened this issue Nov 16, 2021 · 4 comments
Open

Unexpected error fetching cozytouch data: 401 since last update HA #48

jybi89 opened this issue Nov 16, 2021 · 4 comments

Comments

@jybi89
Copy link

jybi89 commented Nov 16, 2021

Hi,

I have this problem since of last update of HA :

`Logger: custom_components.cozytouch
Source: custom_components/cozytouch/init.py:92
Integration: Cozytouch (documentation, issues)
First occurred: 08:34:38 (90 occurrences)
Last logged: 10:31:05

Unexpected error fetching cozytouch data: 401
Traceback (most recent call last):
File "/config/custom_components/cozytouch/init.py", line 88, in async_fecth_datas
await cozytouch.connect()
File "/usr/local/lib/python3.9/site-packages/cozytouchpy/client.py", line 119, in connect
raise AuthentificationFailed(response.status)
cozytouchpy.exception.AuthentificationFailed: 401

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
return await self.update_method()
File "/config/custom_components/cozytouch/init.py", line 92, in async_fecth_datas
raise AuthentificationFailed(error) from error
cozytouchpy.exception.AuthentificationFailed: 401
`

I can't login with hass-cozytouch. I have check with app on my smartphone (Atlantic) and it's ok.

Thanks for your reponses.

@mama31
Copy link

mama31 commented Dec 3, 2021

Same issue here. I cannot connect anymore.

@iMicknl
Copy link

iMicknl commented Dec 3, 2021

@jybi89 @mama31 this integration hasn't been adapted (yet) to use the new authentication method from Cozytouch. You will need to wait until a maintainer adds this.

In the mean-time you could use https://github.com/iMicknl/ha-tahoma, which supports Cozytouch as well and is targeting core (hopefully soon).

@jybi89
Copy link
Author

jybi89 commented Dec 4, 2021

thanks you for your answer,

unfortunately the Overkiz integration does not allow with CozyTouch to modify the value of the climate

image

type: custom:simple-thermostat style: | ha-card { --st-font-size-xl: 24px; --st-font-size-m: 10px; --st-font-size-title: 10px; --st-font-size-sensors: 15px; --st-spacing: 1px; } entity: climate.zone_1_3 name: false icon: false control: preset: away: true none: name: Not set hvac: true layout: mode: names: true icons: true headings: false header: false

@iMicknl
Copy link

iMicknl commented Dec 4, 2021

@jybi89 you can report issues for the Overkiz integration here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants