I have data in JSON (I can change format if need be to anything) that I want to parse with OpenHAB to show it and make some rules.
But I simply can’t get the data in OpenHAB, after many hours of google and forum searches.
What am I doing wrong?
I’ve attached my config and the JSON data.
/etc/openhab2/items/default.items
Switch Presence_Mobile_OnePlus “Boeghs mobil” { channel=“network:pingdevice:172_16_10_45:online” }
//String Voltage “Current Voltage” { http=“<http://172.16.10.200/volt.json:3000:JS(getValue.js)]” }
Text Battery_Voltage_Last { http=“<[volt:1000:JSONPATH($.Voltage)]” }
DateTime VoltageUpdate
Text Battery_Time_Last { http=“<[volt:1000:JSONPATH($.Time)]” }
DateTime TimeUpdated
Text Battery_Date_Last { http=“<[volt:1000:JSONPATH($.Date)]” }
DateTime DateUpdated
I am not an expert for the http binding, but I think you may have more luck to get a response if you add missing info: what OH version, what system, what bindings did you install, do you see any errors?, your thing definition (OH2 only), etc
Start here: