Hi,
I flashed Tasmota on Nodemcu. Attached a 4 channel relay and a DHT11 sensor. It shows up fine on the browser. I can see the sensor outputs and can control the relays. However, from HA, I can only control the relays but don’t see the output of the sensors.
Below is my entry in the configuration.yaml file. I took it from the Tasmota wiki https://github.com/arendst/Sonoff-Tasmota/wiki/Home-Assistant-%E2%80%90-Manual-Config
My bad. I had directly pasted it from the tasmota wiki. My actual configurations are
value_template: “{{ value_json[‘DHT11’].Temperature }}”
and
value_template: “{{ value_json[‘DHT11’].Humidity }}”
Still not working.
So, I got it resolved. Though I can’t explain why. There was a line in the config.yaml file which was throwing a warning (completely unrelated). Removing that solved the issue.
Thus, the config in the documentation should be working right.
- platform: mqtt
name: "Bedroom Temperature"
state_topic: "tele/testlamps/SENSOR"
# Change testlamps with MQTT topic given in Tasmota Configuration/Configure MQTT WUI
value_template: "{{ value_json['DHT11'].Temperature }}"
# Change DHT11 with your actual sensor name like DHT22, AM2301 etc.
unit_of_measurement: "°C" # "F" if using Fahrenheit
availability_topic: "tele/testlamps/LWT"
# Change testlamps with MQTT topic given in Tasmota Configuration/Configure MQTT WUI
payload_available: "Online"
payload_not_available: "Offline"
device_class: temperature