Logger: homeassistant.util.logging
Source: util/logging.py:108
First occurred: November 16, 2020, 9:57:17 PM (14235 occurrences)
Last logged: 9:11:22 AM
Exception in state_message_received when handling msg on ‘tele/smartmeter/SENSOR’: ‘{“Time”:“2020-11-17T03:09:17”,“ENERGY”:{“TotalStartTime”:“2020-10-28T07:10:33”,“Total”:0.043,“Yesterday”:0.002,“Today”:0.001,“Period”:0,“Power”:230,“ApparentPower”:300,“ReactivePower”:192,“Factor”:0.77,“Frequency”:50,“Voltage”:232,“Current”:1.290}}’ Traceback (most recent call last): File “/usr/local/lib/python3.8/site-packages/hatasmota/sensor.py”, line 222, in state_message_received state = get_value_by_path(msg.payload, self._cfg.value_path) File “/usr/local/lib/python3.8/site-packages/hatasmota/utils.py”, line 168, in get_value_by_path return get_by_path(status, path) File “/usr/local/lib/python3.8/site-packages/hatasmota/utils.py”, line 37, in get_by_path return reduce(operator.getitem, items, root) TypeError: ‘float’ object is not subscriptable
Exception in state_message_received when handling msg on ‘stat/smartmeter/STATUS8’: ‘{“StatusSNS”:{“Time”:“2020-11-17T03:10:12”,“ENERGY”:{“TotalStartTime”:“2020-10-28T07:10:33”,“Total”:0.043,“Yesterday”:0.002,“Today”:0.001,“Power”:236,“ApparentPower”:308,“ReactivePower”:198,“Factor”:0.77,“Frequency”:50,“Voltage”:232,“Current”:1.326}}}’ Traceback (most recent call last): File “/usr/local/lib/python3.8/site-packages/hatasmota/sensor.py”, line 225, in state_message_received state = get_value_by_path(msg.payload, value_path) File “/usr/local/lib/python3.8/site-packages/hatasmota/utils.py”, line 168, in get_value_by_path return get_by_path(status, path) File “/usr/local/lib/python3.8/site-packages/hatasmota/utils.py”, line 37, in get_by_path return reduce(operator.getitem, items, root) TypeError: ‘int’ object is not subscriptable
I’ve the same behaviour with my pzem-016 tasmotized.
(even if console is just a bit different, log is the same, and it leads my home-assistant.log to grow VERY fast)
I think I solved this way:
in Settings - Devices, I’ve found my “PowerMonitor” and disabled all entities but just a few (energy_today, energy_total, energy_totalstarttime, energy_yesterday)
(Even if I suppose I could disable ALL entities…)
Now errors are gone, so log file doesn’t grow anymore