stefanbode / Sonoff-Tasmota

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE, enhanced with I2C options
GNU General Public License v3.0
127 stars 41 forks source link

MQTT JSON string format issue for .../tele/RESULT #115

Closed Markusenz closed 5 years ago

Markusenz commented 5 years ago

Version : 6.3.0.16 stb-1.4(sonoff)

having problems converting the mqtt message from topic .../tele/RESULT into a JSON object, I suggest to correct the formatting. currently, the output is {"SHUTTER-1":{"POSITION":97, direction:0}} but should read {"SHUTTER-1":{"POSITION":97, "direction":0}}

bjeram commented 5 years ago

Agree. I introduced this change (for the rules) #111 , but I will modify as you suggested and see if the rules are still working, and suggest pull request. BTW: when did you build the code? It should be recently.