CJNE / thermiagenesis

Home assistant custom component for Thermia Inverter/Mega heat pumps
MIT License
20 stars 12 forks source link

Connection error when trying to add the integration. #203

Open PeterAndreS opened 1 year ago

PeterAndreS commented 1 year ago

Connection error when trying to add the integration.

Note: "https://www.online-genesis.thermia.se/" works ok, => Network ok!

Version of the custom_component

Latest 009

Configuration

No specific yaml Configuration.

Describe the bug

Get a connection error when trying to connect.

Debug log

2022-12-02 08:28:19.606 INFO (SyncWorker_4) [homeassistant.loader] Loaded demo from homeassistant.components.demo 2022-12-02 08:28:19.607 INFO (SyncWorker_4) [homeassistant.loader] Loaded plant from homeassistant.components.plant 2022-12-02 08:28:19.608 INFO (SyncWorker_4) [homeassistant.loader] Loaded proximity from homeassistant.components.proximity 2022-12-02 08:28:31.358 DEBUG (MainThread) [custom_components.thermiagenesis.config_flow] Attempt connect... 2022-12-02 08:28:31.359 INFO (MainThread) [custom_components.thermiagenesis.config_flow] Other error 2022-12-02 08:28:31.359 INFO (MainThread) [custom_components.thermiagenesis.config_flow] 'bool' object is not callable

dd1982 commented 1 year ago

Can't really help but this sounds more like something in the config process is botched somehow rather than anything to do with the actual connection.

2022-12-02 08:28:31.359 INFO (MainThread) [custom_components.thermiagenesis.config_flow] Other error 2022-12-02 08:28:31.359 INFO (MainThread) [custom_components.thermiagenesis.config_flow] 'bool' object is not callable

CJNE commented 1 year ago

Not sure what's going on here, can you also enable debug logging for the client library and see if it gives us any more hints? In configuration.yaml add

logger:
  default: info
  logs:
    custom_components.thermiagenesis: debug
    pythermiagenesis: debug
PeterAndreS commented 1 year ago

Same result: 2022-12-08 03:09:11.709 DEBUG (MainThread) [custom_components.thermiagenesis.config_flow] Attempt connect... 2022-12-08 03:09:11.709 INFO (MainThread) [custom_components.thermiagenesis.config_flow] Other error 2022-12-08 03:09:11.709 INFO (MainThread) [custom_components.thermiagenesis.config_flow] 'bool' object is not callable

Updated line 48 in config_flow to: _LOGGER.debug("Attempt connect... " + data[CONF_HOST] + ' ' + str(data[CONF_PORT]) + ' kind=' + data[CONF_TYPE])

_I guess problem exists in asyncupdate. 2022-12-08 03:37:01.309 DEBUG (MainThread) [custom_components.thermiagenesis.config_flow] Attempt connect.. . 192.168.10.10 502 kind=inverter 2022-12-08 03:37:01.309 INFO (MainThread) [custom_components.thermiagenesis.config_flow] Other error 2022-12-08 03:37:01.309 INFO (MainThread) [custom_components.thermiagenesis.config_flow] 'bool' object is not callable