core: Tasmota integration doesn't read a sensor
The problem
I have an hardware with tasmota firmware 9.4 Going to the tasmota hardware with ip I can read all sensors on web interface But on HA (tasmota integration) some of those sensore are reporting value: unknown
What is version of Home Assistant Core has the issue?
core-2021.5.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Tasmota
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tasmota
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Exception in state_message_received when handling msg on 'tele/Wemos/SENSOR': '{"Time":"2021-05-08T14:05:10","ENERGY":{"TotalStartTime":"2021-05-02T01:42:29","Total":34.310,"Yesterday":5.372,"Today":0.468,"Period":1,"Power":353,"ApparentPower":477,"ReactivePower":320,"Factor":0.74,"Frequency":50,"Voltage":242,"Current":1.971}}' Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/hatasmota/sensor.py", line 260, 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 167, in get_value_by_path return get_by_path(status, path) File "/usr/local/lib/python3.8/site-packages/hatasmota/utils.py", line 36, in get_by_path return reduce(operator.getitem, items, root) TypeError: 'float' object is not subscriptable
Additional information
I have this issue on Debian 10 I have another installation on Ubuntu 18.04 and the sensors are ok
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 28 (14 by maintainers)
ok thank you guys yes close
Updated and working fine now Thank You
This is the debug log after reboot home-assistant.log