Skip to content

Commit

Permalink
fix retry package
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Oct 23, 2023
1 parent edbcf4d commit df590ec
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 158 deletions.
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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**
Expand All @@ -61,17 +58,17 @@ 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**

**Frage zu fehlende Datenpunkte bitte direkt an Viessmann
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
Expand All @@ -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
Expand All @@ -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 <[email protected]>
Copyright (c) 2023 TA2k <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
272 changes: 138 additions & 134 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"],
"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://[email protected]/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 <[email protected]>"],
"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://[email protected]/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": {}
}
]
}
Loading

0 comments on commit df590ec

Please sign in to comment.