Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95358

Solar data (apsystems) to homeassistant

$
0
0

@killabee.nl wrote:

Hello,

I am trying to get my solar generated data from apsystems ema to homeassistant. Now i am doing this with a script that does a curl on the apsystems api and sends the data to pvoutput. In homeassistant I have the pvoutput configured and reads the data from there. But that are a couple of steps and I want to make this proces shorter.

When I do a cURL command in the commandline:

curl -H “Content-Type: application/x-www-form-urlencoded” http://api.apsystemsema.com:8073/apsema/v1/ecu/getPowerInfo -d ecuId=XXXXXXXXXXX -d filter=power -d date=20200406

Then I get the following JSON output:

{"data":{"time":"[\"05:36:25\",\"05:41:25\",\"05:46:25\",\"05:51:25\",\"05:56:25\",\"06:01:25\",\"06:06:25\",\"06:11:25\",\"06:16:25\",\"06:21:25\",\"06:26:25\",\"06:31:25\",\"06:36:25\",\"06:41:25\",\"06:46:25\",\"06:51:25\",\"06:56:25\",\"07:01:25\",\"07:06:25\",\"07:11:25\",\"07:16:25\",\"07:21:25\",\"07:26:25\",\"07:31:25\",\"07:36:25\",\"07:41:25\",\"07:46:25\",\"07:51:25\",\"07:56:25\",\"08:01:25\",\"08:06:25\",\"08:11:25\",\"08:16:25\",\"08:21:25\",\"08:26:25\",\"08:31:25\",\"08:36:25\",\"08:41:25\",\"08:46:25\",\"08:51:25\",\"08:56:25\",\"09:01:25\",\"09:06:25\",\"09:11:25\",\"09:16:25\",\"09:21:25\",\"09:26:25\",\"09:31:25\",\"09:36:25\",\"09:41:25\",\"09:46:25\",\"09:51:25\",\"09:56:25\",\"10:01:25\",\"10:06:25\",\"10:11:25\",\"10:16:25\",\"10:21:25\",\"10:26:25\",\"10:31:25\",\"10:36:25\",\"10:41:25\",\"10:46:25\",\"10:51:25\"]","power":"[\"6\",\"7\",\"14\",\"14\",\"15\",\"24\",\"31\",\"39\",\"46\",\"56\",\"70\",\"75\",\"83\",\"102\",\"115\",\"138\",\"395\",\"694\",\"789\",\"846\",\"892\",\"932\",\"968\",\"1012\",\"1044\",\"1078\",\"1111\",\"1137\",\"1169\",\"1195\",\"1217\",\"1235\",\"1253\",\"1279\",\"1298\",\"1317\",\"1328\",\"1210\",\"1335\",\"1371\",\"1382\",\"1393\",\"1400\",\"1407\",\"1416\",\"1429\",\"1452\",\"1470\",\"1493\",\"1519\",\"1538\",\"1561\",\"1593\",\"1617\",\"1648\",\"1674\",\"1706\",\"1732\",\"1763\",\"1788\",\"1817\",\"1849\",\"1872\",\"1893\"]"},"code":"1"}

Is it possible to use cURL or the restful sensor within Homeassistant in import these JSON data?

Maybe someone can push me in the right direction to fix this.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95358

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>