Closed McGiverGim closed 3 years ago
It seems some of the sensors has change the value from 58 to 52, so this issue seems to not affect the correct work of the sensor.
I have also run into the same issue. Using the HACS for install.
The bug continues happening:
Logger: homeassistant.components.recorder
Source: components/recorder/__init__.py:397
Integration: Recorder (documentation, issues)
First occurred: 13 de diciembre de 2020 23:33:21 (1 occurrences)
Last logged: 13 de diciembre de 2020 23:33:21
Event is not JSON serializable: <Event platform_discovered[L]: service=load_platform.sensor, platform=iaquk, discovered=name=comedor, sensors=dict_keys(['iaq_index', 'iaq_level'])>
Logger: homeassistant.components.recorder Source: components/recorder/init.py:397 Integration: Recorder (documentation, issues) First occurred: 10:20:04 (4 occurrences) Last logged: 10:20:04
Event is not JSON serializable: <Event platform_discovered[L]: service=load_platform.sensor, platform=iaquk, discovered=name=slaapkamer, sensors=dict_keys(['iaq_index', 'iaq_level'])> Event is not JSON serializable: <Event platform_discovered[L]: service=load_platform.sensor, platform=iaquk, discovered=name=kantoor, sensors=dict_keys(['iaq_index', 'iaq_level'])> Event is not JSON serializable: <Event platform_discovered[L]: service=load_platform.sensor, platform=iaquk, discovered=name=daniel, sensors=dict_keys(['iaq_index', 'iaq_level'])> Event is not JSON serializable: <Event platform_discovered[L]: service=load_platform.sensor, platform=iaquk, discovered=name=jonathan, sensors=dict_keys(['iaq_index', 'iaq_level'])>
If you configure them explicitly the warning dissapears:
sensors:
- iaq_index
- iaq_level
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Version of the custom_component Not sure, HACS show it as: a2e39a4
Configuration
Describe the bug
In the logs I see the
Event is not a JSON serializable
message. Logs attached later. It seems too that the values of the sensor do not change. It shows always a value of 58.To Reproduce
Nothing to do. It simply appears with the configuration attached.
Expected behavior
No error messages in the log, and the value of the sensor changing.
Screenshots
None.
Debug log
Additional context
Using latest version of Home Assistant (110.4). I'm not too sure if this must work only with temperature and humidity sensors.