Open PeterAndreS opened 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
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
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
Connection error when trying to add the integration.
Network is setup.
BMS is enabled. No changes. / Left on setting [1] [1] Modbus TCP / Port 502 [2] Modbus RTU/ Add 1/Baud rate 19200/Par Even/Stopbits 1
When 'Add integration' is done with Host IP/(ATLAS IP) 192.168.10.10 / Modpus port 502 / Heatpump model "inverter" ! Connection error. is shown.
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