MQTT and json problem
Domotique
eric.berdah.domotique at gmail.com
Sun Feb 5 12:26:09 EST 2023
Hello,
I am trying to get my tasmota modules working with MQTT client.
I encounter 2 problems:
the first is to be able to send an order (I receive them well) but I have the following error message when I try to order a unit.
power: Enumerated Payload type selected, but no Unit Enumerations are configured. Cannot send payload.
the stat/ topic is for receive the state of my switch
the cmnd/ topic is to send the command of my switch
the second problem : i don’t know how to parse a double level json record like this:
{"Time":"2023-02-05T18:20:10","Uptime":"0T01:46:12","UptimeSec":6372,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"FamilyBusinessWifi","BSSId":"D8:47:32:62:0B:66","Channel":2,"Mode":"11n","RSSI":100,"Signal":-49,"LinkCount":1,"Downtime":"0T00:00:07 »}}
i can parse the first part , but not the second "Wifi":{"AP":1,"SSId": "FamilyBusinessWifi ",,,,,}
if somebody can help me ?
thanks
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20230205/8b91919e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d?e?cran 2023-02-05 a? 18.17.40.png
Type: image/png
Size: 100913 bytes
Desc: not available
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20230205/8b91919e/attachment.png>
More information about the XTensionList
mailing list