Dear all, i have the problem that i get always this error if i try to parse a Template for my Sensor:
"unexpected Float while scanning object end expected "," or "}"."
TEMPLATE:
{ "prtg": { "result": [ { "channel": "WiFi RSSI", "CustomUnit": "dB", "Mode": "Absolute", "Value": $.wifi_sta.rssi }, { "channel": "Aktueller Stromverbrauch Relay 0", "CustomUnit": "Watt", "Mode": "Absolute", "Value": $.meters.0.power }, { "channel": "Aktueller Stromverbrauch Relay 1", "CustomUnit": "Watt", "Mode": "Absolute", "Value": $.meters.1.power }, { "channel": "Shelly Temperatur", "CustomUnit": "°C", "Mode": "Absolute", "Value": $.tmp.tC } ] } }
INPUT DATA:
{ "wifi_sta": { "connected": true, "ssid": "Fritzbox", "ip": "192.168.1.x", "rssi": -80 }, "cloud": { "enabled": true, "connected": true }, "mqtt": { "connected": false }, "time": "12:51", "unixtime": 1610365873, "serial": 20100, "has_update": false, "mac": "C82B9610F7CA", "cfg_changed_cnt": 2, "actions_stats": { "skipped": 0 }, "rollers": [ { "state": "stop", "source": "input", "power": 0.0, "is_valid": true, "safety_switch": false, "overtemperature": false, "stop_reason": "normal", "last_direction": "open", "current_pos": 101, "calibrating": false, "positioning": true } ], "meters": [ { "power": 0.0, "overpower": 0.0, "is_valid": true, "timestamp": 1610369473, "counters": [ 0.0, 0.0, 0.0 ], "total": 1023 }, { "power": 0.0, "overpower": 0.0, "is_valid": true, "timestamp": 1610369473, "counters": [ 0.0, 0.0, 0.0 ], "total": 891 } ], "inputs": [ { "input": 0, "event": "", "event_cnt": 0 }, { "input": 1, "event": "", "event_cnt": 0 } ], "temperature": 21.99, "overtemperature": false, "tmp": { "tC": 21.99, "tF": 71.58, "is_valid": true }, "temperature_status": "Normal", "update": { "status": "idle", "has_update": false, "new_version": "20201228-092242/v1.9.3@ad2bb4e3", "old_version": "20201228-092242/v1.9.3@ad2bb4e3" }, "ram_total": 49360, "ram_free": 34088, "fs_size": 233681, "fs_free": 121986, "voltage": 231.74, "uptime": 1194720 }
Can somebody give me some Hint, what iam doing wrong?
Thank you very much!
Add comment