LYWSD03MMC with ATC Firmware transfer values to MQTT topics

372 views
Skip to first unread message

Bernd Lange

unread,
Mar 19, 2021, 3:49:46 PM3/19/21
to TasmotaUsers
Hi all,  I hope for tasmota experts it is just a simple question.
I am getting values from a Xiaomi thermometer modified with the atc firmware all devices were found and all the dev and values coming in in a json object also visible on my Mqtt broker but all together. I will  i.e extract one temperature from a certain sensor and send this value to a defined Mqtt topic :
example incoming 
tele/BLE_Gateway_1/SENSOR = {"Time":"2021-03-19T20:37:52","ATC358140":{"mac":"a4c138358140","Temperature":23.0,"Humidity":34.0,"DewPoint":6.3,"Battery":91,"RSSI":-78},"ATCfe4638":{"mac":"a4c138fe4638","Temperature":19.6,"Humidity":42.0,"DewPoint":6.3,"Battery":85,"RSSI":-59}}

should be sent to 
living_room/ climate/ temperature

I think i need a rule for that like
on tele/BLE_Gateway_1/SENSOR#ATCfe4638.Temperature do publish  living_room/ climate/ temperature   %value% endon"} 
but it is not working this leads to the following questions:
-Is tele/BLE_Gateway_1/SENSOR#ATCfe4638.Temperature  a correct trigger
-Am I accessing the json object correctly for the trigger
-Is the publish correctly with the %value%

Thanks in advance Bernd

Philip Knowles

unread,
Mar 19, 2021, 5:18:38 PM3/19/21
to Bernd Lange, TasmotaUsers

I’m not sure if the Tasmota device is sending this message, If it is the trigger would be

on tele-ATCfe4638#Temperature

Have a look at the trigger section of the Rules page

 

Regards

 

Phil K

 

Sent from Mail for Windows 10

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/e0260c86-1452-4e84-a7fa-f839fb465454n%40googlegroups.com.

 

Bernd Lange

unread,
Mar 19, 2021, 6:59:02 PM3/19/21
to TasmotaUsers
Thanks Phil, 
that did it for me, my  mistake, was to view the stuctures from MQTT side and not from the Tasmota side.

Regards Bernd
Reply all
Reply to author
Forward
0 new messages