Add flobz PSA Car Controller (#7369)
This commit is contained in:
parent
6098cc54a4
commit
56e27fba7c
3 changed files with 52 additions and 0 deletions
40
templates/definition/vehicle/flobz.yaml
Normal file
40
templates/definition/vehicle/flobz.yaml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
template: flobz
|
||||
products:
|
||||
- brand: PSA
|
||||
description:
|
||||
generic: PSA Car Controller (flobz)
|
||||
params:
|
||||
- name: host
|
||||
- name: port
|
||||
- name: vin
|
||||
required: true
|
||||
help:
|
||||
de: Erforderlich
|
||||
en: Required
|
||||
- name: capacity
|
||||
render: |
|
||||
type: custom
|
||||
soc:
|
||||
{{- include "source" . | indent 2 }}
|
||||
jq: .energy[0].level
|
||||
status:
|
||||
source: combined
|
||||
plugged:
|
||||
{{- include "source" . | indent 4 }}
|
||||
jq: .energy[0].charging.plugged
|
||||
charging:
|
||||
{{- include "source" . | indent 4 }}
|
||||
jq: .energy[0].charging.status == "InProgress"
|
||||
range:
|
||||
{{- include "source" . | indent 2 }}
|
||||
jq: .energy[0].autonomy
|
||||
odometer:
|
||||
{{- include "source" . | indent 2 }}
|
||||
jq: .timed_odometer.mileage
|
||||
climater:
|
||||
{{- include "source" . | indent 2 }}
|
||||
jq: .preconditionning.air_conditioning.status != "Disabled"
|
||||
{{- define "source" }}
|
||||
source: http
|
||||
uri: http://{{ .host }}{{ if .port }}:{{ .port }}{{ end }}/get_vehicleinfo/{{ .vin }}?from_cache=1
|
||||
{{- end }}
|
||||
11
templates/docs/vehicle/flobz_0.yaml
Normal file
11
templates/docs/vehicle/flobz_0.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
product:
|
||||
brand: PSA
|
||||
description: PSA Car Controller (flobz)
|
||||
render:
|
||||
- default: |
|
||||
type: template
|
||||
template: flobz
|
||||
host: 192.0.2.2 # IP-Adresse oder Hostname
|
||||
port: # Port (Optional)
|
||||
vin: W... # Erforderlich
|
||||
capacity: 50 # Akkukapazität in kWh (Optional)
|
||||
|
|
@ -172,6 +172,7 @@
|
|||
"Opel",
|
||||
"Peugeot",
|
||||
"Porsche",
|
||||
"PSA",
|
||||
"Renault",
|
||||
"Seat",
|
||||
"Silence",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue