forked from evcc-io/evcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add xml transformation to HTTP provider with Kostal Piko MP Plus exam…
…ple (evcc-io#2120) - Added automatic transformation of XML responses into JSON, so the data can be used with jq - Add Kostal Piko MP Plus template that uses the above addition
- Loading branch information
1 parent
c8204b3
commit 219a0d7
Showing
5 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
template: kostal-piko-mp-plus | ||
description: Kostal Piko MP Plus | ||
guidedsetup: | ||
enable: true | ||
params: | ||
- name: usage | ||
choice: [ "pv" ] | ||
- name: host | ||
example: 192.0.2.2 | ||
required: true | ||
render: | | ||
type: custom | ||
power: | ||
{{- if eq .usage "pv" }} | ||
# PV | ||
source: http | ||
uri: http://{{ .host }}/measurements.xml | ||
jq: .root.Device.Measurements.Measurement[] | select(.attrType == "AC_Power") | .attrValue | tonumber | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: template | ||
template: kostal-piko-mp-plus | ||
description: Kostal Piko MP Plus | ||
usage: pv | ||
host: 192.0.2.2 |