I’m reading temperature from a sensor connected to nodeMCU with tasmota
This is the line I use
value_template: “{{ value_json[‘DHT11’].Temperature }}”
I get “22.1”
But, when I try to use the sensor for a thermostat I get this error?
Unable to update from sensor: could not convert string to float: ‘“22.1”’
components/generic_thermostat/climate.py
I guess the problem are the " " but I don’t know how to fix it
“Does not work” - does not help us identify your problem. You need to post your code and the relevant entry/error in the HA logs for anyone to be able to determine what your problem is.
Hint - try developing your templates in the template editor before committing them to your code.