diff --git a/README.md b/README.md index 97d804e..1aa3ebb 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,6 @@ Adapter for Viessmannapi **Man benötigt eine ClientID von der Viessmann API** - https://app.developer.viessmann.com besuchen und eine Client ID mit diesen Optionen erstellen: Name: iobroker @@ -35,8 +34,6 @@ viessmannapi.0.XXXXX.0.features.heating.sensors.temperature.outside.properties.v **Remote Befehle sind möglich unter viessmannapi.0.XXXXX.0.features.heating.dhw.temperature.main.commands.setTargetTemperature.setValue** - - **Kompatibilitätsliste**: **Regelungen für Wand- oder Kompaktgeräte** @@ -61,7 +58,6 @@ Vitoligno 300-C mit Ecotronic (ab Softwarestand 2.12) Vitoligno 300-P mit Vitotronic 200 FO1 Vitoligno 300-S mit Ecotronic (ab Softwarestand 2.04) - **Liste aller Datenpunkte: https://documentation.viessmann.com/static/iot/data-points** @@ -69,9 +65,10 @@ https://documentation.viessmann.com/static/iot/data-points** https://www.viessmann-community.com/t5/The-Viessmann-API/bd-p/dev-viessmann-api** Beispiele: + ``` -Vorlauftemperatur: -viessmannapi.0.XXXX.features.heating.circuits.0.sensors.temperature.supply.properties.value.value, +Vorlauftemperatur: +viessmannapi.0.XXXX.features.heating.circuits.0.sensors.temperature.supply.properties.value.value, Anzahl Zündungen: viessmannapi.0.XXXXX.features.heating.burners.0.statistics.properties.starts.value @@ -95,7 +92,7 @@ Temperatur Außensensor: viessmannapi.0.xxx.0.features.heating.sensors.temperat Statistik Kompressor Starts: viessmannapi.0.xxx.0.features.heating.compressors.0.statistics.properties.starts.value Statistik Kompressor Stunden: viessmannapi.0.xxx.0.features.heating.compressors.0.statistics.properties.hours.value Temperatursensoren der Heizkreise: viessmannapi.0.xxxxxxx.0.features.heating.circuits.0.sensors.temperature.supply.properties.value.value - + Primärkreis Vorlauftemperatur: viessmann.0.xxx.0.features.heating.primaryCircuit.sensors.temperature.supply.properties.value.value Sekundärkreis Vorlauftemperatur: viessmann.0.xxx.0.features.heating.secondaryCircuit.sensors.temperature.supply.properties.value.value Sekundärkreis Rücklauftemperatur: viessmann.0.xxx.0.features.heating.secondaryCircuit.sensors.temperature.return.properties.value.value @@ -104,25 +101,27 @@ Sekundärkreis Rücklauftemperatur: viessmann.0.xxx.0.features.heating.secondary ``` **Beispiel zum setzen eines Schedule:** + ``` var standard = '{"mon":[{"start":"00:00","end":"24:00","mode":"standard","position":0}],"tue":[{"start":"00:00","end":"24:00","mode":"standard","position":0}],\ "wed":[{"start":"00:00","end":"24:00","mode":"standard","position":0}],"thu":[{"start":"00:00","end":"24:00","mode":"standard","position":0}],\ "fri":[{"start":"00:00","end":"24:00","mode":"standard","position":0}],"sat":[{"start":"00:00","end":"24:00","mode":"standard","position":0}],\ "sun":[{"start":"00:00","end":"24:00","mode":"standard","position":0}]}' - -setState("viessmannapi.0.xxxxxxx.0.features.ventilation.schedule.commands.setSchedule.setValue", JSON.parse(standard)); + +setState("viessmannapi.0.xxxxxxx.0.features.ventilation.schedule.commands.setSchedule.setValue", JSON.parse(standard)); ``` + ## Changelog -### 2.0.1 +### 2.3.0 -- (TA2k) initial release for new API. Complete new Data objects +- (TA2k) Fix Login flow ## License MIT License -Copyright (c) 2022 TA2k +Copyright (c) 2023 TA2k Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/io-package.json b/io-package.json index ba66e41..a168abb 100644 --- a/io-package.json +++ b/io-package.json @@ -1,139 +1,143 @@ { - "common": { - "name": "viessmannapi", - "version": "2.2.1", - "news": { - "2.2.1": { - "en": "fix device role detection and id parsing", - "de": "Rolen Erkennung und ID Parsing verbessert" - }, - "2.1.1": { - "en": "update to new api endpoint", - "de": "Update auf neue API Endpunkte" - }, - "2.0.9": { - "en": "add setValue for curve values" - }, - "2.0.8": { - "en": "add error 500 description" - }, - "2.0.7": { - "en": "Bugfixes" - }, - "2.0.6": { - "en": "Save schedules values as json", - "de": "Schedule Werte werden direkt als JSON gespeichert" - }, - "2.0.4": { - "en": "Fix virtual device detection", - "de": "Virtuelle Geräteerkennung für Rate Limit verbessert" - }, - "2.0.2": { - "en": "Add retry on failed setValues", - "de": "Wiederholung eingebaut falls setValue fehlschlägt." - }, - "2.0.1": { - "en": "initial release for new API. States are changed.", - "de": "Erstveröffentlichung neue API. Datenpunkte haben sich geändert.", - "ru": "Начальная версия", - "pt": "lançamento inicial", - "nl": "Eerste uitgave", - "fr": "Première version", - "it": "Versione iniziale", - "es": "Versión inicial", - "pl": "Pierwsze wydanie", - "zh-cn": "首次出版" - } - }, - "title": "Viessmannapi", - "titleLang": { - "en": "Viessmannapi", - "de": "Viessmannapi", - "ru": "Viessmannapi", - "pt": "Viessmannapi", - "nl": "Viessmannapi", - "fr": "Viessmannapi", - "it": "Viessmannapi", - "es": "Viessmannapi", - "pl": "Viessmannapi", - "zh-cn": "Viessmannapi" - }, - "desc": { - "en": "Adapter for Viessmannapi Devices with Vitoconnect Box", - "de": "Adapter für Viessmannapi Anlagen mit Vitoconnect Box", - "ru": "Адаптер для устройств Viessmannapi с Vitoconnect Box", - "pt": "Adaptador para dispositivos Viessmannapi com caixa Vitoconnect", - "nl": "Adapter voor Viessmannapi-apparaten met Vitoconnect Box", - "fr": "Adaptateur pour appareils Viessmannapi avec Vitoconnect Box", - "it": "Adattatore per dispositivi Viessmannapi con Vitoconnect Box", - "es": "Adaptador para dispositivos Viessmannapi con Vitoconnect Box", - "pl": "Adapter do urządzeń Viessmannapi z Vitoconnect Box", - "zh-cn": "带有 Vitoconnect 盒的 Viessmannapi 设备适配器" - }, - "authors": ["TA2k "], - "keywords": ["Viessmannapi"], - "license": "MIT", - "platform": "Javascript/Node.js", - "main": "main.js", - "icon": "viessmannapi.png", - "enabled": true, - "extIcon": "https://raw.githubusercontent.com/TA2k/ioBroker.viessmannapi/master/admin/viessmannapi.png", - "readme": "https://github.com/TA2k/ioBroker.viessmannapi/blob/master/README.md", - "loglevel": "info", - "mode": "daemon", - "type": "climate-control", - "compact": true, - "connectionType": "cloud", - "dataSource": "poll", - "materialize": true, - "plugins": { - "sentry": { - "dsn": "https://d5990d8661fb46988e641bca0e3d4e38@sentry.iobroker.net/147" - } - }, - "dependencies": [ - { - "js-controller": ">=3.0.0" - } - ], - "globalDependencies": [ - { - "admin": ">=4.0.9" - } - ] + "common": { + "name": "viessmannapi", + "version": "2.3.0", + "news": { + "2.3.0": { + "en": "Fix Login flow", + "de": "Login Flow gefixt" + }, + "2.2.1": { + "en": "fix device role detection and id parsing", + "de": "Rolen Erkennung und ID Parsing verbessert" + }, + "2.1.1": { + "en": "update to new api endpoint", + "de": "Update auf neue API Endpunkte" + }, + "2.0.9": { + "en": "add setValue for curve values" + }, + "2.0.8": { + "en": "add error 500 description" + }, + "2.0.7": { + "en": "Bugfixes" + }, + "2.0.6": { + "en": "Save schedules values as json", + "de": "Schedule Werte werden direkt als JSON gespeichert" + }, + "2.0.4": { + "en": "Fix virtual device detection", + "de": "Virtuelle Geräteerkennung für Rate Limit verbessert" + }, + "2.0.2": { + "en": "Add retry on failed setValues", + "de": "Wiederholung eingebaut falls setValue fehlschlägt." + }, + "2.0.1": { + "en": "initial release for new API. States are changed.", + "de": "Erstveröffentlichung neue API. Datenpunkte haben sich geändert.", + "ru": "Начальная версия", + "pt": "lançamento inicial", + "nl": "Eerste uitgave", + "fr": "Première version", + "it": "Versione iniziale", + "es": "Versión inicial", + "pl": "Pierwsze wydanie", + "zh-cn": "首次出版" + } }, - "encryptedNative": ["client_id", "password"], - "protectedNative": ["client_id", "password"], - "native": { - "username": "", - "password": "", - "client_id": "", - "interval": 5, - "eventInterval": 300, - "gatewayIndex": 1 + "title": "Viessmannapi", + "titleLang": { + "en": "Viessmannapi", + "de": "Viessmannapi", + "ru": "Viessmannapi", + "pt": "Viessmannapi", + "nl": "Viessmannapi", + "fr": "Viessmannapi", + "it": "Viessmannapi", + "es": "Viessmannapi", + "pl": "Viessmannapi", + "zh-cn": "Viessmannapi" }, - "objects": [], - "instanceObjects": [ - { - "_id": "info", - "type": "channel", - "common": { - "name": "Information" - }, - "native": {} - }, - { - "_id": "info.connection", - "type": "state", - "common": { - "role": "indicator.connected", - "name": "Device or service connected", - "type": "boolean", - "read": true, - "write": false, - "def": false - }, - "native": {} - } + "desc": { + "en": "Adapter for Viessmannapi Devices with Vitoconnect Box", + "de": "Adapter für Viessmannapi Anlagen mit Vitoconnect Box", + "ru": "Адаптер для устройств Viessmannapi с Vitoconnect Box", + "pt": "Adaptador para dispositivos Viessmannapi com caixa Vitoconnect", + "nl": "Adapter voor Viessmannapi-apparaten met Vitoconnect Box", + "fr": "Adaptateur pour appareils Viessmannapi avec Vitoconnect Box", + "it": "Adattatore per dispositivi Viessmannapi con Vitoconnect Box", + "es": "Adaptador para dispositivos Viessmannapi con Vitoconnect Box", + "pl": "Adapter do urządzeń Viessmannapi z Vitoconnect Box", + "zh-cn": "带有 Vitoconnect 盒的 Viessmannapi 设备适配器" + }, + "authors": ["TA2k "], + "keywords": ["Viessmannapi"], + "license": "MIT", + "platform": "Javascript/Node.js", + "main": "main.js", + "icon": "viessmannapi.png", + "enabled": true, + "extIcon": "https://raw.githubusercontent.com/TA2k/ioBroker.viessmannapi/master/admin/viessmannapi.png", + "readme": "https://github.com/TA2k/ioBroker.viessmannapi/blob/master/README.md", + "loglevel": "info", + "mode": "daemon", + "type": "climate-control", + "compact": true, + "connectionType": "cloud", + "dataSource": "poll", + "materialize": true, + "plugins": { + "sentry": { + "dsn": "https://d5990d8661fb46988e641bca0e3d4e38@sentry.iobroker.net/147" + } + }, + "dependencies": [ + { + "js-controller": ">=3.0.0" + } + ], + "globalDependencies": [ + { + "admin": ">=4.0.9" + } ] + }, + "encryptedNative": ["client_id", "password"], + "protectedNative": ["client_id", "password"], + "native": { + "username": "", + "password": "", + "client_id": "", + "interval": 5, + "eventInterval": 300, + "gatewayIndex": 1 + }, + "objects": [], + "instanceObjects": [ + { + "_id": "info", + "type": "channel", + "common": { + "name": "Information" + }, + "native": {} + }, + { + "_id": "info.connection", + "type": "state", + "common": { + "role": "indicator.connected", + "name": "Device or service connected", + "type": "boolean", + "read": true, + "write": false, + "def": false + }, + "native": {} + } + ] } diff --git a/package-lock.json b/package-lock.json index e30d63c..77a1963 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "iobroker.viessmannapi", - "version": "2.2.1", + "version": "2.3.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "iobroker.viessmannapi", - "version": "2.2.1", + "version": "2.3.0", "license": "MIT", "dependencies": { "@iobroker/adapter-core": "^3.0.4", "axios": "^1.5.1", "json-bigint": "^1.0.0", "qs": "^6.11.2", - "retry-axios": "^3.1.0" + "retry-axios": "^2.6.0" }, "devDependencies": { "@iobroker/testing": "^4.1.0", @@ -2031,11 +2031,11 @@ } }, "node_modules/retry-axios": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/retry-axios/-/retry-axios-3.1.0.tgz", - "integrity": "sha512-OQzlG/II3dXP6xocFk03zGgZC3GV/bVCYbMASY2SNDQWjbHktr6vws2N/HtEO+jKGMWas7BEBu3F5zwdf85ivw==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/retry-axios/-/retry-axios-2.6.0.tgz", + "integrity": "sha512-pOLi+Gdll3JekwuFjXO3fTq+L9lzMQGcSq7M5gIjExcl3Gu1hd4XXuf5o3+LuSBsaULQH7DiNbsqPd1chVpQGQ==", "engines": { - "node": ">=14" + "node": ">=10.7.0" }, "peerDependencies": { "axios": "*" @@ -3938,9 +3938,9 @@ "dev": true }, "retry-axios": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/retry-axios/-/retry-axios-3.1.0.tgz", - "integrity": "sha512-OQzlG/II3dXP6xocFk03zGgZC3GV/bVCYbMASY2SNDQWjbHktr6vws2N/HtEO+jKGMWas7BEBu3F5zwdf85ivw==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/retry-axios/-/retry-axios-2.6.0.tgz", + "integrity": "sha512-pOLi+Gdll3JekwuFjXO3fTq+L9lzMQGcSq7M5gIjExcl3Gu1hd4XXuf5o3+LuSBsaULQH7DiNbsqPd1chVpQGQ==", "requires": {} }, "reusify": { diff --git a/package.json b/package.json index d3426e6..d24898a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.viessmannapi", - "version": "2.2.1", + "version": "2.3.0", "description": "Adapter for Viessmannapi", "author": { "name": "TA2k", @@ -20,7 +20,7 @@ "axios": "^1.5.1", "json-bigint": "^1.0.0", "qs": "^6.11.2", - "retry-axios": "^3.1.0" + "retry-axios": "^2.6.0" }, "devDependencies": { "@iobroker/testing": "^4.1.0",