Hi,
I need some help on reading out/controlling my Voltoplus device. Everything can be done by GET and POST methods.
GET http://voltoplus.local/api/v1/values will return all values at once as JSON:
{
"json_values": [
{
"id": "U1",
"value": "0"
},
{
"id": "U2",
"value": "0"
},
{
"id": "U3",
"value": "0"
},
{
"id": "I1",
"value": "0"
},
{
"id": "I2",
"value": "0"
},
{
"id": "I3",
"value": "0"
},
{
"id": "P1",
"value": "0"
},
{
"id": "P2",
"value": "0"
},
{
"id": "P3",
"value": "0"
},
{
"id": "P",
"value": "0"
},
{
"id": "fwdEn",
"value": "62289"
},
{
"id": "rvsEn",
"value": "94225"
},
{
"id": "AO1",
"value": "43"
},
{
"id": "AO2",
"value": "56"
},
{
"id": "my-PV1",
"value": "0"
},
{
"id": "abl1",
"value": "0"
},
{
"id": "DO1",
"value": "0"
},
{
"id": "DO2",
"value": "0"
},
{
"id": "LEDS",
"value": "0"
},
{
"id": "LEDP",
"value": "0"
},
{
"id": "date_time",
"value": {
"year": 2024,
"month": 8,
"day": 16,
"hour": 13,
"minute": 10,
"second": 14
}
}
]
}
I tried different configuration like the following, but without success:
sensor:
- platform: rest
name: voltoplus_analog_out_1
method: GET
unit_of_measurement: "%"
resource: http://voltoplus.local/api/v1/values
value_template: "{{ value_json.json_values.id[AO1] }}"
scan_interval: 30
And second:
what would be an easy solution to send POST’s like this:
{"json_config":[{"id":"210","value":"1"},{"id":"211","value":"50"},{"id":"212","value":"18:45"}]}
210: Activate manual mode
211: Set output to 50%
212: Go back to automatic mode at 18:45
thanks a lot in advance!