Hello All
Spent some time looking at this one, see several other threads that I have tried and also seemed to match DrZees had for a similar issue in one of his videos.
And this github thread, https://github.com/arendst/Sonoff-Tasmota/issues/1862
I have flashed the Sonoff with Tasmota (5.12.0) The temp and humidity show on the main page of the web browser and show in the console
I have added the following to my configuration.yaml file (and every variation I can think of) and it dose not show up.
Here is my configuration.yaml file entry.
Here’s a direct copy and paste, I setup a Wemos with a BME280 and DHT22(AM3201) yesterday on a breadboard for comparison. This is from my sensor: block
Got to be something else, I tried this like a few suggested and nothing.
platform: mqtt
name: “Out Side Temp”
state_topic: “tele/SoOTH/SENSOR”
value_template: “{{ value_json[‘AM2301’].Temperature }}”
unit_of_measurement: ‘°F’
It loads with no errors.
Humm
Could it be the MQTT password ? (I did try and reset it, didnt make a diff) Any one know of a addin or tool to look at the subscribe packets? I dont see any errors in the web console.
018-06-04 17:45:44 WARNING (MainThread) [homeassistant.setup] Setup of config is taking over 10 seconds. 2018-06-04 17:46:02 WARNING (SyncWorker_19) [netdisco.ssdp] Found malformed XML at http://192.168.1.16:9080: status=ok
One other thing… go to your Sonoff/Tasmota GUI on the device itself, click console and type in “status 0” and post the info it dumps out. Feel free to mask anything you that you feel is necessary. I want to make sure the config is setup correctly on the device.
Ok I copied the suggestion from Cee and modified it to match my topic and name
and saved it. I then watched it and it it appeared to have not made a difference.
I then searched on my phone for a MQTT app and found one called “MQTT Snoop” and installed it, i was able to put in my MQTT broker, user and password. I then could see all my traffic (Pretty cool) AND i could see the new device and info.
I then then went off to do something and when i checked back (@ 15 min) it had updated in HA… YES!!!
I think the issue (after i have fix my config file) was the broadcast delay, was it is set to update every 300 sec, so when I made the change I didn’t wait long enough.
Thanks for the help and suggestions…
Have an awesome day…
Mike…
Awesome! You can update this with the teleperiod command on the console. Think you can go down to 10 seconds but really isn’t needed unless you have some crazy temp changes.
My second one which I copied exactly from here gives an Unknown. I even waited 45 min and reboot just in case it needed that time. But it stays as unknown.
And adjust to you need’s. The code you pasted seems to have different quotes on it, “°F” These have caused me problems in the past, when I changed it to the "" ones it seemed to be fine.
The reason the first one is giving you the full topic, is because you haven’t a template to define what you want from the topic.
I’ve tried everything can seem to get this th10 sensor to pull the info into HA. I’ve copied your code from above and changed the topic only. But still no luck.
Ill do that tonight when i get home, I went as far to change my topic to the same as yours so i could just copy and past your code, yet no luck, but i will place my here later
Hi Cee, Yes that was n typo.
Here is the post from the devices console.
06:00:58 MQT: stat/office/STATUS10 = {“StatusSNS”:{“Time”:“2018-09-06T06:00:58”,“AM2301”:{“Temperature”:18.2,“Humidity”:41.2},“TempUnit”:“C”}}