Skip to content

Commit

Permalink
Kostal: add Pico hybrid (evcc-io#8609)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Jun 25, 2023
1 parent f341ffa commit 6f90409
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
template: kostal-piko
template: kostal-piko-hybrid
covers: ["kostal-piko"]
products:
- brand: Kostal
description:
generic: Piko, Piko BA
generic: Piko Hybrid
params:
- name: usage
choice: ["grid", "pv", "battery"]
Expand Down
26 changes: 26 additions & 0 deletions templates/definition/meter/kostal-piko-pv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
template: kostal-piko-pv
products:
- brand: Kostal
description:
generic: Piko, Piko BA
params:
- name: usage
choice: ["grid", "pv"]
- name: host
render: |
type: custom
power:
{{- if eq .usage "grid" }}
# Grid
source: http
uri: http://{{ .host }}/api/dxs.json?dxsEntries=83886336&dxsEntries=83886848&dxsEntries=83886592&dxsEntries=67109120 # Home PV Power + Home Grid Power + Home Bat Power - PV/Bat Inverter Power
# | ----------------------------- Home PV W -------- | + | --------------------------- Home Grid W -------- | + | --------------------------- Home Bat W --------- | - | --------------------------- PV/BAT Inv W ------- |
jq: (.dxsEntries[] | select(.dxsId==83886336) | .value ) + (.dxsEntries[] | select(.dxsId==83886848) | .value ) + (.dxsEntries[] | select(.dxsId==83886592) | .value ) - (.dxsEntries[] | select(.dxsId==67109120) | .value )
{{- end -}}
{{- if eq .usage "pv" }}
# PV
source: http
uri: http://{{ .host }}/api/dxs.json?dxsEntries=67109120 # total AC output
# | ---------------------------- PAC W ------------- |
jq: (.dxsEntries[] | select(.dxsId==67109120) | .value )
{{- end -}}
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
product:
brand: Kostal
description: Piko, Piko BA
description: Piko Hybrid
render:
- usage: grid
default: |
type: template
template: kostal-piko
template: kostal-piko-hybrid
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
advanced: |
type: template
template: kostal-piko
template: kostal-piko-hybrid
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
- usage: pv
default: |
type: template
template: kostal-piko
template: kostal-piko-hybrid
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
advanced: |
type: template
template: kostal-piko
template: kostal-piko-hybrid
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname
- usage: battery
default: |
type: template
template: kostal-piko
template: kostal-piko-hybrid
usage: battery
host: 192.0.2.2 # IP-Adresse oder Hostname
advanced: |
type: template
template: kostal-piko
template: kostal-piko-hybrid
usage: battery
host: 192.0.2.2 # IP-Adresse oder Hostname
capacity: 50 # Akkukapazität in kWh (Optional)
16 changes: 16 additions & 0 deletions templates/docs/meter/kostal-piko-pv_0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
product:
brand: Kostal
description: Piko, Piko BA
render:
- usage: grid
default: |
type: template
template: kostal-piko-pv
usage: grid
host: 192.0.2.2 # IP-Adresse oder Hostname
- usage: pv
default: |
type: template
template: kostal-piko-pv
usage: pv
host: 192.0.2.2 # IP-Adresse oder Hostname

0 comments on commit 6f90409

Please sign in to comment.