grhosso
(Juan)
August 2, 2018, 5:22am
1
Hi there,
I have setup a AM2301 sensor, and I get the temperature properly in the AP of the sonoff, but I cannot get the info through MQTT.
Am I missing something?
Thanks.
ITEM
Number sonoff05temp "Temperature [%.1f °C]" {mqtt="<[mosquitto:tele/sonoff05/SENSOR:state:JSONPATH($.AM2301.Temperature)]"}
SITEMAP
Text item=sonoff05temp
hr3
(Harry)
August 2, 2018, 5:26am
2
Do you have any other working mqtt-configuration in oH?
grhosso
(Juan)
August 2, 2018, 5:43am
3
I have 20 sonoff basic, touch and dual working fine. But this is the first time I implement something with sensors.
grhosso
(Juan)
August 2, 2018, 5:45am
4
OK.
Now is working. The system has been restarted (I do not know how, because I did not command it) and now show the temperature.
Problem solved.
H102
(CM6.5 H102)
August 2, 2018, 12:52pm
5
Same issue with sonoff tasmota firmware at initial setup. I changed the JSONPATH description and no further issues. Here is on of my items, if you have future issues give it a try.
Number LivingRoom_Light_Temp "Living Room Temp [%.1f °F]" <temperature>
{ mqtt="<[pibroker:tele/sonoff11-3C0826/SENSOR:state:JSONPATH($.SI7021.Temperature)]" }
Number LivingRoom_Light_Humidity "Living Room Humidity [%.1f %%]" <humidity>
{ mqtt="<[pibroker:tele/sonoff11-3C0826/SENSOR:state:JSONPATH($.SI7021.Humidity)]" }