From 2510d1c93ef2937e071756971df68c778dfd5014 Mon Sep 17 00:00:00 2001 From: Lutz Bender Date: Fri, 19 Aug 2022 09:43:05 +0200 Subject: [PATCH 1/2] add tesla soc configuration --- src/components/devices/tesla/vehicle_soc.vue | 63 +++++++++++++++++++- 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/src/components/devices/tesla/vehicle_soc.vue b/src/components/devices/tesla/vehicle_soc.vue index b562104a..f8b4de54 100644 --- a/src/components/devices/tesla/vehicle_soc.vue +++ b/src/components/devices/tesla/vehicle_soc.vue @@ -18,6 +18,57 @@ Fahrzeug im Konto. + + + + + + + + @@ -27,7 +78,17 @@ export default { emits: ["update:configuration"], props: { configuration: { type: Object, required: true }, - componentId: { required: true }, + deviceId: { required: true }, + }, + data() { + return { + token: { + refresh_token: "", + access_token: "", + expires_in: 0, + created_at: 0, + }, + }; }, methods: { updateConfiguration(event, path = undefined) { From 0bbb876d2d49266979384d8fc376ad7cdf03b890 Mon Sep 17 00:00:00 2001 From: Lutz Bender Date: Tue, 23 Aug 2022 12:15:24 +0200 Subject: [PATCH 2/2] changes in sungrow configuration --- src/components/devices/sungrow/bat.vue | 13 +++---------- src/components/devices/sungrow/counter.vue | 10 ---------- src/components/devices/sungrow/device.vue | 10 ++++++++++ src/components/devices/sungrow/inverter.vue | 13 +++---------- 4 files changed, 16 insertions(+), 30 deletions(-) diff --git a/src/components/devices/sungrow/bat.vue b/src/components/devices/sungrow/bat.vue index 3b854901..2132484d 100644 --- a/src/components/devices/sungrow/bat.vue +++ b/src/components/devices/sungrow/bat.vue @@ -4,16 +4,9 @@ Einstellungen für Sungrow Speicher (Modul: {{ $options.name }}) - + + Diese Komponente erfordert keine Einstellungen. + diff --git a/src/components/devices/sungrow/counter.vue b/src/components/devices/sungrow/counter.vue index bf1457a9..ba943542 100644 --- a/src/components/devices/sungrow/counter.vue +++ b/src/components/devices/sungrow/counter.vue @@ -15,16 +15,6 @@ updateConfiguration($event, 'configuration.version') " /> - diff --git a/src/components/devices/sungrow/device.vue b/src/components/devices/sungrow/device.vue index a74cda55..577507f2 100644 --- a/src/components/devices/sungrow/device.vue +++ b/src/components/devices/sungrow/device.vue @@ -21,6 +21,16 @@ updateConfiguration($event, 'configuration.port') " /> + diff --git a/src/components/devices/sungrow/inverter.vue b/src/components/devices/sungrow/inverter.vue index 0f08e911..29514f87 100644 --- a/src/components/devices/sungrow/inverter.vue +++ b/src/components/devices/sungrow/inverter.vue @@ -4,16 +4,9 @@ Einstellungen für Sungrow Wechselrichter (Modul: {{ $options.name }}) - + + Diese Komponente erfordert keine Einstellungen. +