arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.04k stars 4.78k forks source link

wemos d1 mini pro bme680 mqtt output #4362

Closed lucafolin closed 5 years ago

lucafolin commented 5 years ago

Hi I have wemos d1 mini pro and bme680 sensor and It's working fine. I need to change mqtt output message now I have something like:

22:03:21 MQT: tele/sonoff/SENSOR = {"Time":"2018-11-15T22:03:21","BME680":{"Temperature":23.2,"Humidity":53.7,"Pressure":1018.1,"Gas":39.10},"TempUnit":"C"}

but I need something like:

22:03:21 MQT: tele/sonoff/SENSOR = {23.2,53.7,1018.1,39.10}

only output values separated by coma. How can I acive it ? how can I change xsns_09_bmp.ino file so to have this output ?

ascillato commented 5 years ago

Sorry, not supported. Tasmota uses JSON format.

If you want, try to modify the routine:

https://github.com/arendst/Sonoff-Tasmota/blob/3363f0238d4260af75e2c57c134ca866777d9d29/sonoff/xsns_09_bmp.ino#L492

But remember that your change is not supported. So you will need to use your own code and you will lose the Tasmota upgrades and fixes.

It is recommended to use standard JSON as all the automation software uses.

ascillato2 commented 5 years ago

Closing this issue as it has been answered.

Support Information

See Wiki for more information. See Chat for more user experience.