klejejs / ha-thermia-heat-pump-integration

Thermia Heat Pump Integration for Home Assistant
GNU General Public License v3.0
30 stars 7 forks source link

Credentials are invalid. (Genesis) #69

Closed jondavidsson closed 2 months ago

jondavidsson commented 8 months ago

I'm getting "Credentials are invalid." with API type set to "genesis". No problem to login at https://online-genesis.thermia.se/

If I try the "classic" the integration is added correctly, but of course no heat pump since that account doesn't have any heat pump installed.

Anyone else having this problem?

janner commented 8 months ago

2024-01-08 10:11:49.213 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Thermia (***username***) for thermia Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/thermia/__init__.py", line 38, in async_setup_entry thermia = await hass.async_add_executor_job( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/thermia/__init__.py", line 39, in lambda: Thermia(username, password, api_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ThermiaOnlineAPI/__init__.py", line 17, in __init__ self.heat_pumps = self.fetch_heat_pumps() ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ThermiaOnlineAPI/__init__.py", line 24, in fetch_heat_pumps heat_pumps.append(ThermiaHeatPump(device, self.api_interface)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ThermiaOnlineAPI/model/HeatPump.py", line 89, in __init__ self.update_data() File "/usr/local/lib/python3.11/site-packages/ThermiaOnlineAPI/model/HeatPump.py", line 126, in update_data self.__running_operational_statuses = self.__get_running_operational_statuses() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/ThermiaOnlineAPI/model/HeatPump.py", line 485, in __get_running_operational_statuses current_operation_mode = [ ^ File "/usr/local/lib/python3.11/site-packages/ThermiaOnlineAPI/model/HeatPump.py", line 486, in value.name AttributeError: 'dict' object has no attribute 'name'

kstevn commented 8 months ago

Same, since updating to 3.3.0.

joakimnord commented 8 months ago

Exactly them same, Calibra 12

Er-i-c commented 8 months ago

Same here with Classic Edit: It's working again for me. Not sure what fixed it. I removed and re-added the integration.

zrajna commented 8 months ago

Same here with genesis.

This error originated from a custom integration.

Logger: custom_components.thermia.config_flow
Source: custom_components/thermia/config_flow.py:52
Integration: Thermia Heat Pump (documentation, issues)
First occurred: 5:56:00 PM (3 occurrences)
Last logged: 6:00:54 PM

'dict' object has no attribute 'name'
Er-i-c commented 8 months ago

And it stopped working again.

klejejs commented 8 months ago

Thanks for reporting the issue! Please install the latest 3.3.1 version and report back if there are still issues.

Er-i-c commented 8 months ago

3.3.1 is working, thanks!

jondavidsson commented 8 months ago

Yes, it's working just fine now. Thanks and great work!

zrajna commented 8 months ago

It's working now. Thanks!

cmragnar commented 8 months ago

And it stopped working again.

Same here. water_heater entity still says Unknow.

What did work for me in 3.2.0 was Operational status, has now been removed.

klejejs commented 8 months ago

@cmragnar when you say "water_heater entity still says Unknown", what do mean by that? Could you please post a screenshot of your sensor values and how they look in Thermia Online? Are you familiar with Python? If yes, could you please follow these instructions and send me the debug file?

flexi80 commented 8 months ago

Hej, after updating from 3.2 - 3.3.1 I no longer have the operational status showing, it is now marked as unavailable.

cmragnar commented 8 months ago

Driftinformation_för_enhet Device_operation_details

@cmragnar when you say "water_heater entity still says Unknown", what do mean by that? Could you please post a screenshot of your sensor values and how they look in Thermia Online? Are you familiar with Python? If yes, could you please follow these instructions and send me the debug file?

Some screnshots. Deviceinfo_heatpump DevTools-water_heater

Debug file debug.txt

klejejs commented 8 months ago

@flexi80 the operational status sensor was removed as it seemed to be showing incorrect and irrelevant values, and replaced with separate status sensors (different ones shown depending on the heat pump). Did you previously find that operational status showed a valid value for your heat pump and was never "unknown"? image

klejejs commented 8 months ago

@cmragnar I am sorry, you have quite a different heat pump than mine according to the debug file, so it is hard for me to debug. Could you please elaborate on if you can switch the operation through the UI for your heat pump, which values are switchable and which are not?

flexi80 commented 8 months ago

@klejejs Hi, yes I've always had the current status of the heat pump working, not the ones you have shown, but the overall status.

image

kstevn commented 8 months ago

I have a Calibra 7 and the operational status has been working fine. thermia2 thermia

cmragnar commented 8 months ago

@cmragnar I am sorry, you have quite a different heat pump than mine according to the debug file, so it is hard for me to debug. Could you please elaborate on if you can switch the operation through the UI for your heat pump, which values are switchable and which are not?

Not that much. Temperature, on the status page. Hotwater (varmvatten) Hotwater boost.

All this ones is working. Both in 3.2.0 and 3.3.1.

Then smart has been added recently, but that is a completely different story. ;) nothing I use.

Status Driftinformation_switchable

cmragnar commented 8 months ago

I have a Calibra 7 and the operational status has been working fine. thermia2 thermia

I think this one is very similar to mine. I have a Diplomat. Suspect it's the same control as a calibra?

klejejs commented 2 months ago

The Genesis API has been removed by Thermia, thus the API config option has been removed and all heat pumps are now using the classic API. Please install the latest version and check if the issues persist. For other problems, please create a new issue in GitHub, as it feels like this one talks about different ones.