-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error after HA start #6
Comments
Have you used this integration before or is it a first setup? |
Thank you for the swift response. I have manually added it in HA few months ago and re-installed it today via HACS. Files in relevant folder (camera.py etc) are the newest ones |
Ok, so it was working before? |
No. But I think I had problems with SSH to the vacuum. But I don't remember errors in logs. Any idea. Please note that I have HA os in case this changes anything |
Well, to be honest I don't think this custom component is a good way to get a map from your vacuum... I can't believe it's not Valetudo is probably a better choice |
The problem is the calibration. In this model map is regenerated every time vacuum starts and the rotation of the map is not the same. |
Ok, have you provided a correct vacuum entity id? |
I tried both valetudo and xiaomi miio intities with the same result |
Ok, I will have to try setting up this integration again. I haven't used it for ages |
Thank you for the support |
I have the below error after HA start and although a camera entity is created, there are no data even after the first start.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 613, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 748, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 505, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 541, in _async_write_ha_state
extra_state_attributes = self.extra_state_attributes
File "/config/custom_components/xiaomi_vacuum_map/camera.py", line 76, in extra_state_attributes
"vacuum_status": self.hass.states.get(self._vacuum_entity).state
AttributeError: 'NoneType' object has no attribute 'state'
I just want to use your great HA card with a valetudo installed roborock v1. Thank you.
The text was updated successfully, but these errors were encountered: