I flashed Tasmota to a sonoff. It is publishing temp and humidity data via mqtt:
tele/D1mini01/SENSOR = {“Time”:“2019-03-01T03:17:07”,“DHT11”:{“Temperature”:78.1,“Humidity”:20.0},“TempUnit”:“F”}
I have mosquitto workiing:
1551406139: New client connected from 192.168.1.26 as DVES_0460ED (c1, k10, u’mosquitto’)
Here is from my config.yaml
sensor:
name: Temperature
platform: mqtt
state_topic: tele/D1mini01/SENSOR
unit_of_measurement: °F
value_template: "{{ value_json.temperature }}"
- name: Humidity
platform: mqtt
state_topic: tele/D1mini01/SENSOR
unit_of_measurement: “%”
value_template: “{{ value_json.humidity }}”
When I check these entities (temp,humid), no state is listed in HA and the numerical values do not appear in Lovelace.
I am stumped after many hours. Thanks. Chuck