Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Loxone template #10535

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions templates/definition/meter/loxone.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
template: loxone
products:
- brand: Loxone
description:
generic: Miniserver
params:
- name: usage
choice: ["grid", "pv", "battery", "charge"]
- name: host
- name: user
- name: password
- name: meterblock
required: true
description:
de: Zählerbaustein
en: Meter block
help:
de: Bezeichnung aus Loxone Config
en: Name from Loxone Config
- name: socblock
required: false
description:
de: Bausteinbezeichnung für Ladezustand
en: Function block name for state of charge
help:
de: Bezeichnung aus Loxone Config, nur für Batterie
en: Name from Loxone Config, only for battery
render: |
type: custom
power:
source: http
uri: http://{{ .host }}/jdev/sps/io/{{ .meterblock }}
auth:
type: basic
user: {{ .user }}
password: {{ .password }}
jq: .LL.value
scale: 1000
premultiply marked this conversation as resolved.
Show resolved Hide resolved
energy:
source: http
uri: http://{{ .host }}/jdev/sps/io/{{ .meterblock }}/all
auth:
type: basic
user: {{ .user }}
password: {{ .password }}
jq: first(.LL[] | select(type == "object" and (.name == "Mr" or .name == "Mrc")) .value)
{{- if and (eq .usage "battery") .socblock }}
soc:
source: http
uri: http://{{ .host }}/jdev/sps/io/{{ .socblock }}
auth:
type: basic
user: {{ .user }}
password: {{ .password }}
jq: .LL.value
{{- end }}
2 changes: 2 additions & 0 deletions templates/evcc.io/brands.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"Janitza",
"Kostal",
"LG",
"Loxone",
"M-TEC",
"my-PV",
"myStrom",
Expand Down Expand Up @@ -168,6 +169,7 @@
"IGEN Tech",
"Kostal",
"LG",
"Loxone",
"M-TEC",
"myStrom",
"OpenEMS",
Expand Down