NEWS
Tasmota Status per HTTP get
-
Hallo,
wenn ich im Browser zb: http://192.168.178.142/cm?cmnd=status 10 eingebe kommt:
{"StatusSNS":{"Time":"2023-09-16T15:15:57","ENERGY":{"TotalStartTime":"2023-08-05T18:04:21","Total":25.429,"Yesterday":0.000,"Today":0.037,"Power":89,"ApparentPower":89,"ReactivePower":0,"Factor":1.00,"Voltage":249,"Current":0.358}}}
ich schaffe es aber nicht in Red Node abzurufen.
[ { "id": "9a43fef011b0ad4f", "type": "tab", "label": "Flow 1", "disabled": false, "info": "", "env": [] }, { "id": "fc04f069131f9d7c", "type": "inject", "z": "9a43fef011b0ad4f", "name": "", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"cmnd\":\"status%2010\"}", "payloadType": "json", "x": 220, "y": 240, "wires": [ [ "2d7ed60db535f6cc" ] ] }, { "id": "2d7ed60db535f6cc", "type": "http request", "z": "9a43fef011b0ad4f", "name": "TasmotaSteckdose", "method": "GET", "ret": "txt", "paytoqs": "query", "url": "http://192.168.178.142/cm?", "tls": "", "persist": false, "proxy": "", "insecureHTTPParser": false, "authType": "", "senderr": false, "headers": [], "x": 470, "y": 240, "wires": [ [ "369334a92691a70f" ] ] }, { "id": "369334a92691a70f", "type": "debug", "z": "9a43fef011b0ad4f", "name": "debug 87", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 680, "y": 240, "wires": [] } ]
Wenn ich es so mache kommt die Antwort für http://192.168.178.142/cm?cmnd=status als würde er das %2010 nicht mit anhängen, wo könnte der Fehler sein?
-
Fehler erkannt... {"cmnd":"status 10"} muss es sein... also so:
[ { "id": "9a43fef011b0ad4f", "type": "tab", "label": "Flow 1", "disabled": false, "info": "", "env": [] }, { "id": "fc04f069131f9d7c", "type": "inject", "z": "9a43fef011b0ad4f", "name": "", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"cmnd\":\"status 10\"}", "payloadType": "json", "x": 210, "y": 240, "wires": [ [ "2d7ed60db535f6cc" ] ] }, { "id": "2d7ed60db535f6cc", "type": "http request", "z": "9a43fef011b0ad4f", "name": "TasmotaSteckdose", "method": "GET", "ret": "txt", "paytoqs": "query", "url": "http://192.168.178.142/cm?", "tls": "", "persist": false, "proxy": "", "insecureHTTPParser": false, "authType": "", "senderr": false, "headers": [], "x": 470, "y": 240, "wires": [ [ "369334a92691a70f" ] ] }, { "id": "369334a92691a70f", "type": "debug", "z": "9a43fef011b0ad4f", "name": "debug 87", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 680, "y": 240, "wires": [] } ]