cyr-ius / hass-cozytouch

Cozytouch support for Home Assistant
GNU General Public License v2.0
23 stars 14 forks source link

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

Open jybi89 opened 2 years ago

jybi89 commented 2 years ago

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 commented 2 years ago

Same issue here. I cannot connect anymore.

iMicknl commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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