Hi friends. I have a problem. I am trying to show the value of a sensor in a widget of the android app. This sensor in home assistant shows well but not in widget. I don’t know how to solve it. If someone can advise me it would be very helpful. Sorry for the English translation. Thank you
what does the actual state for your entity look like? Not what shows up in the frontend but in developer tools > states
It looks bad too. I hadn’t looked there.
The sensor is configured like this. How can I correct it? Thank you
sensor:
- platform: mqtt
name: "temperature"
state_topic: "tele/enchufe_termometro_sumergible_4D70/SENSOR"
value_template: "{{ value_json['DS18B20'].Temperature | float + 1.2 | round(1)}}"
unit_of_measurement: "°C"
Maybe try?
"{{ (value_json['DS18B20'].Temperature | float + 1.2) | round(1)}}"
"{{ (value_json['DS18B20'].Temperature | float + 1.2) | round(1)}}"
Solved friend.
Thanks you
1 Like