diff --git a/spec/lib/senec/cloud/connection_spec.rb b/spec/lib/senec/cloud/connection_spec.rb index ba34e52..a630b9d 100644 --- a/spec/lib/senec/cloud/connection_spec.rb +++ b/spec/lib/senec/cloud/connection_spec.rb @@ -35,7 +35,7 @@ it { is_expected.to be_truthy } it 'cannot access data', vcr: 'cloud/login-by-invalid-token' do - expect { connection.systems }.to raise_error(Senec::Cloud::Error, 'Error 400') + expect { connection.systems }.to raise_error(Senec::Cloud::Error, 'Error 401') end end end diff --git a/spec/support/cassettes/cloud/fetch-dashboard-default-system.yml b/spec/support/cassettes/cloud/fetch-dashboard-default-system.yml index 37a3482..964fd4d 100644 --- a/spec/support/cassettes/cloud/fetch-dashboard-default-system.yml +++ b/spec/support/cassettes/cloud/fetch-dashboard-default-system.yml @@ -8,7 +8,7 @@ http_interactions: string: '{"username":"","password":""}' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Content-Type: - application/json response: @@ -17,7 +17,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:48 GMT + - Tue, 06 Aug 2024 15:19:50 GMT content-type: - application/json transfer-encoding: @@ -37,13 +37,13 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '{"token":"","refreshToken":""}' - recorded_at: Mon, 29 Jan 2024 16:19:47 GMT + recorded_at: Tue, 06 Aug 2024 15:19:50 GMT - request: method: get uri: https://app-gateway.prod.senec.dev/v1/senec/systems @@ -52,7 +52,7 @@ http_interactions: string: '' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Authorization: - "" response: @@ -61,7 +61,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:48 GMT + - Tue, 06 Aug 2024 15:19:50 GMT content-type: - application/json transfer-encoding: @@ -81,13 +81,13 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '[{"id":"","steuereinheitnummer":"","gehaeusenummer":"","strasse":"","hausnummer":"","postleitzahl":"","ort":"","laendercode":"DE","zeitzone":"Europe/Berlin","wallboxIds":["1"],"systemType":"V3"}]' - recorded_at: Mon, 29 Jan 2024 16:19:48 GMT + recorded_at: Tue, 06 Aug 2024 15:19:50 GMT - request: method: get uri: https://app-gateway.prod.senec.dev/v1/senec/systems @@ -96,7 +96,7 @@ http_interactions: string: '' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Authorization: - "" response: @@ -105,7 +105,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:48 GMT + - Tue, 06 Aug 2024 15:19:50 GMT content-type: - application/json transfer-encoding: @@ -125,13 +125,13 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '[{"id":"","steuereinheitnummer":"","gehaeusenummer":"","strasse":"","hausnummer":"","postleitzahl":"","ort":"","laendercode":"DE","zeitzone":"Europe/Berlin","wallboxIds":["1"],"systemType":"V3"}]' - recorded_at: Mon, 29 Jan 2024 16:19:48 GMT + recorded_at: Tue, 06 Aug 2024 15:19:50 GMT - request: method: get uri: https://app-gateway.prod.senec.dev/v1/senec/systems//dashboard @@ -140,7 +140,7 @@ http_interactions: string: '' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Authorization: - "" response: @@ -149,7 +149,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:49 GMT + - Tue, 06 Aug 2024 15:19:51 GMT content-type: - application/json transfer-encoding: @@ -169,11 +169,11 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 - string: '{"aktuell":{"stromerzeugung":{"wert":46.565000000000005,"einheit":"W"},"stromverbrauch":{"wert":880.0,"einheit":"W"},"netzeinspeisung":{"wert":23.282,"einheit":"W"},"netzbezug":{"wert":0.01,"einheit":"W"},"speicherbeladung":{"wert":0.01,"einheit":"W"},"speicherentnahme":{"wert":873.086,"einheit":"W"},"speicherfuellstand":{"wert":83.83837890625,"einheit":"%"},"autarkie":{"wert":100.0,"einheit":"%"},"wallbox":{"wert":0.01,"einheit":"W"}},"heute":{"stromerzeugung":{"wert":26320.3125,"einheit":"Wh"},"stromverbrauch":{"wert":17850.0,"einheit":"Wh"},"netzeinspeisung":{"wert":7910.15625,"einheit":"Wh"},"netzbezug":{"wert":4581.54296875,"einheit":"Wh"},"speicherbeladung":{"wert":10058.10546875,"einheit":"Wh"},"speicherentnahme":{"wert":4922.36328125,"einheit":"Wh"},"speicherfuellstand":{"wert":33.494361877441406,"einheit":"%"},"autarkie":{"wert":74.34,"einheit":"%"},"wallbox":{"wert":0.0,"einheit":"Wh"}},"zeitstempel":"2024-01-29T16:17:14Z","electricVehicleConnected":false}' - recorded_at: Mon, 29 Jan 2024 16:19:49 GMT + string: '{"aktuell":{"stromerzeugung":{"wert":2514.487,"einheit":"W"},"stromverbrauch":{"wert":1280.0,"einheit":"W"},"netzeinspeisung":{"wert":838.1619999999999,"einheit":"W"},"netzbezug":{"wert":104.77,"einheit":"W"},"speicherbeladung":{"wert":541.313,"einheit":"W"},"speicherentnahme":{"wert":23.282,"einheit":"W"},"speicherfuellstand":{"wert":98.9898910522461,"einheit":"%"},"autarkie":{"wert":91.82,"einheit":"%"},"wallbox":{"wert":0.01,"einheit":"W"}},"heute":{"stromerzeugung":{"wert":44906.25,"einheit":"Wh"},"stromverbrauch":{"wert":10120.0,"einheit":"Wh"},"netzeinspeisung":{"wert":16437.5,"einheit":"Wh"},"netzbezug":{"wert":1162.109375,"einheit":"Wh"},"speicherbeladung":{"wert":3925.29296875,"einheit":"Wh"},"speicherentnahme":{"wert":3589.84375,"einheit":"Wh"},"speicherfuellstand":{"wert":81.1155014038086,"einheit":"%"},"autarkie":{"wert":96.15,"einheit":"%"},"wallbox":{"wert":20070.0,"einheit":"Wh"}},"zeitstempel":"2024-08-06T15:17:15Z","electricVehicleConnected":false}' + recorded_at: Tue, 06 Aug 2024 15:19:51 GMT recorded_with: VCR 6.2.0 diff --git a/spec/support/cassettes/cloud/fetch-dashboard-invalid-system.yml b/spec/support/cassettes/cloud/fetch-dashboard-invalid-system.yml index b587b2f..9d8ad2c 100644 --- a/spec/support/cassettes/cloud/fetch-dashboard-invalid-system.yml +++ b/spec/support/cassettes/cloud/fetch-dashboard-invalid-system.yml @@ -8,7 +8,7 @@ http_interactions: string: '{"username":"","password":""}' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Content-Type: - application/json response: @@ -17,7 +17,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:50 GMT + - Tue, 06 Aug 2024 15:18:36 GMT content-type: - application/json transfer-encoding: @@ -37,13 +37,13 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '{"token":"","refreshToken":""}' - recorded_at: Mon, 29 Jan 2024 16:19:50 GMT + recorded_at: Tue, 06 Aug 2024 15:18:36 GMT - request: method: get uri: https://app-gateway.prod.senec.dev/v1/senec/systems/123456/dashboard @@ -52,7 +52,7 @@ http_interactions: string: '' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Authorization: - "" response: @@ -61,7 +61,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:50 GMT + - Tue, 06 Aug 2024 15:18:36 GMT content-type: - text/plain;charset=UTF-8 content-length: @@ -81,11 +81,11 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: 'HTTP 401 ' - recorded_at: Mon, 29 Jan 2024 16:19:50 GMT + recorded_at: Tue, 06 Aug 2024 15:18:36 GMT recorded_with: VCR 6.2.0 diff --git a/spec/support/cassettes/cloud/fetch-dashboard-specific-system.yml b/spec/support/cassettes/cloud/fetch-dashboard-specific-system.yml index 218f76e..386f423 100644 --- a/spec/support/cassettes/cloud/fetch-dashboard-specific-system.yml +++ b/spec/support/cassettes/cloud/fetch-dashboard-specific-system.yml @@ -8,7 +8,7 @@ http_interactions: string: '{"username":"","password":""}' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Content-Type: - application/json response: @@ -17,7 +17,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:49 GMT + - Tue, 06 Aug 2024 15:19:52 GMT content-type: - application/json transfer-encoding: @@ -37,13 +37,13 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '{"token":"","refreshToken":""}' - recorded_at: Mon, 29 Jan 2024 16:19:49 GMT + recorded_at: Tue, 06 Aug 2024 15:19:52 GMT - request: method: get uri: https://app-gateway.prod.senec.dev/v1/senec/systems//dashboard @@ -52,7 +52,7 @@ http_interactions: string: '' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Authorization: - "" response: @@ -61,7 +61,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:50 GMT + - Tue, 06 Aug 2024 15:19:53 GMT content-type: - application/json transfer-encoding: @@ -81,11 +81,11 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 - string: '{"aktuell":{"stromerzeugung":{"wert":46.565000000000005,"einheit":"W"},"stromverbrauch":{"wert":880.0,"einheit":"W"},"netzeinspeisung":{"wert":23.282,"einheit":"W"},"netzbezug":{"wert":0.01,"einheit":"W"},"speicherbeladung":{"wert":0.01,"einheit":"W"},"speicherentnahme":{"wert":873.086,"einheit":"W"},"speicherfuellstand":{"wert":83.83837890625,"einheit":"%"},"autarkie":{"wert":100.0,"einheit":"%"},"wallbox":{"wert":0.01,"einheit":"W"}},"heute":{"stromerzeugung":{"wert":26320.3125,"einheit":"Wh"},"stromverbrauch":{"wert":17850.0,"einheit":"Wh"},"netzeinspeisung":{"wert":7910.15625,"einheit":"Wh"},"netzbezug":{"wert":4581.54296875,"einheit":"Wh"},"speicherbeladung":{"wert":10058.10546875,"einheit":"Wh"},"speicherentnahme":{"wert":4922.36328125,"einheit":"Wh"},"speicherfuellstand":{"wert":33.494361877441406,"einheit":"%"},"autarkie":{"wert":74.34,"einheit":"%"},"wallbox":{"wert":0.0,"einheit":"Wh"}},"zeitstempel":"2024-01-29T16:17:14Z","electricVehicleConnected":false}' - recorded_at: Mon, 29 Jan 2024 16:19:50 GMT + string: '{"aktuell":{"stromerzeugung":{"wert":2514.487,"einheit":"W"},"stromverbrauch":{"wert":1280.0,"einheit":"W"},"netzeinspeisung":{"wert":838.1619999999999,"einheit":"W"},"netzbezug":{"wert":104.77,"einheit":"W"},"speicherbeladung":{"wert":541.313,"einheit":"W"},"speicherentnahme":{"wert":23.282,"einheit":"W"},"speicherfuellstand":{"wert":98.9898910522461,"einheit":"%"},"autarkie":{"wert":91.82,"einheit":"%"},"wallbox":{"wert":0.01,"einheit":"W"}},"heute":{"stromerzeugung":{"wert":44906.25,"einheit":"Wh"},"stromverbrauch":{"wert":10120.0,"einheit":"Wh"},"netzeinspeisung":{"wert":16437.5,"einheit":"Wh"},"netzbezug":{"wert":1162.109375,"einheit":"Wh"},"speicherbeladung":{"wert":3925.29296875,"einheit":"Wh"},"speicherentnahme":{"wert":3589.84375,"einheit":"Wh"},"speicherfuellstand":{"wert":81.1155014038086,"einheit":"%"},"autarkie":{"wert":96.15,"einheit":"%"},"wallbox":{"wert":20070.0,"einheit":"Wh"}},"zeitstempel":"2024-08-06T15:17:15Z","electricVehicleConnected":false}' + recorded_at: Tue, 06 Aug 2024 15:19:53 GMT recorded_with: VCR 6.2.0 diff --git a/spec/support/cassettes/cloud/fetch-systems.yml b/spec/support/cassettes/cloud/fetch-systems.yml index d02453c..812d022 100644 --- a/spec/support/cassettes/cloud/fetch-systems.yml +++ b/spec/support/cassettes/cloud/fetch-systems.yml @@ -8,7 +8,7 @@ http_interactions: string: '{"username":"","password":""}' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Content-Type: - application/json response: @@ -17,7 +17,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:47 GMT + - Tue, 06 Aug 2024 15:18:27 GMT content-type: - application/json transfer-encoding: @@ -37,13 +37,13 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '{"token":"","refreshToken":""}' - recorded_at: Mon, 29 Jan 2024 16:19:47 GMT + recorded_at: Tue, 06 Aug 2024 15:18:27 GMT - request: method: get uri: https://app-gateway.prod.senec.dev/v1/senec/systems @@ -52,7 +52,7 @@ http_interactions: string: '' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Authorization: - "" response: @@ -61,7 +61,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:47 GMT + - Tue, 06 Aug 2024 15:18:27 GMT content-type: - application/json transfer-encoding: @@ -81,11 +81,11 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '[{"id":"","steuereinheitnummer":"","gehaeusenummer":"","strasse":"","hausnummer":"","postleitzahl":"","ort":"","laendercode":"DE","zeitzone":"Europe/Berlin","wallboxIds":["1"],"systemType":"V3"}]' - recorded_at: Mon, 29 Jan 2024 16:19:47 GMT + recorded_at: Tue, 06 Aug 2024 15:18:27 GMT recorded_with: VCR 6.2.0 diff --git a/spec/support/cassettes/cloud/fetch-technical_data-default-system.yml b/spec/support/cassettes/cloud/fetch-technical_data-default-system.yml index 07b98c6..2e3cb92 100644 --- a/spec/support/cassettes/cloud/fetch-technical_data-default-system.yml +++ b/spec/support/cassettes/cloud/fetch-technical_data-default-system.yml @@ -8,7 +8,7 @@ http_interactions: string: '{"username":"","password":""}' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Content-Type: - application/json response: @@ -17,7 +17,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:51 GMT + - Tue, 06 Aug 2024 15:18:36 GMT content-type: - application/json transfer-encoding: @@ -37,13 +37,13 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '{"token":"","refreshToken":""}' - recorded_at: Mon, 29 Jan 2024 16:19:51 GMT + recorded_at: Tue, 06 Aug 2024 15:18:37 GMT - request: method: get uri: https://app-gateway.prod.senec.dev/v1/senec/systems @@ -52,7 +52,7 @@ http_interactions: string: '' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Authorization: - "" response: @@ -61,7 +61,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:51 GMT + - Tue, 06 Aug 2024 15:18:37 GMT content-type: - application/json transfer-encoding: @@ -81,13 +81,13 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '[{"id":"","steuereinheitnummer":"","gehaeusenummer":"","strasse":"","hausnummer":"","postleitzahl":"","ort":"","laendercode":"DE","zeitzone":"Europe/Berlin","wallboxIds":["1"],"systemType":"V3"}]' - recorded_at: Mon, 29 Jan 2024 16:19:51 GMT + recorded_at: Tue, 06 Aug 2024 15:18:37 GMT - request: method: get uri: https://app-gateway.prod.senec.dev/v1/senec/systems @@ -96,7 +96,7 @@ http_interactions: string: '' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Authorization: - "" response: @@ -105,7 +105,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:51 GMT + - Tue, 06 Aug 2024 15:18:37 GMT content-type: - application/json transfer-encoding: @@ -125,13 +125,13 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '[{"id":"","steuereinheitnummer":"","gehaeusenummer":"","strasse":"","hausnummer":"","postleitzahl":"","ort":"","laendercode":"DE","zeitzone":"Europe/Berlin","wallboxIds":["1"],"systemType":"V3"}]' - recorded_at: Mon, 29 Jan 2024 16:19:51 GMT + recorded_at: Tue, 06 Aug 2024 15:18:37 GMT - request: method: get uri: https://app-gateway.prod.senec.dev/v1/senec/systems//technical-data @@ -140,7 +140,7 @@ http_interactions: string: '' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Authorization: - "" response: @@ -149,7 +149,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:52 GMT + - Tue, 06 Aug 2024 15:18:38 GMT content-type: - application/json transfer-encoding: @@ -169,11 +169,11 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 - string: '{"systemOverview":{"systemId":"","productName":"","installationDate":""},"casing":{"serial":"","temperatureInCelsius":36.31189727783203},"mcu":{"mainControllerSerial":"","mainControllerState":{"name":"PV_UND_ENTLADEN","severity":"INFO"},"firmwareVersion":"826","guiVersion":966},"warranty":{"endDate":"","warrantyTermInMonths":""},"batteryModules":[{"ordinal":1,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":31.0,"maxTemperature":36.0,"lastContact":{"time":1706545034000,"severity":"INFO"},"flags":[]},{"ordinal":2,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":32.0,"maxTemperature":36.0,"lastContact":{"time":1706545034000,"severity":"INFO"},"flags":[]},{"ordinal":3,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":33.0,"maxTemperature":37.0,"lastContact":{"time":1706545034000,"severity":"INFO"},"flags":[]},{"ordinal":4,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":34.0,"maxTemperature":38.0,"lastContact":{"time":1706545034000,"severity":"INFO"},"flags":[]}],"batteryInverter":{"state":{"name":"RUN_GRID","severity":"INFO"},"vendor":"SENEC_INVERTER_V3_LV","firmware":{"firmwareVersion":null,"firmwareVersionHumanMachineInterface":"3.16.20","firmwareVersionPowerUnit":"4.3.10","firmwareVersionBidirectionalDcConverter":"5.4.6"},"temperatures":{"amb":42.0,"halfBridge1":null,"halfBridge2":null,"throttle":null,"max":47.0},"lastContact":{"time":1706545035000,"severity":"INFO"},"flags":[]},"batteryPack":{"numberOfBatteryModules":4,"technology":"LITHIUM_ION","maxCapacityInKwh":10.0,"maxChargingPowerInKw":2.5,"maxDischargingPowerInKw":3.75,"currentChargingLevelInPercent":83.83837890625,"currentVoltageInV":56.4109992980957,"currentCurrentInA":-15.0,"remainingCapacityInPercent":98.0},"installer":{"companyName":"","email":"","phoneNumber":"","address":{"street":"","houseNumber":"","postcode":"","city":"","countryCode":"DE","region":"","longitude":"","latitude":"","timezone":"Europe/Berlin"},"onlineMonitoringAllowed":true,"website":""},"slaveSystemInfoDtos":[]}' - recorded_at: Mon, 29 Jan 2024 16:19:52 GMT + string: '{"systemOverview":{"systemId":"","hid":null,"productName":"","installationDate":""},"casing":{"serial":"","temperatureInCelsius":34.81870651245117},"mcu":{"mainControllerSerial":"","mainControllerState":{"name":"LADEN","severity":"INFO"},"firmwareVersion":"826","guiVersion":966},"warranty":{"endDate":"","warrantyTermInMonths":""},"batteryModules":[{"ordinal":1,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":31.0,"maxTemperature":34.0,"lastContact":{"time":1722957435000,"timestamp":"2024-08-06T15:17:15Z","severity":"INFO"},"flags":[{"flag":"FULL","severity":"INFO"}]},{"ordinal":2,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":30.0,"maxTemperature":33.0,"lastContact":{"time":1722957435000,"timestamp":"2024-08-06T15:17:15Z","severity":"INFO"},"flags":[{"flag":"FULL","severity":"INFO"}]},{"ordinal":3,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":32.0,"maxTemperature":34.0,"lastContact":{"time":1722957435000,"timestamp":"2024-08-06T15:17:15Z","severity":"INFO"},"flags":[]},{"ordinal":4,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":32.0,"maxTemperature":36.0,"lastContact":{"time":1722957435000,"timestamp":"2024-08-06T15:17:15Z","severity":"INFO"},"flags":[{"flag":"FULL","severity":"INFO"}]}],"batteryInverter":{"state":{"name":null,"severity":null},"vendor":null,"firmware":{"firmwareVersion":null,"firmwareVersionHumanMachineInterface":null,"firmwareVersionPowerUnit":null,"firmwareVersionBidirectionalDcConverter":null},"temperatures":{"amb":null,"halfBridge1":null,"halfBridge2":null,"throttle":null,"max":null},"lastContact":{"time":61675682400000,"timestamp":"3924-06-04T22:00:00Z","severity":"ERROR"},"flags":[]},"batteryPack":{"numberOfBatteryModules":4,"technology":"LITHIUM_ION","maxCapacityInKwh":10.0,"maxChargingPowerInKw":2.5,"maxDischargingPowerInKw":3.75,"currentChargingLevelInPercent":98.9898910522461,"currentVoltageInV":57.44499969482422,"currentCurrentInA":11.199999809265137,"remainingCapacityInPercent":99.0},"installer":{"companyName":"","email":"","phoneNumber":"","address":{"street":"","houseNumber":"","postcode":"","city":"","countryCode":"DE","region":"","longitude":"","latitude":"","timezone":"Europe/Berlin"},"onlineMonitoringAllowed":true,"website":""},"slaveSystemInfoDtos":[]}' + recorded_at: Tue, 06 Aug 2024 15:18:38 GMT recorded_with: VCR 6.2.0 diff --git a/spec/support/cassettes/cloud/fetch-technical_data-invalid-system.yml b/spec/support/cassettes/cloud/fetch-technical_data-invalid-system.yml index 68c9b5d..508d776 100644 --- a/spec/support/cassettes/cloud/fetch-technical_data-invalid-system.yml +++ b/spec/support/cassettes/cloud/fetch-technical_data-invalid-system.yml @@ -8,7 +8,7 @@ http_interactions: string: '{"username":"","password":""}' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Content-Type: - application/json response: @@ -17,7 +17,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:53 GMT + - Tue, 06 Aug 2024 15:18:40 GMT content-type: - application/json transfer-encoding: @@ -37,13 +37,13 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '{"token":"","refreshToken":""}' - recorded_at: Mon, 29 Jan 2024 16:19:53 GMT + recorded_at: Tue, 06 Aug 2024 15:18:40 GMT - request: method: get uri: https://app-gateway.prod.senec.dev/v1/senec/systems/123456/technical-data @@ -52,7 +52,7 @@ http_interactions: string: '' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Authorization: - "" response: @@ -61,7 +61,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:53 GMT + - Tue, 06 Aug 2024 15:18:40 GMT content-type: - text/plain;charset=UTF-8 content-length: @@ -81,11 +81,11 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: 'HTTP 401 ' - recorded_at: Mon, 29 Jan 2024 16:19:53 GMT + recorded_at: Tue, 06 Aug 2024 15:18:40 GMT recorded_with: VCR 6.2.0 diff --git a/spec/support/cassettes/cloud/fetch-technical_data-specific-system.yml b/spec/support/cassettes/cloud/fetch-technical_data-specific-system.yml index bca4705..a1e5bbf 100644 --- a/spec/support/cassettes/cloud/fetch-technical_data-specific-system.yml +++ b/spec/support/cassettes/cloud/fetch-technical_data-specific-system.yml @@ -8,7 +8,7 @@ http_interactions: string: '{"username":"","password":""}' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Content-Type: - application/json response: @@ -17,7 +17,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:52 GMT + - Tue, 06 Aug 2024 15:18:38 GMT content-type: - application/json transfer-encoding: @@ -37,13 +37,13 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '{"token":"","refreshToken":""}' - recorded_at: Mon, 29 Jan 2024 16:19:52 GMT + recorded_at: Tue, 06 Aug 2024 15:18:38 GMT - request: method: get uri: https://app-gateway.prod.senec.dev/v1/senec/systems//technical-data @@ -52,7 +52,7 @@ http_interactions: string: '' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Authorization: - "" response: @@ -61,7 +61,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:53 GMT + - Tue, 06 Aug 2024 15:18:40 GMT content-type: - application/json transfer-encoding: @@ -81,11 +81,11 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 - string: '{"systemOverview":{"systemId":"","productName":"","installationDate":""},"casing":{"serial":"","temperatureInCelsius":36.31189727783203},"mcu":{"mainControllerSerial":"","mainControllerState":{"name":"PV_UND_ENTLADEN","severity":"INFO"},"firmwareVersion":"826","guiVersion":966},"warranty":{"endDate":"","warrantyTermInMonths":""},"batteryModules":[{"ordinal":1,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":31.0,"maxTemperature":36.0,"lastContact":{"time":1706545034000,"severity":"INFO"},"flags":[]},{"ordinal":2,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":32.0,"maxTemperature":36.0,"lastContact":{"time":1706545034000,"severity":"INFO"},"flags":[]},{"ordinal":3,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":33.0,"maxTemperature":37.0,"lastContact":{"time":1706545034000,"severity":"INFO"},"flags":[]},{"ordinal":4,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":34.0,"maxTemperature":38.0,"lastContact":{"time":1706545034000,"severity":"INFO"},"flags":[]}],"batteryInverter":{"state":{"name":"RUN_GRID","severity":"INFO"},"vendor":"SENEC_INVERTER_V3_LV","firmware":{"firmwareVersion":null,"firmwareVersionHumanMachineInterface":"3.16.20","firmwareVersionPowerUnit":"4.3.10","firmwareVersionBidirectionalDcConverter":"5.4.6"},"temperatures":{"amb":42.0,"halfBridge1":null,"halfBridge2":null,"throttle":null,"max":47.0},"lastContact":{"time":1706545035000,"severity":"INFO"},"flags":[]},"batteryPack":{"numberOfBatteryModules":4,"technology":"LITHIUM_ION","maxCapacityInKwh":10.0,"maxChargingPowerInKw":2.5,"maxDischargingPowerInKw":3.75,"currentChargingLevelInPercent":83.83837890625,"currentVoltageInV":56.4109992980957,"currentCurrentInA":-15.0,"remainingCapacityInPercent":98.0},"installer":{"companyName":"","email":"","phoneNumber":"","address":{"street":"","houseNumber":"","postcode":"","city":"","countryCode":"DE","region":"","longitude":"","latitude":"","timezone":"Europe/Berlin"},"onlineMonitoringAllowed":true,"website":""},"slaveSystemInfoDtos":[]}' - recorded_at: Mon, 29 Jan 2024 16:19:53 GMT + string: '{"systemOverview":{"systemId":"","hid":null,"productName":"","installationDate":""},"casing":{"serial":"","temperatureInCelsius":34.81870651245117},"mcu":{"mainControllerSerial":"","mainControllerState":{"name":"LADEN","severity":"INFO"},"firmwareVersion":"826","guiVersion":966},"warranty":{"endDate":"","warrantyTermInMonths":""},"batteryModules":[{"ordinal":1,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":31.0,"maxTemperature":34.0,"lastContact":{"time":1722957435000,"timestamp":"2024-08-06T15:17:15Z","severity":"INFO"},"flags":[{"flag":"FULL","severity":"INFO"}]},{"ordinal":2,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":30.0,"maxTemperature":33.0,"lastContact":{"time":1722957435000,"timestamp":"2024-08-06T15:17:15Z","severity":"INFO"},"flags":[{"flag":"FULL","severity":"INFO"}]},{"ordinal":3,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":32.0,"maxTemperature":34.0,"lastContact":{"time":1722957435000,"timestamp":"2024-08-06T15:17:15Z","severity":"INFO"},"flags":[]},{"ordinal":4,"state":{"state":"OK","severity":"INFO"},"vendor":"BMZ","serialNumber":"","firmwareVersion":"1.96.37","mainboardHardwareVersion":"1001","mainboardExtensionHardwareVersion":"1","minTemperature":32.0,"maxTemperature":36.0,"lastContact":{"time":1722957435000,"timestamp":"2024-08-06T15:17:15Z","severity":"INFO"},"flags":[{"flag":"FULL","severity":"INFO"}]}],"batteryInverter":{"state":{"name":null,"severity":null},"vendor":null,"firmware":{"firmwareVersion":null,"firmwareVersionHumanMachineInterface":null,"firmwareVersionPowerUnit":null,"firmwareVersionBidirectionalDcConverter":null},"temperatures":{"amb":null,"halfBridge1":null,"halfBridge2":null,"throttle":null,"max":null},"lastContact":{"time":61675682400000,"timestamp":"3924-06-04T22:00:00Z","severity":"ERROR"},"flags":[]},"batteryPack":{"numberOfBatteryModules":4,"technology":"LITHIUM_ION","maxCapacityInKwh":10.0,"maxChargingPowerInKw":2.5,"maxDischargingPowerInKw":3.75,"currentChargingLevelInPercent":98.9898910522461,"currentVoltageInV":57.44499969482422,"currentCurrentInA":11.199999809265137,"remainingCapacityInPercent":99.0},"installer":{"companyName":"","email":"","phoneNumber":"","address":{"street":"","houseNumber":"","postcode":"","city":"","countryCode":"DE","region":"","longitude":"","latitude":"","timezone":"Europe/Berlin"},"onlineMonitoringAllowed":true,"website":""},"slaveSystemInfoDtos":[]}' + recorded_at: Tue, 06 Aug 2024 15:18:40 GMT recorded_with: VCR 6.2.0 diff --git a/spec/support/cassettes/cloud/login-by-invalid-token.yml b/spec/support/cassettes/cloud/login-by-invalid-token.yml index 23a0469..31b488f 100644 --- a/spec/support/cassettes/cloud/login-by-invalid-token.yml +++ b/spec/support/cassettes/cloud/login-by-invalid-token.yml @@ -8,16 +8,16 @@ http_interactions: string: '' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Authorization: - "" response: status: - code: 400 + code: 401 message: '' headers: date: - - Mon, 29 Jan 2024 17:40:44 GMT + - Tue, 06 Aug 2024 15:18:26 GMT content-type: - text/plain;charset=UTF-8 content-length: @@ -37,11 +37,11 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 - string: 'HTTP 500 ' - recorded_at: Mon, 29 Jan 2024 17:40:44 GMT + string: 'HTTP 403 ' + recorded_at: Tue, 06 Aug 2024 15:18:26 GMT recorded_with: VCR 6.2.0 diff --git a/spec/support/cassettes/cloud/login-by-valid-token.yml b/spec/support/cassettes/cloud/login-by-valid-token.yml index 8adf74e..d1dd455 100644 --- a/spec/support/cassettes/cloud/login-by-valid-token.yml +++ b/spec/support/cassettes/cloud/login-by-valid-token.yml @@ -8,7 +8,7 @@ http_interactions: string: '{"username":"","password":""}' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Content-Type: - application/json response: @@ -17,7 +17,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 17:40:43 GMT + - Tue, 06 Aug 2024 15:18:25 GMT content-type: - application/json transfer-encoding: @@ -37,13 +37,13 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '{"token":"","refreshToken":""}' - recorded_at: Mon, 29 Jan 2024 17:40:43 GMT + recorded_at: Tue, 06 Aug 2024 15:18:25 GMT - request: method: get uri: https://app-gateway.prod.senec.dev/v1/senec/systems @@ -52,7 +52,7 @@ http_interactions: string: '' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Authorization: - "" response: @@ -61,7 +61,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 17:40:44 GMT + - Tue, 06 Aug 2024 15:18:26 GMT content-type: - application/json transfer-encoding: @@ -81,11 +81,11 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '[{"id":"","steuereinheitnummer":"","gehaeusenummer":"","strasse":"","hausnummer":"","postleitzahl":"","ort":"","laendercode":"DE","zeitzone":"Europe/Berlin","wallboxIds":["1"],"systemType":"V3"}]' - recorded_at: Mon, 29 Jan 2024 17:40:44 GMT + recorded_at: Tue, 06 Aug 2024 15:18:26 GMT recorded_with: VCR 6.2.0 diff --git a/spec/support/cassettes/cloud/login-invalid.yml b/spec/support/cassettes/cloud/login-invalid.yml index 6ec197b..c4d202c 100644 --- a/spec/support/cassettes/cloud/login-invalid.yml +++ b/spec/support/cassettes/cloud/login-invalid.yml @@ -8,7 +8,7 @@ http_interactions: string: '{"username":"","password":"wrongpassword"}' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Content-Type: - application/json response: @@ -17,7 +17,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:47 GMT + - Tue, 06 Aug 2024 15:19:49 GMT content-type: - text/plain;charset=UTF-8 content-length: @@ -37,11 +37,11 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 - string: 'HTTP 500 ' - recorded_at: Mon, 29 Jan 2024 16:19:47 GMT + string: 'HTTP 400 ' + recorded_at: Tue, 06 Aug 2024 15:19:49 GMT recorded_with: VCR 6.2.0 diff --git a/spec/support/cassettes/cloud/login-valid.yml b/spec/support/cassettes/cloud/login-valid.yml index 8b97489..11f8c4b 100644 --- a/spec/support/cassettes/cloud/login-valid.yml +++ b/spec/support/cassettes/cloud/login-valid.yml @@ -8,7 +8,7 @@ http_interactions: string: '{"username":"","password":""}' headers: User-Agent: - - Faraday v2.9.0 + - Faraday v2.10.0 Content-Type: - application/json response: @@ -17,7 +17,7 @@ http_interactions: message: '' headers: date: - - Mon, 29 Jan 2024 16:19:47 GMT + - Tue, 06 Aug 2024 15:18:24 GMT content-type: - application/json transfer-encoding: @@ -37,11 +37,11 @@ http_interactions: expires: - '0' strict-transport-security: - - max-age=15724800; includeSubDomains + - max-age=31536000; includeSubDomains x-frame-options: - DENY body: encoding: UTF-8 string: '{"token":"","refreshToken":""}' - recorded_at: Mon, 29 Jan 2024 16:19:46 GMT + recorded_at: Tue, 06 Aug 2024 15:18:25 GMT recorded_with: VCR 6.2.0