[SOLVED] SENSOR AM2301 does not send temperature

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

Do you have any other working mqtt-configuration in oH?

I have 20 sonoff basic, touch and dual working fine. But this is the first time I implement something with sensors.

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.

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)]" }