From 57f018d48777956262c6f830e9eb8ff7c522d44e Mon Sep 17 00:00:00 2001 From: Micho32 <109521902+Micho32@users.noreply.github.com> Date: Tue, 30 May 2023 13:41:44 +0200 Subject: [PATCH] Update main.js Switching to New Endpoint for Viessmann API Events History. See https://developer.viessmann.com/start/news/Switching-to-New-Endpoint-for-Viessmann-API-Events-History.html --- main.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index 5f41053..a8b8a7d 100644 --- a/main.js +++ b/main.js @@ -371,10 +371,9 @@ class Viessmannapi extends utils.Adapter { await this.requestClient({ method: "get", url: - "https://api.viessmann.com/iot/v1/events-history/events?gatewaySerial=" + - gatewaySerial + - "&installationId=" + - installationId, + "https://api.viessmann.com/iot/v2/events-history/installations/" + + installationId + + "/events", headers: headers, }) .then((res) => {