Most én is bele ütköztem egy kis bajba! Erre van valami ötlet esetleg?
2021-11-03 23:51:42 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform fkf_garbage_collection
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 607, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 715, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 486, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _async_write_ha_state
if (icon := (entry and entry.icon) or self.icon) is not None:
File "/config/custom_components/fkf_garbage_collection/sensor.py", line 371, in icon
if self._fkfdata[0]['garbage'] == "communal":
IndexError: list index out of range
2021-11-03 23:51:42 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up fkf_garbage_collection platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 257, in _async_setup_platform
await asyncio.gather(*pending)
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 607, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 715, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 486, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _async_write_ha_state
if (icon := (entry and entry.icon) or self.icon) is not None:
File "/config/custom_components/fkf_garbage_collection/sensor.py", line 371, in icon
if self._fkfdata[0]['garbage'] == "communal":
IndexError: list index out of range
2021-11-03 23:51:42 ERROR (MainThread) [homeassistant.components.calendar] fkf_garbage_collection: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 651, in async_device_update
await task
File "/config/custom_components/fkf_garbage_collection/calendar.py", line 45, in async_update
await self.hass.data[DOMAIN][CALENDAR_PLATFORM].async_update()
File "/config/custom_components/fkf_garbage_collection/calendar.py", line 160, in async_update
attributes = self._hass.states.get(entity).attributes
AttributeError: 'NoneType' object has no attribute 'attributes'
Gratulálok a projekthez!
Kezdő vagyok, de a leírások alapján sikerült beállítanom. A fkf-garbage-collection-card is működik Home assistantban.
Ezt szeretném megjeleníteni az appdaemonban is, de sehogy sem jutok dűlőre vele. Tudnál segíteni miket kellene beállítanom?
Előre is köszönöm!
PoPe
sajnos nem használom és nem ismerem az appdaemont, úgy hogy nem tudok ebben segíteni. Az csak egy plussz hibaforrás, én meg csak próbálom minél kevesebb dependeciával futtatni a rendszerem, így az automatizációkat alap yaml-ban tartom HAn belül.
Üdv.
Szia!
Gratula a projekthez!
A zöld hulladék elszállítás valamilyen hiba folytán nem jelenik meg, hiába konfigoltam, vagy nem is fog március 1 előtt, hiába látom a többit előrébb már?
Köszi!