homeassistant-roborock icon indicating copy to clipboard operation
homeassistant-roborock copied to clipboard

docker - HACS - roborock > not working

Open pan-sattan opened this issue 1 year ago • 5 comments

Hello,

on non docker installation of Homeassistant its working perfectly. But in Docker I cannot reach roborock integration - is added, but still make an initializing process.... without HACS integration roborock connection is OK - no issues

image

ports 58866, 58867 are exposed on my router. Is necessary to do something in docker compose??

pan-sattan avatar Aug 16 '23 12:08 pan-sattan

Logger: roborock.cloud_api Source: custom_components/roborock/coordinator.py:76 Integration: Roborock (documentation, issues) First occurred: 09:28:34 (4 occurrences) Last logged: 09:38:35

[Roborock S6 MaxV] 'NoneType' object has no attribute 'status' Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 259, in on_message_received listener(self.device_info.device.duid, CacheableAttribute.status, status) File "/config/custom_components/roborock/coordinator.py", line 76, in update_device setattr(self.device_info.props, attribute, data) AttributeError: 'NoneType' object has no attribute 'status'

pan-sattan avatar Aug 19 '23 13:08 pan-sattan

Similar issue, I'm running HA docker image ghcr.io/home-assistant/home-assistant:2023.8.4 and after Roborock integration update through HACS it started crashing and reinstall doesn't help, also commented here https://github.com/humbertogontijo/homeassistant-roborock/issues/427#issuecomment-1696660166

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/roborock/__init__.py", line 126, in async_setup_entry
    map_client.add_listener(data_coordinator.update_device)
    ^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'RoborockMqttClient' object has no attribute 'add_listener'

artem-zinnatullin avatar Aug 31 '23 02:08 artem-zinnatullin

The official Roborock integration uses the same library. It could be some issue related to that. Is your HA core up to date?

humbertogontijo avatar Aug 31 '23 02:08 humbertogontijo

Is HA core a python library? If so I can definitely check it if you know where to look

My and topic starter (I assume) HA is an official docker image ghcr.io/home-assistant/home-assistant:2023.8.4

artem-zinnatullin avatar Sep 02 '23 19:09 artem-zinnatullin

@artem-zinnatullin Hi, yes... I am using latest version of HA Screenshot_20230902_211125_Home Assistant

here is my docker compose

version: '3' services: homeassistant: container_name: homeassistant image: "ghcr.io/home-assistant/home-assistant:stable" volumes: - /hassio:/config - /etc/localtime:/etc/localtime:ro - ./swag/keys/letsencrypt:/ssl - /run/dbus:/run/dbus:ro # <-- Bluetooth adapter restart: unless-stopped privileged: true network_mode: host #swag environment: - PUID=1000 #optional - PGID=1000 #optional - TZ=Europe/Prague #optional devices: - /dev/ttyUSB0:/dev/ttyUSB0 - /dev/ttyUSB1:/dev/ttyUSB1

ports:
  - 8123:8123  
  - 58866:58866
  - 58867:58867

pan-sattan avatar Sep 02 '23 19:09 pan-sattan