I am new to home assistant after doing basic integration I would like to go further
and I started on a communication project between an arduino uno and Home Assistant which is on a Raspberry pi 4
I manage to communicate between the two perfectly but now I would like to know how to analyze my data and put some conditions.
Here is my script
mqtt:
sensor:
- name: “TankHeight”
state_topic: “my/topic”
unit_of_measurement: “m³”
icon: mdi:water
value_template: “{{ value_json.mytopic }}”
My problem has the line value_template I can’t get my value it tells me unknown
the error comes from this line because when I remove it I recover my value.
As for the issue with the value_template line, it’s hard to say without more information. One thing you could try is to double-check that the value_json.mytopic path is correct and matches the JSON structure of your data. If you’re interested in diving deeper into data analysis, Power BI is a powerful tool that can help you visualize and analyze your data in new ways. It might be worth checking out some Power BI data analyst courses or tutorials to see if it’s something that could be useful for your projects. Hope that helps, and good luck with your project!