Hello,
I have a Problem, i publish a value like “10.0” without JSON encoding, to the topic “solar/dtu/stats/powerTotal”.
This works fine, i can read the value with the MQTT Explorer.
But i have problems with my hassio template:
mqtt:
discovery: true
sensor:
- name: "Solarproduktion"
state_topic: "solar/dtu/stats/totalPower"
value_template: "{{ value }}"
device_class: power
state_class: measurement
unit_of_measurement: "W"
yes the topic is correct, i coded a custom topic into DTU.
is my code wrong? or how can i read the value to my sensor?
thank you