-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
FYTA Error: Task exception was never retrieved - PLANT_STATUS[value], #114804
Comments
Hey there @dontinelli, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) fyta documentation |
Hi @gerdschadler |
Hello @dontinelli Nevertheless, the "Plant State" does not seem to be correct. This is probably because the "status" is reported as "1", although the plant is shown as "Doing Great" in the app, this value is also reported by the API: "isDoingGreat": true. Unfortunately I don't know what the "status" means, it would be cool if there was a sensor with "Doing Great" or "Need Help" or "Silent Plant"
--- or |
The problem
I get the following Error Message:
Logger: homeassistant
Source: components/fyta/sensor.py:56
First occurred: April 3, 2024 at 22:36:03 (571 occurrences)
Last logged: 08:03:45
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1504, in _async_process_registry_update_or_remove
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 998, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1119, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1056, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1004, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 548, in state
value = self.native_value
^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/fyta/sensor.py", line 144, in native_value
return self.entity_description.value_fn(val)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/fyta/sensor.py", line 56, in
value_fn=lambda value: PLANT_STATUS[value],
~~~~~~~~~~~~^^^^^^^
KeyError: 0
What version of Home Assistant Core has the issue?
core-2024.4.0
What was the last working version of Home Assistant Core?
core-2024.4.0
What type of installation are you running?
Home Assistant Container
Integration causing the issue
FYTA
Link to integration documentation on our website
https://www.home-assistant.io/integrations/fyta
Diagnostics information
2024-04-03 22:36:03.202 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity sensor.ornela_temperature_state for domain sensor with platform fyta
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 881, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1334, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 998, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1119, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1056, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1004, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 548, in state
value = self.native_value
^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/fyta/sensor.py", line 144, in native_value
return self.entity_description.value_fn(val)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/fyta/sensor.py", line 56, in
value_fn=lambda value: PLANT_STATUS[value],
~~~~~~~~~~~~^^^^^^^
KeyError: 0
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: