From 4f5ec72ea045c0014d97c26f5eeee91609f7028c Mon Sep 17 00:00:00 2001 From: Moritz Barsnick Date: Fri, 12 Dec 2025 12:35:43 +0100 Subject: [PATCH] cleanup(sunspec): Remove left-over SunSpec types and interfaces Their use has been removed since EVerest 2024.10.0. Also drop the dependency from (outdated) dependencies.yaml. Signed-off-by: Moritz Barsnick --- .../everest-complete-readonly.yaml | 5 - .../dev-environment/everest-complete.yaml | 5 - interfaces/sunspec_ac_meter.yaml | 14 --- interfaces/sunspec_reader.yaml | 17 --- interfaces/sunspec_scanner.yaml | 49 -------- types/sunspec_ac_meter.yaml | 119 ------------------ 6 files changed, 209 deletions(-) delete mode 100644 interfaces/sunspec_ac_meter.yaml delete mode 100644 interfaces/sunspec_reader.yaml delete mode 100644 interfaces/sunspec_scanner.yaml delete mode 100644 types/sunspec_ac_meter.yaml diff --git a/applications/dev-environment/everest-complete-readonly.yaml b/applications/dev-environment/everest-complete-readonly.yaml index 6c5be79331..515ab03b8a 100644 --- a/applications/dev-environment/everest-complete-readonly.yaml +++ b/applications/dev-environment/everest-complete-readonly.yaml @@ -42,11 +42,6 @@ libocpp: libslac: git: https://github.com/EVerest/libslac.git git_tag: main -libsunspec: - git: https://github.com/EVerest/libsunspec.git - git_tag: main - options: - - BUILD_EXAMPLES OFF libtimer: git: https://github.com/EVerest/libtimer.git git_tag: main diff --git a/applications/dev-environment/everest-complete.yaml b/applications/dev-environment/everest-complete.yaml index fc4be6d426..251c38be41 100644 --- a/applications/dev-environment/everest-complete.yaml +++ b/applications/dev-environment/everest-complete.yaml @@ -42,11 +42,6 @@ libocpp: libslac: git: git@github.com:EVerest/libslac.git git_tag: main -libsunspec: - git: git@github.com:EVerest/libsunspec.git - git_tag: main - options: - - BUILD_EXAMPLES OFF libtimer: git: git@github.com:EVerest/libtimer.git git_tag: main diff --git a/interfaces/sunspec_ac_meter.yaml b/interfaces/sunspec_ac_meter.yaml deleted file mode 100644 index 88f95d804a..0000000000 --- a/interfaces/sunspec_ac_meter.yaml +++ /dev/null @@ -1,14 +0,0 @@ -description: Get sunspec ac meter measurement -cmds: - get_sunspec_ac_meter_value: - description: Returns a sunspec ac meter model - arguments: - auth_token: - description: Auth token - type: string - minLength: 1 - maxLength: 20 - result: - description: Sunspec ac meter model - type: object - $ref: /sunspec_ac_meter#/Result diff --git a/interfaces/sunspec_reader.yaml b/interfaces/sunspec_reader.yaml deleted file mode 100644 index 0dd98cd7c0..0000000000 --- a/interfaces/sunspec_reader.yaml +++ /dev/null @@ -1,17 +0,0 @@ -description: >- - This interface defines a generic Sunspec reader, which can be used to - fetch values from Sunspec devices when an implementation is given. -vars: - measurement: - description: Measured dataset - type: object - required: - - timestamp - properties: - timestamp: - description: Timestamp of measurement - type: number - value: - description: Measurement value - type: number - additionalProperties: true diff --git a/interfaces/sunspec_scanner.yaml b/interfaces/sunspec_scanner.yaml deleted file mode 100644 index 34450f8fa5..0000000000 --- a/interfaces/sunspec_scanner.yaml +++ /dev/null @@ -1,49 +0,0 @@ -description: This class defines the global Sunspec scanner -cmds: - scan_unit: - description: Scans specific unit at a device's port - arguments: - ip_address: - description: local IP-address of the Sunspec device - type: string - pattern: ^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$ - port: - description: Modbus port - type: integer - minimum: 0 - unit: - description: Modbus unit id - type: integer - minimum: 0 - result: - description: Returns a json overview of the scan - type: object - scan_port: - description: Scans all units at a device's port - arguments: - ip_address: - description: local IP-address of the Sunspec device - type: string - pattern: ^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$ - port: - description: Modbus port - type: integer - minimum: 0 - result: - description: Returns a json overview of the scan - type: object - scan_device: - description: Scans complete device - arguments: - ip_address: - description: local IP-address of the Sunspec device - type: string - pattern: ^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$ - result: - description: Returns a json overview of the scan - type: object - scan_network: - description: Scans local network - result: - description: Returns a json overview of the scan - type: object diff --git a/types/sunspec_ac_meter.yaml b/types/sunspec_ac_meter.yaml deleted file mode 100644 index bae46c20a1..0000000000 --- a/types/sunspec_ac_meter.yaml +++ /dev/null @@ -1,119 +0,0 @@ -description: sunspec ac powermeter types -types: - Result: - description: Measured dataset - type: object - required: - - timestamp - properties: - timestamp: - description: Timestamp of measurement - type: integer - ID: - description: ID Model ID uinteger no 203 SunSpec Model AC Meter - type: integer - L: - description: L Model Payload Length uinteger no 105 Without the fields 'Model - ID' and 'Length of payload. - type: integer - A: - description: A Amps int16 A no - type: integer - AphA: - description: AphA Amps PhaseA int16 A no - type: integer - AphB: - description: AphB Amps PhaseB int16 A no - type: integer - AphC: - description: AphC Amps PhaseC int16 A no - type: integer - A_SF: - description: A_SF integer no - type: integer - PhVphA: - description: PhVphA Phase Voltage AN int16 V no - type: integer - PhVphB: - description: PhVphB Phase Voltage BN int16 V no - type: integer - PhVphC: - description: PhVphC Phase Voltage CN int16 V no - type: integer - V_SF: - description: V_SF sunssf no - type: integer - Hz: - description: Hz Hz int16 Hz no - type: integer - Hz_SF: - description: Hz_SF sunssf no - type: integer - W: - description: W Watts int16 W no - type: integer - WphA: - description: WphA Watts phase A int16 W no - type: integer - WphB: - description: WphB Watts phase B int16 W no - type: integer - WphC: - description: WphC Watts phase C int16 W no - type: integer - W_SF: - description: W_SF sunssf no - type: integer - VA: - description: VA VA int16 VA no - type: integer - VAphA: - description: VAphA VA phase A int16 VA no - type: integer - VAphB: - description: VAphB VA phase B int16 VA no - type: integer - VAphC: - description: VAphC VA phase C int16 VA no - type: integer - VA_SF: - description: VA_SF integer no - type: integer - VAR: - description: VAR VAR int16 var no - type: integer - VARphA: - description: VARphA VAR phase A int16 var no - type: integer - VARphB: - description: VARphB VAR phase B int16 var no - type: integer - VARphC: - description: VARphC VAR phase C int16 var no - type: integer - VAR_SF: - description: VAR_SF sunssf no - type: integer - PFphA: - description: PFphA PF phase A int16 Pct no - type: integer - PFphB: - description: PFphB PF phase B int16 Pct no - type: integer - PFphC: - description: PFphC PF phase C int16 Pct no - type: integer - PF_SF: - description: PF_SF sunssf no - type: integer - TotWhIm: - description: TotWhIm p Total Watt-hours Imported acc32 Wh no - type: integer - TotWh_SF: - description: TotWh_SF sunssf no - type: integer - Evt: - description: Evt Events bitfield32 no See chapter 17.5 Event flags of critical - events of counter and communication module. A problem exists if this value - is different from zero. - type: integer