Skip to content

Commit c07f879

Browse files
committed
Templates update for nightly evcc-io/evcc@6d32c89
1 parent 22d954c commit c07f879

File tree

4 files changed

+130
-12
lines changed

4 files changed

+130
-12
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
template: demo-solar-forecast
2+
product:
3+
identifier: demo-pv-forecast
4+
description: Demo PV Vorhersage
5+
group: PV Vorhersage
6+
requirements: ["skiptest"]
7+
description: |
8+
Zu Demonstrationszwecken. Liefert optimale Solarproduktionskurve mit Spitze zur Mittagszeit.
9+
render:
10+
- default: |
11+
type: template
12+
template: demo-solar-forecast
13+
kwp: 4.5 # Maximale Generatorleistung (kWp), optional
14+
sunrise: 6 # Sonnenaufgang (h), Stunde des Sonnenaufgangs (0-23) (optional)
15+
sunset: 18 # Sonnenuntergang (h), Stunde des Sonnenuntergangs (0-23) (optional)
16+
advanced: |
17+
type: template
18+
template: demo-solar-forecast
19+
kwp: 4.5 # Maximale Generatorleistung (kWp), optional
20+
sunrise: 6 # Sonnenaufgang (h), Stunde des Sonnenaufgangs (0-23) (optional)
21+
sunset: 18 # Sonnenuntergang (h), Stunde des Sonnenuntergangs (0-23) (optional)
22+
interval: 1h # Intervall, optional
23+
params:
24+
- name: kwp
25+
example:
26+
default: 4.5
27+
choice: []
28+
unit: kWp
29+
description: Maximale Generatorleistung
30+
help:
31+
advanced: false
32+
optional: true
33+
- name: sunrise
34+
example:
35+
default: 6
36+
choice: []
37+
unit: h
38+
description: Sonnenaufgang
39+
help: Stunde des Sonnenaufgangs (0-23)
40+
advanced: false
41+
optional: true
42+
- name: sunset
43+
example:
44+
default: 18
45+
choice: []
46+
unit: h
47+
description: Sonnenuntergang
48+
help: Stunde des Sonnenuntergangs (0-23)
49+
advanced: false
50+
optional: true
51+
- name: interval
52+
example:
53+
default: 1h
54+
choice: []
55+
unit:
56+
description: Intervall
57+
help:
58+
advanced: true
59+
optional: true

templates/nightly/de/vehicle/volvo.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ product:
55
description: |
66
Für die Nutzung mit EVCC benötigst du einen Volvo Account und einen Volvo Connected Car API Key.
77
Erstelle dazu auf der [Account Seite](https://developer.volvocars.com/account/) eine neue Applikation und speichere den primären VCC API Key ab.
8-
Veröffentliche nun deine Applikation und wähle unter "Scopes" die Berechtigungen "Connected Vehicle API -> conve:vehicle-relation" und "Energy API -> (alles)" aus.
9-
Als Redirect URL musst du die URL deiner EVCC Instanz eintragen, zb "http://evcc.local:7070/oauth/callback".
8+
Veröffentliche nun deine Applikation und wähle unter "Scopes" die Berechtigungen "Connected Vehicle API -> conve:vehicle-relation" und "Energy API -> energy:state:read" aus.
9+
Als Redirect URL musst du die URL deiner EVCC Instanz eintragen, zb "https://evcc.example.org/oauth/callback".
1010
Sobald die Applikation erstellt ist, wird sie als "Publication under Review" angezeigt. Das ist nicht weiter schlimm, es funktioniert trotzdem.
1111
Beim Anlegen des Fahrzeugs über die UI wird ein Fehler angezeigt.
12-
Schaue im Log nach der Meldung "registering oauth provider at /oauth/login?..." und öffne den Link "http://evcc.local:7070/oauth/login?..." in einem neuen Tab.
12+
Schaue im Log nach der Meldung "registering oauth provider at /oauth/login?..." und öffne den Link "https://evcc.example.org/oauth/login?..." in einem neuen Tab.
1313
Melde dich mit deinem Volvo Account an und erlaube den Zugriff auf die Daten. Ist die Autorisierung erfolgreich, kann das Fahrzeug hinzugefügt werden.
1414
1515
render:
@@ -21,7 +21,7 @@ render:
2121
vccapikey: # VCC API Key, aus [Volvo Developer App](https://developer.volvocars.com/).
2222
clientId: # Client ID, aus [Volvo Developer App](https://developer.volvocars.com/).
2323
clientSecret: # Client Secret, aus [Volvo Developer App](https://developer.volvocars.com/).
24-
redirectUri: # Redirect URI, Redirect-URI deiner evcc-Instanz, Format: http://evcc.local:7070/oauth/callback. Muss mit der Redirect-URI übereinstimmen, die in deiner Volvo Developer App festgelegt ist.
24+
redirectUri: # Redirect URI, Redirect-URI deiner EVCC-Instanz, Format: https://evcc.example.org/oauth/callback. Muss mit der Redirect-URI übereinstimmen, die in deiner Volvo Developer App festgelegt ist.
2525
vin: WF0FXX... # Fahrzeugidentifikationsnummer, Wenn mehrere Fahrzeuge eines Herstellers vorhanden sind (optional)
2626
advanced: |
2727
type: template
@@ -31,7 +31,7 @@ render:
3131
vccapikey: # VCC API Key, aus [Volvo Developer App](https://developer.volvocars.com/).
3232
clientId: # Client ID, aus [Volvo Developer App](https://developer.volvocars.com/).
3333
clientSecret: # Client Secret, aus [Volvo Developer App](https://developer.volvocars.com/).
34-
redirectUri: # Redirect URI, Redirect-URI deiner evcc-Instanz, Format: http://evcc.local:7070/oauth/callback. Muss mit der Redirect-URI übereinstimmen, die in deiner Volvo Developer App festgelegt ist.
34+
redirectUri: # Redirect URI, Redirect-URI deiner EVCC-Instanz, Format: https://evcc.example.org/oauth/callback. Muss mit der Redirect-URI übereinstimmen, die in deiner Volvo Developer App festgelegt ist.
3535
vin: WF0FXX... # Fahrzeugidentifikationsnummer, Wenn mehrere Fahrzeuge eines Herstellers vorhanden sind (optional)
3636
icon: car # Icon, Wird in der Benutzeroberfläche angezeigt [car, bike, bus, moped, motorcycle, rocket, scooter, taxi, tractor, rickshaw, shuttle, van, airpurifier, battery, bulb, climate, coffeemaker, compute, cooking, cooler, desktop, device, dishwasher, dryer, floorlamp, generic, heater, heatexchange, heatpump, kettle, laundry, laundry2, machine, meter, microwave, pump, smartconsumer, tool, waterheater] (optional)
3737
phases: 3 # Maximale Phasenanzahl, Die maximale Anzahl der Phasen welche genutzt werden können (optional)
@@ -92,7 +92,7 @@ params:
9292
choice: []
9393
unit:
9494
description: Redirect URI
95-
help: 'Redirect-URI deiner evcc-Instanz, Format: http://evcc.local:7070/oauth/callback. Muss mit der Redirect-URI übereinstimmen, die in deiner Volvo Developer App festgelegt ist.'
95+
help: 'Redirect-URI deiner EVCC-Instanz, Format: https://evcc.example.org/oauth/callback. Muss mit der Redirect-URI übereinstimmen, die in deiner Volvo Developer App festgelegt ist.'
9696
advanced: false
9797
optional: false
9898
- name: vin
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
template: demo-solar-forecast
2+
product:
3+
identifier: demo-pv-forecast
4+
description: Demo PV Forecast
5+
group: PV forecast
6+
requirements: ["skiptest"]
7+
description: |
8+
For demonstration purposes. Provides optimal solar production curve peaking at noon.
9+
render:
10+
- default: |
11+
type: template
12+
template: demo-solar-forecast
13+
kwp: 4.5 # Maximum generator power (kWp), optional
14+
sunrise: 6 # Sunrise hour (h), Hour of sunrise (0-23) (optional)
15+
sunset: 18 # Sunset hour (h), Hour of sunset (0-23) (optional)
16+
advanced: |
17+
type: template
18+
template: demo-solar-forecast
19+
kwp: 4.5 # Maximum generator power (kWp), optional
20+
sunrise: 6 # Sunrise hour (h), Hour of sunrise (0-23) (optional)
21+
sunset: 18 # Sunset hour (h), Hour of sunset (0-23) (optional)
22+
interval: 1h # Interval, optional
23+
params:
24+
- name: kwp
25+
example:
26+
default: 4.5
27+
choice: []
28+
unit: kWp
29+
description: Maximum generator power
30+
help:
31+
advanced: false
32+
optional: true
33+
- name: sunrise
34+
example:
35+
default: 6
36+
choice: []
37+
unit: h
38+
description: Sunrise hour
39+
help: Hour of sunrise (0-23)
40+
advanced: false
41+
optional: true
42+
- name: sunset
43+
example:
44+
default: 18
45+
choice: []
46+
unit: h
47+
description: Sunset hour
48+
help: Hour of sunset (0-23)
49+
advanced: false
50+
optional: true
51+
- name: interval
52+
example:
53+
default: 1h
54+
choice: []
55+
unit:
56+
description: Interval
57+
help:
58+
advanced: true
59+
optional: true

templates/nightly/en/vehicle/volvo.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ product:
55
description: |
66
To use with EVCC, you need a Volvo account and a Volvo Connected Car API Key.
77
To do this, create a new application on the [Account page](https://developer.volvocars.com/account/) and save the primary VCC API key.
8-
Now publish your application and select the permissions "Connected Vehicle API -> conve:vehicle-relation" and "Energy API -> (everything)" under "Scopes".
9-
You must enter the URL of your EVCC instance as the redirect URL, e.g. "http://evcc.local:7070/oauth/callback".
8+
Now publish your application and select the permissions "Connected Vehicle API -> conve:vehicle-relation" and "Energy API -> energy:state:read" under "Scopes".
9+
You must enter the URL of your EVCC instance as the redirect URL, e.g. "https://evcc.example.org/oauth/callback".
1010
Once the application is created, it will be displayed as "Publication under Review". This is not a problem, it still works.
1111
When adding the vehicle via the UI, an error message is displayed.
12-
Check the log for the message "registering oauth provider at /oauth/login?..." and open the link "http://evcc.local:7070/oauth/login?..." in a new tab.
12+
Check the log for the message "registering oauth provider at /oauth/login?..." and open the link "https://evcc.example.org/oauth/login?..." in a new tab.
1313
Log in with your Volvo account and allow access to the data. If the authorization is successful, the vehicle can be added.
1414
1515
render:
@@ -21,7 +21,7 @@ render:
2121
vccapikey: # VCC API Key, from [Volvo Developer App](https://developer.volvocars.com/).
2222
clientId: # Client ID, from [Volvo Developer App](https://developer.volvocars.com/).
2323
clientSecret: # Client Secret, from [Volvo Developer App](https://developer.volvocars.com/).
24-
redirectUri: # Redirect URI, Redirect URI of your evcc instance, format: `http://evcc.local:7070/oauth/callback`. Must match the redirect URI set in your Volvo Developer App.
24+
redirectUri: # Redirect URI, Redirect URI of your EVCC instance, format: `https://evcc.example.org/oauth/callback`. Must match the redirect URI set in your Volvo Developer App.
2525
vin: WF0FXX... # Vehicle Identification Number, If you own multiple vehicles from the same manufacturer (optional)
2626
advanced: |
2727
type: template
@@ -31,7 +31,7 @@ render:
3131
vccapikey: # VCC API Key, from [Volvo Developer App](https://developer.volvocars.com/).
3232
clientId: # Client ID, from [Volvo Developer App](https://developer.volvocars.com/).
3333
clientSecret: # Client Secret, from [Volvo Developer App](https://developer.volvocars.com/).
34-
redirectUri: # Redirect URI, Redirect URI of your evcc instance, format: `http://evcc.local:7070/oauth/callback`. Must match the redirect URI set in your Volvo Developer App.
34+
redirectUri: # Redirect URI, Redirect URI of your EVCC instance, format: `https://evcc.example.org/oauth/callback`. Must match the redirect URI set in your Volvo Developer App.
3535
vin: WF0FXX... # Vehicle Identification Number, If you own multiple vehicles from the same manufacturer (optional)
3636
icon: car # Icon, Will be displayed in the user interface [car, bike, bus, moped, motorcycle, rocket, scooter, taxi, tractor, rickshaw, shuttle, van, airpurifier, battery, bulb, climate, coffeemaker, compute, cooking, cooler, desktop, device, dishwasher, dryer, floorlamp, generic, heater, heatexchange, heatpump, kettle, laundry, laundry2, machine, meter, microwave, pump, smartconsumer, tool, waterheater] (optional)
3737
phases: 3 # Maximum number of phases, The maximum number of phases which can be used (optional)
@@ -92,7 +92,7 @@ params:
9292
choice: []
9393
unit:
9494
description: Redirect URI
95-
help: 'Redirect URI of your evcc instance, format: `http://evcc.local:7070/oauth/callback`. Must match the redirect URI set in your Volvo Developer App.'
95+
help: 'Redirect URI of your EVCC instance, format: `https://evcc.example.org/oauth/callback`. Must match the redirect URI set in your Volvo Developer App.'
9696
advanced: false
9797
optional: false
9898
- name: vin

0 commit comments

Comments
 (0)