Skip to content

Commit

Permalink
fixed unhandled promise rejection (#341)
Browse files Browse the repository at this point in the history
manage min/max temperature for heating (5-25 celsius) and hotwater (30-80 celsius) to avoid API crashes (#341)
  • Loading branch information
HGlab01 authored Aug 23, 2021
1 parent a61dcc4 commit e1c5719
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 142 deletions.
92 changes: 18 additions & 74 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,31 @@ Upgrade from 0.2.x to v0.3.x includes a technical re-factioring with breaking ch
In general vaules are now NULL if API sends NULL or just nothing. In v0.2.x sometimes the old value was kept, sometimes replaced with 0 sometimes NULL was used.
**Happy to add additonal major changes based on your feedback!**

## Things you can steer
| State | Description |
| ----- | ----------- |
| tado.[x].[yyyyyy].Rooms.[z].setting.power | Turn device on/off |
| tado.[x].[yyyyyy].Rooms.[z].setting.temperature.celsius | Define temperature |
| tado.[x].[yyyyyy].Rooms.[z].overlayClearZone | Switch to automatic mode |
| tado.[x].[yyyyyy].Rooms.[z].overlay.termination.typeSkillBasedApp | Set time table mode |
| tado.[x].[yyyyyy].Rooms.[z].overlay.termination.durationInSeconds | Set how long the time table mode shall apply |
| tado.[x].[yyyyyy].Rooms.[z].devices.[RUaaaaaaaaaa].offset.offsetCelsius | Temperature offset |
| tado.[x].[yyyyyy].Rooms.[z].timeTables.tt_id | Select active time table |
| fanspeed | Fanspeed (only AC devices) |
| mode | AC mode (only AC devices |

**Feel free to provide concrete AC device pathes for the last two lines if you have an AC device!**

## Changelog
<!--
Placeholder for the next version (at the beginning of the line):
### __WORK IN PROGRESS__
-->

### 0.3.7-1 (2021-08-18)
* (HGlab01) ActiveTimeTable can be set
### 0.3.7-2 (2021-08-23)
* (HGlab01) ActiveTimeTable can be set (#337)
* (HGlab01) Improve logs and change code structure a little bit
* (HGlab01) manage min/max temperature for heating (5-25 celsius) and hotwater (30-80 celsius) to avoid API crashes (#341)

### 0.3.6 (2021-08-16)
* (HGlab01) support attribute 'orientation' (Sentry: IOBROKER-TADO-35)
Expand Down Expand Up @@ -121,78 +137,6 @@ In general vaules are now NULL if API sends NULL or just nothing. In v0.2.x some
* (HGlab01) Bugfix : Add legacyHeatingInstallationsEnabled to DoHome
* (HGlab01) Bugfix : Fix unhandled information found in DoReadDevices

### 0.1.9
* (DutchmanNL) Implement Sentry
* (DutchmanNL) Bugfix : Better error handling
* (DutchmanNL) Bugfix : state creation with JS-controller 3.x

### 0.1.8
* (DutchmanNL) Correct countdown of "remainingtimeinseconds" implemented.

### 0.1.7
* (DutchmanNL) Fix Unhandable information found in DoZoneState : "openWindowDetected"

### 0.1.6
* (DutchmanNL) fix geoTrackingEnabled & atHome
* (DutchmanNL) fix error preventFromSubscribing

### 0.1.5
* (DutchmanNL) Fix switching on/off heating & related auto mode
* (DutchmanNL) Fix switching some incorrect logging

### 0.1.4 Fixed Clear Overlay, Open Window & log error's
* (DutchmanNL) Fixed Clear Overlay to Boolean
* (DutchmanNL) Fixed datapoints for OpenWindow
* (DutchmanNL) Fixed setting overlay correctly for manuel temperature changes (use previous setting instead of always manual)
* (DutchmanNL) Fixed error message Cannot read property 'percentage' of undefined"

### 0.1.3 Several fixes for reported error's
* (DutchmanNL) boilerId / onDemandLogRetrievalEnabled / openWindowDetected / onDemandLogRetrievalEnabled
* (DutchmanNL) Open Window detection implemented, only by device not by room

### 0.1.2 Bug fix
* (DutchmanNL) Room temperature setting (overlay) fixed

### 0.1.1 Write API information to states
* (DutchmanNL) Write API information to states
* (DutchmanNL) Keep temperature settings (do not reset to NULL)

### 0.1.0 Release public Beta & Implement heating on / off
* (DutchmanNL) Release public Beta
* (DutchmanNL) Implement heating on / off

### 0.0.9 Implemented room temperature settings
* (DutchmanNL) Capability to change room temperature
* (DutchmanNL) small code fixes

### 0.0.8 Implement overlay clear states & control
* (DutchmanNL) implement capability to reset running polling timer
* (DutchmanNL) implement clear overlay
* (DutchmanNL) execute polling after overlay clear
* (DutchmanNL) reset states to NULL when polling time * 2 no data is received

### 0.0.7 Improve overlay states
* (DutchmanNL) improve overlay states (https://github.com/DrozmotiX/ioBroker.tado/issues/1)

### 0.0.6 Implemented away status
* (DutchmanNL) Implemented away status
* (DutchmanNL) fixed issue in state reading
* (DutchmanNL) updated some attributes

### 0.0.5 Public beta, released to latest repository
* (DutchmanNL) add library to handle propper state and attribute creation
* (DutchmanNL) beta release to latest repository
* (DutchmanNL) released on NPM (installable by admin)

### 0.0.3
* (DutchmanNL) implement all zone states & data refresh intervall

### 0.0.2
* (DutchmanNL) Alpha, read zones, their devices and related states

### 0.0.1
* (DutchmanNL) Alpha, read account and mobile device information

## License
MIT License

Expand Down
26 changes: 13 additions & 13 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
"common": {
"name": "tado",
"version": "0.3.7-1",
"version": "0.3.7-2",
"news": {
"0.3.7-2": {
"en": "ActiveTimeTable can be set (#337)\nImprove logs and change code structure a little bit\nmanage min/max temperature for heating (5-25 celsius) and hotwater (30-80 celsius) to avoid API crashes (#341)",
"de": "ActiveTimeTable kann eingestellt werden (#337)\nVerbessern Sie die Protokolle und ändern Sie die Codestruktur ein wenig\nVerwalten Sie die min./max. Temperatur für Heizung (5-25 Grad Celsius) und Warmwasser (30-80 Grad Celsius), um API-Abstürze zu vermeiden (#341)",
"ru": "ActiveTimeTable может быть установлен (# 337)\nУлучшить логи и немного изменить структуру кода\nуправлять минимальной / максимальной температурой для отопления (5-25 по Цельсию) и горячей воды (30-80 по Цельсию), чтобы избежать сбоев API (# 341)",
"pt": "ActiveTimeTable pode ser definido (# 337)\nMelhore os registros e altere um pouco a estrutura do código\ngerenciar a temperatura mín. / máx. para aquecimento (5-25 celsius) e água quente (30-80 celsius) para evitar falhas de API (# 341)",
"nl": "ActiveTimeTable kan worden ingesteld (#337)\nVerbeter logs en verander de codestructuur een beetje\nbeheer min/max temperatuur voor verwarming (5-25 Celsius) en warm water (30-80 Celsius) om API-crashes te voorkomen (#341)",
"fr": "ActiveTimeTable peut être défini (#337)\nAméliorer les journaux et modifier un peu la structure du code\ngérer la température min/max pour le chauffage (5-25 celsius) et l'eau chaude (30-80 celsius) pour éviter les plantages de l'API (#341)",
"it": "ActiveTimeTable può essere impostato (#337)\nMigliora i log e cambia un po' la struttura del codice\ngestire la temperatura min/max per il riscaldamento (5-25 gradi centigradi) e l'acqua calda (30-80 gradi centigradi) per evitare crash API (#341)",
"es": "ActiveTimeTable se puede configurar (# 337)\nMejore los registros y cambie un poco la estructura del código\nadministrar la temperatura mínima / máxima para calefacción (5-25 grados Celsius) y agua caliente (30-80 grados Celsius) para evitar fallas de API (# 341)",
"pl": "Można ustawić ActiveTimeTable (#337)\nPopraw logi i zmień trochę strukturę kodu\nzarządzaj minimalną/maksymalną temperaturą ogrzewania (5-25 stopni Celsjusza) i ciepłej wody (30-80 stopni Celsjusza), aby uniknąć awarii API (#341)",
"zh-cn": "可以设置 ActiveTimeTable (#337)\n改进日志并稍微改变代码结构\n管理加热 (5-25 摄氏度) 和热水 (30-80 摄氏度) 的最低/最高温度以避免 API 崩溃 (#341)"
},
"0.3.7-1": {
"en": "ActiveTimeTable can be set\nImprove logs and change code structure a little bit",
"de": "ActiveTimeTable kann eingestellt werden\nVerbessern Sie die Protokolle und ändern Sie die Codestruktur ein wenig",
Expand Down Expand Up @@ -230,18 +242,6 @@
"es": "¡Refactorización técnica de la gestión estatal! ¡CAMBIOS IMPORTANTES! (véase más arriba)\nimplementar la funcionalidad de compensación\nEstablecer el tiempo de actualización mínimo en 30 segundos\nPase iobroker-jsonexplorer a v0.1.0",
"pl": "Refaktoryzacja techniczna zarządzania państwem !PRZEŁOMOWE ZMIANY! (patrz wyżej)\nwdrożyć funkcjonalność offsetową\nUstaw minimalny czas odświeżania na 30 sekund\nPodnieś iobroker-jsonexplorer do wersji 0.1.0",
"zh-cn": "状态管理的技术重构!突破性的变化! (看上面)\n实现偏移功能\n将最小刷新时间设置为 30 秒\n将 iobroker-jsonexplorer 升级到 v0.1.0"
},
"0.3.0-4": {
"en": "Technical re-factoring of state management !BREAKING CHANGES! (see above)\nimplement offset functionality\nSet minimum refresh time to 30 seconds\nBump iobroker-jsonexplorer to v0.1.0",
"de": "Technisches Refactoring des Staatsmanagements !BRECHENDE VERÄNDERUNGEN! (siehe oben)\nOffset-Funktionalität implementieren\nStellen Sie die Mindestaktualisierungszeit auf 30 Sekunden ein\nUpgrade von iobroker-jsonexplorer auf v0.1.0",
"ru": "Технический рефакторинг госуправления! ГРОМКИЕ ИЗМЕНЕНИЯ! (см. выше)\nреализовать функциональность смещения\nУстановите минимальное время обновления на 30 секунд.\nПоднимите iobroker-jsonexplorer до версии v0.1.0",
"pt": "Refatoração técnica da gestão do estado! QUEBRANDO MUDANÇAS! (Veja acima)\nimplementar funcionalidade de deslocamento\nDefina o tempo mínimo de atualização para 30 segundos\nBump iobroker-jsonexplorer para v0.1.0",
"nl": "Technische re-factoring van het staatsbeheer !BREKENDE VERANDERINGEN! (zie hierboven)\noffset-functionaliteit implementeren\nStel de minimale verversingstijd in op 30 seconden\nBump iobroker-jsonexplorer naar v0.1.0",
"fr": "Refonte technique de la gestion de l'état ! CHANGEMENTS BRUTS ! (voir au dessus)\nimplémenter la fonctionnalité de décalage\nDéfinir le temps de rafraîchissement minimum à 30 secondes\nTransférez iobroker-jsonexplorer vers la v0.1.0",
"it": "Re-factoring tecnico della gestione statale !CAMBIAMENTI ROTANTI! (vedi sopra)\nimplementare la funzionalità di offset\nImposta il tempo di aggiornamento minimo su 30 secondi\nPassa iobroker-jsonexplorer alla v0.1.0",
"es": "¡Refactorización técnica de la gestión estatal! ¡CAMBIOS IMPORTANTES! (véase más arriba)\nimplementar la funcionalidad de compensación\nEstablecer el tiempo de actualización mínimo en 30 segundos\nPase iobroker-jsonexplorer a v0.1.0",
"pl": "Refaktoryzacja techniczna zarządzania państwem !PRZEŁOMOWE ZMIANY! (patrz wyżej)\nwdrożyć funkcjonalność offsetową\nUstaw minimalny czas odświeżania na 30 sekund\nPodnieś iobroker-jsonexplorer do wersji 0.1.0",
"zh-cn": "状态管理的技术重构!突破性的变化! (看上面)\n实现偏移功能\n将最小刷新时间设置为 30 秒\n将 iobroker-jsonexplorer 升级到 v0.1.0"
}
},
"title": "Tado",
Expand Down
Loading

0 comments on commit e1c5719

Please sign in to comment.