I want to create a sensor that reads data from a json file. The file data is shown below. I have tried several different ways of doing it, but the sensor is either not created or shows as unavailable in developer tools>states.
{“storeDevicePower”:{“pvPower”:700.00,“gridPower”:400.00,“inputOutputPower”:0.00,“batteryPower”:0.00,“totalLoadPower”:300.00,“backupLoadPower”:0.00,“solarPower”:4.50,“batCurr”:0.00,“batEnergyPercent”:94.00,“runningState”:1,“isOnline”:1,“isAlarm”:0,“mark”:1,“batCapcity”:300.00,“pvConsumpPower”:300.00,“pvGridPower”:400.00,“pvChargePower”:0.00,“gridConsumpPower”:0.00,“gridChargePower”:0.00,“batConsumpPower”:0.00,“batGridPower”:0.00,“pvDirection”:1,“pvConsumpDirection”:1,“pvGridDirection”:1,“pvChargeDirection”:0,“gridDirection”:1,“gridConsumpDirection”:0,“batteryDirection”:0,“batConsumpDirection”:0,“batGridDirection”:0,“outPutDirection”:1,“dataTime”:1729416480000,“updateDate”:1729405673000},“type”:2,“status”:“success”}
For background, this is what I am trying to do (How to import real time solar battery data without API - #5 by Ibg75). No-one responded to this post, but I have now narrowed it down to the above problem. Thanks!