Witam.
Zainstalowałem Hass.io na Raspberry Pi 4 Model B - wersja 32bit
Dodałem HomeKit.
Staram się wgrać integrację Zamela ale utknąłem. Jestem początkujący w tym temacie więc pewne sprawy dla Was oczywiste sprawiają mi trudność.
Po włożeniu karty do czytnika SD mam 3 partycje:
Hassos-data
Hasos-overlay
Hasos-kernel - na tej mam katalog supervisor/homeassistant utworzyłem w nim katalog custom_components i wgrałem katalog extralife z plikami (ściągnięty z githuba wersja 1.0.2)
Dopisałem do konfiguracji w pliku configuration.yaml :
extalife:
user: root
password: hasło
controller_ip: moje_IP
poll_interval: 5
Po odpaleniu HA dostaje w powiadomieniach:
Invalid config
The following integrations and platforms could not be set up:
• extalife
• extalife.cover
• extalife.light
Please check your config.
W configurator pisze:
/config/custom_components/._extalife
'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte
Logi:
2020-01-19 22:41:16 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for extalife which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2020-01-19 22:41:23 ERROR (SyncWorker_4) [custom_components.extalife.pyextalife] Unexpected socket error
Traceback (most recent call last):
File "/config/custom_components/extalife/pyextalife.py", line 313, in connect
resp_js = self.exec_command(ExtaLifeAPI.CMD_LOGIN, cmd_data)
File "/config/custom_components/extalife/pyextalife.py", line 434, in exec_command
resp_js = self._tcp_to_json(resp, command)
File "/config/custom_components/extalife/pyextalife.py", line 369, in _tcp_to_json
if data[-1] == chr(3):
IndexError: string index out of range
2020-01-19 22:41:23 ERROR (MainThread) [homeassistant.setup] Error during setup of component extalife
Traceback (most recent call last):
File "/config/custom_components/extalife/pyextalife.py", line 313, in connect
resp_js = self.exec_command(ExtaLifeAPI.CMD_LOGIN, cmd_data)
File "/config/custom_components/extalife/pyextalife.py", line 434, in exec_command
resp_js = self._tcp_to_json(resp, command)
File "/config/custom_components/extalife/pyextalife.py", line 369, in _tcp_to_json
if data[-1] == chr(3):
IndexError: string index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 174, in _async_setup_component
component.setup, hass, processed_config # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/extalife/__init__.py", line 119, in setup
data.start_listener()
File "/config/custom_components/extalife/__init__.py", line 247, in start_listener
self._notif_listener = self.controller.get_notif_listener(self.on_notify)
File "/config/custom_components/extalife/pyextalife.py", line 276, in get_notif_listener
return NotifThreadListener(self.host, self.user, self.password, on_notify)
File "/config/custom_components/extalife/pyextalife.py", line 555, in __init__
self.connection.connect(self._host)
File "/config/custom_components/extalife/pyextalife.py", line 322, in connect
raise TCPConnError
custom_components.extalife.pyextalife.TCPConnError
2020-01-19 22:41:24 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform extalife.cover: Unable to set up component.
2020-01-19 22:41:24 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform extalife.light: Unable to set up component.