Open BenPru opened 1 year ago
@BenPru I tested a migration from version 2023.9.10 to 2023.10.16-Beta on my Home Assistant test instance, which has no access to the heatpump. It failed, with the following relevant log entries:
2023-10-25 12:49:23.865 ERROR (MainThread) [homeassistant.config_entries] Error migrating entry Alpha Innotec MSW2-6S 311111-0729 for luxtronik2
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 658, in async_migrate
result = await component.async_migrate_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/luxtronik2/__init__.py", line 87, in async_migrate_entry
await _async_delete_legacy_devices(hass, config_entry)
File "/config/custom_components/luxtronik2/__init__.py", line 274, in _async_delete_legacy_devices
coordinator = LuxtronikCoordinator.connect(hass, config_entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/luxtronik2/coordinator.py", line 206, in connect
client = Luxtronik(
^^^^^^^^^^
File "/config/custom_components/luxtronik2/lux_helper.py", line 188, in __init__
self.read()
File "/config/custom_components/luxtronik2/lux_helper.py", line 202, in read
self._read_write(write=False)
File "/config/custom_components/luxtronik2/lux_helper.py", line 218, in _read_write
self._socket.connect((self._host, self._port))
TimeoutError: [Errno 110] Operation timed out
After that, another error was logged:
2023-10-25 12:49:23.870 ERROR (MainThread) [custom_components.luxtronik2] Unexpected exception when checking if a socket is closed
Traceback (most recent call last):
File "/config/custom_components/luxtronik2/lux_helper.py", line 150, in _is_socket_closed
data = sock.recv(16, socket.MSG_DONTWAIT | socket.MSG_PEEK)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 107] Socket not connected
which has no access to the heatpump. It failed
Yes, the migration need a connection to the heatpump to detect the devices. Without connection the migration can not run successfull.
I just did an upgrade to the latest beta - seems to work flawlessly. Even notified me of a firmware update on startup.
[ ] Are all entities migrated succesfull from 2023.03.24 to 2023.10.*?
[ ] Check discover heatpump function
[ ] Document the breaking changes
[x] Missing sensor: switchoff_reason
New sensors
New numbers