DrozmotiX / ioBroker.tado

Tado cloud connector to control Tado devices
MIT License
24 stars 13 forks source link

Warmwasser lässt sich nicht einschalten / Hot Water cannot be switched on #309

Closed reezelazar closed 3 years ago

reezelazar commented 3 years ago

Hallo,

mir ist es bisher noch nicht gelungen Warmwasser über die Objekte einzuschalten. Wenn ich über: tado.0.Rooms.0.overlay.setting.power oder tado.0.Rooms.0.overlay.setting.temperature.celsius gehe starte sich der Adapter mit:

host.ubuntiobroker | 2021-07-27 17:18:10.015 | error | instance system.adapter.tado.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
-- | -- | -- | --
host.ubuntiobroker | 2021-07-27 17:18:10.015 | error | Caught by controller[1]: at processTicksAndRejections (internal/process/task_queues.js:84:21)
host.ubuntiobroker | 2021-07-27 17:18:10.015 | error | Caught by controller[1]: at endReadableNT (_stream_readable.js:1241:12)
host.ubuntiobroker | 2021-07-27 17:18:10.015 | error | Caught by controller[1]: at IncomingMessage.EventEmitter.emit (domain.js:483:12)
host.ubuntiobroker | 2021-07-27 17:18:10.015 | error | Caught by controller[1]: at IncomingMessage.emit (events.js:326:22)
host.ubuntiobroker | 2021-07-27 17:18:10.015 | error | Caught by controller[1]: at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/axios/lib/adapters/http.js:260:11)
host.ubuntiobroker | 2021-07-27 17:18:10.015 | error | Caught by controller[1]: at settle (/opt/iobroker/node_modules/axios/lib/core/settle.js:17:12)
host.ubuntiobroker | 2021-07-27 17:18:10.015 | error | Caught by controller[1]: at createError (/opt/iobroker/node_modules/axios/lib/core/createError.js:16:15)
host.ubuntiobroker | 2021-07-27 17:18:10.015 | error | Caught by controller[1]: Error: Request failed with status code 422
host.ubuntiobroker | 2021-07-27 17:18:10.013 | error | Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejecte

Ausgangssituation: Per App war Warmwasser abgeschaltet und befand sich im normalen Zeitplan

Wenn ich per App Warmwasser einschalte, kann ich die Temperatur ändern und auch abschalten. Ich kann aber nicht in den Zeitplan zurückkehren.

Danke euch

HGlab01 commented 3 years ago

Hallo! Welche Version nutzt du? Ich vermute dass wird wirklich noch ein Bug bei HOT-Water-Devices sein. Um diesen zu fixen bräuchte ich deine Unterstützung und du müsstest ein wenig als Versuchskaninchen agieren. Interesse?

Erster Schritt wäre man den Ablauf im Debug-Modus durchlaufen zu lassen und den Log dann hier posten bzw. als Attachment adden. Wichtig ist der gesame Log nach der Zeile "GETS INTERESSTING" oder so ähnlich

reezelazar commented 3 years ago

Klar, alles für den Club :)

Ich habe Version 0.3.4

tado.0 | 2021-07-27 20:36:01.587 | info | (73645) Initialisation finished, connected to Tado cloud service refreshing every 30 seconds
-- | -- | -- | --
tado.0 | 2021-07-27 20:36:01.374 | debug | (73645) Create_state called for state '114914._JSON_response.Stage_04_Weather' and name 'Stage_04_Weather' with value '{"solarIntensity":{"type":"PERCENTAGE","percentage":12.8,"timestamp":"2021-07-27T
tado.0 | 2021-07-27 20:36:01.370 | debug | (73645) HomeId 114914 name: Stage_04_WeatherStage_04_Weather value {"solarIntensity":{"type":"PERCENTAGE","percentage":12.8,"timestamp":"2021-07-27T18:28:35.895Z"},"outsideTemperature":{"celsius":20.6
tado.0 | 2021-07-27 20:36:01.370 | debug | (73645) JSON data written for Stage_04_Weather with values: {"solarIntensity":{"type":"PERCENTAGE","percentage":12.8,"timestamp":"2021-07-27T18:28:35.895Z"},"outsideTemperature":{"celsius":20.61,"fahr
tado.0 | 2021-07-27 20:36:01.370 | debug | (73645) Weather_data Result: {"solarIntensity":{"type":"PERCENTAGE","percentage":12.8,"timestamp":"2021-07-27T18:28:35.895Z"},"outsideTemperature":{"celsius":20.61,"fahrenheit":69.1,"timestamp":"2021-
tado.0 | 2021-07-27 20:36:01.266 | info | (73645) Error catched and send to Sentry, thank you collaborating! Error: State attribute definition missing for 'Stage_10_AwayConfiguration_0' with value '{"type":"FIXED_SETTING","setting":{"type":"H
tado.0 | 2021-07-27 20:36:01.264 | debug | (73645) Create_state called for state '114914._JSON_response.Stage_10_AwayConfiguration_0' and name 'Stage_10_AwayConfiguration_0' with value '{"type":"FIXED_SETTING","setting":{"type":"HOT_WATER","po
tado.0 | 2021-07-27 20:36:01.259 | debug | (73645) HomeId 114914 name: Stage_10_AwayConfiguration_0Stage_10_AwayConfiguration_0 value {"type":"FIXED_SETTING","setting":{"type":"HOT_WATER","power":"OFF","temperature":null}}
tado.0 | 2021-07-27 20:36:01.259 | debug | (73645) JSON data written for Stage_10_AwayConfiguration_0 with values: {"type":"FIXED_SETTING","setting":{"type":"HOT_WATER","power":"OFF","temperature":null}}
tado.0 | 2021-07-27 20:36:01.259 | debug | (73645) AwayConfiguration_data Result: {"type":"FIXED_SETTING","setting":{"type":"HOT_WATER","power":"OFF","temperature":null}}
tado.0 | 2021-07-27 20:36:01.141 | info | (73645) Error catched and send to Sentry, thank you collaborating! Error: State attribute definition missing for 'Stage_09_ZoneStates_data_0' with value '{"tadoMode":"HOME","geolocationOverride":false
tado.0 | 2021-07-27 20:36:01.138 | debug | (73645) Create_state called for state '114914._JSON_response.Stage_09_ZoneStates_data_0' and name 'Stage_09_ZoneStates_data_0' with value '{"tadoMode":"HOME","geolocationOverride":false,"geolocationOv
tado.0 | 2021-07-27 20:36:01.127 | debug | (73645) HomeId 114914 name: Stage_09_ZoneStates_data_0Stage_09_ZoneStates_data_0 value {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting"
tado.0 | 2021-07-27 20:36:01.127 | debug | (73645) JSON data written for Stage_09_ZoneStates_data_0 with values: {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"HOT_WAT
tado.0 | 2021-07-27 20:36:01.127 | debug | (73645) ZoneStates_data Result for zone: 0 and value: {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"HOT_WATER","power":"OFF
tado.0 | 2021-07-27 20:36:00.976 | debug | (73645) Create_state called for state '114914._JSON_response.Stage_10_AwayConfiguration_1' and name 'Stage_10_AwayConfiguration_1' with value '{"type":"HEATING","preheatingLevel":"ECO","minimumAwayTem
tado.0 | 2021-07-27 20:36:00.970 | debug | (73645) HomeId 114914 name: Stage_10_AwayConfiguration_1Stage_10_AwayConfiguration_1 value {"type":"HEATING","preheatingLevel":"ECO","minimumAwayTemperature":{"celsius":15,"fahrenheit":59}}
tado.0 | 2021-07-27 20:36:00.970 | debug | (73645) JSON data written for Stage_10_AwayConfiguration_1 with values: {"type":"HEATING","preheatingLevel":"ECO","minimumAwayTemperature":{"celsius":15,"fahrenheit":59}}
tado.0 | 2021-07-27 20:36:00.970 | debug | (73645) AwayConfiguration_data Result: {"type":"HEATING","preheatingLevel":"ECO","minimumAwayTemperature":{"celsius":15,"fahrenheit":59}}
tado.0 | 2021-07-27 20:36:00.856 | debug | (73645) Create_state called for state '114914._JSON_response.Stage_09_ZoneStates_data_1' and name 'Stage_09_ZoneStates_data_1' with value '{"tadoMode":"HOME","geolocationOverride":false,"geolocationOv
tado.0 | 2021-07-27 20:36:00.856 | debug | (73645) Create_state called for state '114914._JSON_response.Stage_99_Offset_114914' and name 'Stage_99_Offset_114914' with value '{"offsetCelsius":0,"offsetFahrenheit":0}'
tado.0 | 2021-07-27 20:36:00.856 | info | (73645) Error catched and send to Sentry, thank you collaborating! Error: State attribute definition missing for 'Stage_99_Offset_114914' with value '{"offsetCelsius":0,"offsetFahrenheit":0}' and type
tado.0 | 2021-07-27 20:36:00.845 | debug | (73645) Create_state called for state '114914._JSON_response.Stage_99_Offset_114914' and name 'Stage_99_Offset_114914' with value '{"offsetCelsius":0,"offsetFahrenheit":0}'
tado.0 | 2021-07-27 20:36:00.817 | debug | (73645) HomeId 114914 name: Stage_09_ZoneStates_data_1Stage_09_ZoneStates_data_1 value {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting"
tado.0 | 2021-07-27 20:36:00.817 | debug | (73645) JSON data written for Stage_09_ZoneStates_data_1 with values: {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"HEATING
tado.0 | 2021-07-27 20:36:00.817 | debug | (73645) ZoneStates_data Result for zone: 1 and value: {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"HEATING","power":"ON","
tado.0 | 2021-07-27 20:36:00.816 | debug | (73645) HomeId 114914 name: Stage_99_Offset_114914Stage_99_Offset_114914 value {"celsius":0,"fahrenheit":0}
tado.0 | 2021-07-27 20:36:00.816 | debug | (73645) JSON data written for Stage_99_Offset_114914 with values: {"celsius":0,"fahrenheit":0}
tado.0 | 2021-07-27 20:36:00.816 | debug | (73645) Offset Result for DeviceID 'RU0030344704': {"celsius":0,"fahrenheit":0}
tado.0 | 2021-07-27 20:36:00.815 | debug | (73645) HomeId 114914 name: Stage_99_Offset_114914Stage_99_Offset_114914 value {"celsius":0,"fahrenheit":0}
tado.0 | 2021-07-27 20:36:00.815 | debug | (73645) JSON data written for Stage_99_Offset_114914 with values: {"celsius":0,"fahrenheit":0}
tado.0 | 2021-07-27 20:36:00.807 | debug | (73645) Offset Result for DeviceID 'RU0030344704': {"celsius":0,"fahrenheit":0}
tado.0 | 2021-07-27 20:36:00.674 | debug | (73645) Create_state called for state '114914._JSON_response.Stage_08_ZonesData' and name 'Stage_08_ZonesData' with value '[{"id":1,"name":"Heizung","type":"HEATING","dateCreated":"2017-09-26T20:00:33
tado.0 | 2021-07-27 20:36:00.662 | debug | (73645) DeviceID for offset found: "RU0030344704"
tado.0 | 2021-07-27 20:36:00.662 | debug | (73645) DeviceID for offset found: "RU0030344704"
tado.0 | 2021-07-27 20:36:00.662 | debug | (73645) HomeId 114914 name: Stage_08_ZonesDataStage_08_ZonesData value [{"id":1,"name":"Heizung","type":"HEATING","dateCreated":"2017-09-26T20:00:33.807Z","deviceTypes":["RU01"],"devices":[{"deviceTyp
tado.0 | 2021-07-27 20:36:00.662 | debug | (73645) JSON data written for Stage_08_ZonesData with values: [{"id":1,"name":"Heizung","type":"HEATING","dateCreated":"2017-09-26T20:00:33.807Z","deviceTypes":["RU01"],"devices":[{"deviceType":"RU01"
tado.0 | 2021-07-27 20:36:00.661 | debug | (73645) Zones_data Result: [{"id":1,"name":"Heizung","type":"HEATING","dateCreated":"2017-09-26T20:00:33.807Z","deviceTypes":["RU01"],"devices":[{"deviceType":"RU01","serialNo":"RU0030344704","shortSe
tado.0 | 2021-07-27 20:36:00.521 | debug | (73645) Create_state called for state '114914._JSON_response.Stage_06_MobileDevicesData' and name 'Stage_06_MobileDevicesData' with value '[{"name":"Vampira","id":388674,"settings":{"geoTrackingEnable
tado.0 | 2021-07-27 20:36:00.515 | debug | (73645) HomeId 114914 name: Stage_06_MobileDevicesDataStage_06_MobileDevicesData value [{"name":"Vampira","id":388674,"settings":{"geoTrackingEnabled":true,"pushNotifications":{"lowBatteryReminder":tr
tado.0 | 2021-07-27 20:36:00.515 | debug | (73645) JSON data written for Stage_06_MobileDevicesData with values: [{"name":"Vampira","id":388674,"settings":{"geoTrackingEnabled":true,"pushNotifications":{"lowBatteryReminder":true,"awayModeRemin
tado.0 | 2021-07-27 20:36:00.514 | debug | (73645) MobileDevices_data Result: [{"name":"Vampira","id":388674,"settings":{"geoTrackingEnabled":true,"pushNotifications":{"lowBatteryReminder":true,"awayModeReminder":true,"homeModeReminder":true,"
tado.0 | 2021-07-27 20:36:00.395 | debug | (73645) Create_state called for state '114914._JSON_response.Stage_03_Devices' and name 'Stage_03_Devices' with value 'undefined'
tado.0 | 2021-07-27 20:36:00.394 | debug | (73645) Create_state called for state '114914._JSON_response.Stage_02_HomeData' and name 'Stage_02_HomeData' with value '{"id":114914,"name":"Home","dateTimeZone":"Europe/Berlin","dateCreated":"2017-0
tado.0 | 2021-07-27 20:36:00.383 | debug | (73645) HomeId 114914 name: Stage_03_DevicesStage_03_Devices value undefined
tado.0 | 2021-07-27 20:36:00.383 | debug | (73645) JSON data written for Stage_03_Devices with values: undefined
tado.0 | 2021-07-27 20:36:00.383 | debug | (73645) Devices Result: undefined
tado.0 | 2021-07-27 20:36:00.382 | debug | (73645) HomeId 114914 name: Stage_02_HomeDataStage_02_HomeData value {"id":114914,"name":"Home","dateTimeZone":"Europe/Berlin","dateCreated":"2017-09-20T20:13:25.482Z","temperatureUnit":"CELSIUS","par
tado.0 | 2021-07-27 20:36:00.382 | debug | (73645) JSON data written for Stage_02_HomeData with values: {"id":114914,"name":"Home","dateTimeZone":"Europe/Berlin","dateCreated":"2017-09-20T20:13:25.482Z","temperatureUnit":"CELSIUS","partner":nu
tado.0 | 2021-07-27 20:36:00.381 | debug | (73645) Home_data Result: {"id":114914,"name":"Home","dateTimeZone":"Europe/Berlin","dateCreated":"2017-09-20T20:13:25.482Z","temperatureUnit":"CELSIUS","partner":null,"simpleSmartScheduleEnabled":tru
tado.0 | 2021-07-27 20:36:00.231 | debug | (73645) Create_state called for state '114914._JSON_response.Stage_01_GetMe_Data' and name 'Stage_01_GetMe_Data' with value '{"name":"Nicolas Schleemilch","email":"n.schleemilch@t-online.de","username
tado.0 | 2021-07-27 20:36:00.227 | debug | (73645) Full refresh, data outdated (more than 60 minutes ago)
tado.0 | 2021-07-27 20:36:00.227 | debug | (73645) HomeId 114914 name: Stage_01_GetMe_DataStage_01_GetMe_Data value {"name":"Nicolas Schleemilch","email":"n.schleemilch@t-online.de","username":"n.schleemilch@t-online.de","id":"59c2cbac46e0fb00
tado.0 | 2021-07-27 20:36:00.227 | debug | (73645) JSON data written for Stage_01_GetMe_Data with values: {"name":"Nicolas Schleemilch","email":"n.schleemilch@t-online.de","username":"n.schleemilch@t-online.de","id":"59c2cbac46e0fb000a8c9843",
tado.0 | 2021-07-27 20:36:00.221 | debug | (73645) GetMe result: {"name":"Nicolas Schleemilch","email":"n.schleemilch@t-online.de","username":"n.schleemilch@t-online.de","id":"59c2cbac46e0fb000a8c9843","homes":[{"id":114914,"name":"Home"}],"lo
tado.0 | 2021-07-27 20:36:00.036 | info | (73645) Connected to Tado cloud, initialyzing ...
tado.0 | 2021-07-27 20:35:59.518 | info | (73645) Started with JSON-Explorer version 0.1.1
tado.0 | 2021-07-27 20:35:59.511 | info | (73645) starting. Version 0.3.4 in /opt/iobroker/node_modules/iobroker.tado, node: v12.20.2, js-controller: 3.2.16
tado.0 | 2021-07-27 20:35:59.455 | debug | (73645) Plugin sentry Initialize Plugin (enabled=true)
tado.0 | 2021-07-27 20:35:28.487 | debug | (73629) Polling-Timer cleared.
tado.0 | 2021-07-27 20:35:28.484 | debug | (73629) No suitable Lua script, fallback to keys!: function(doc) { if (doc.type === 'state') emit(doc._id, doc) }
tado.0 | 2021-07-27 20:35:28.478 | warn | (73629) Terminated (UNCAUGHT_EXCEPTION): Without reason
tado.0 | 2021-07-27 20:35:28.478 | debug | (73629) Plugin sentry destroyed
tado.0 | 2021-07-27 20:35:28.478 | info | (73629) terminating
tado.0 | 2021-07-27 20:35:28.478 | info | (73629) cleaned everything up...
tado.0 | 2021-07-27 20:35:28.464 | error | (73629) Request failed with status code 422
tado.0 | 2021-07-27 20:35:28.464 | error | at processTicksAndRejections (internal/process/task_queues.js:84:21)
tado.0 | 2021-07-27 20:35:28.464 | error | at endReadableNT (_stream_readable.js:1241:12)
tado.0 | 2021-07-27 20:35:28.464 | error | at IncomingMessage.EventEmitter.emit (domain.js:483:12)
tado.0 | 2021-07-27 20:35:28.464 | error | at IncomingMessage.emit (events.js:326:22)
tado.0 | 2021-07-27 20:35:28.464 | error | at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/axios/lib/adapters/http.js:260:11)
tado.0 | 2021-07-27 20:35:28.464 | error | at settle (/opt/iobroker/node_modules/axios/lib/core/settle.js:17:12)
tado.0 | 2021-07-27 20:35:28.464 | error | at createError (/opt/iobroker/node_modules/axios/lib/core/createError.js:16:15)
tado.0 | 2021-07-27 20:35:28.464 | error | (73629) Error: Request failed with status code 422
tado.0 | 2021-07-27 20:35:28.463 | error | (73629) unhandled promise rejection: Request failed with status code 422
tado.0 | 2021-07-27 20:35:28.463 | error | (73629) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
tado.0 | 2021-07-27 20:35:28.335 | debug | (73629) Timeout set for timer '1149140' with 750ms
tado.0 | 2021-07-27 20:35:27.584 | info | (73629) Send API ZoneOverlay API call Home: 114914 zone: 0 config: {"setting":{"type":"HOT_WATER","power":"ON"},"termination":{"typeSkillBasedApp":"NEXT_TIME_BLOCK","durationInSeconds":null}}
tado.0 | 2021-07-27 20:35:27.584 | info | (73629) Temperature changed for room '0' in home '114914' to '65'
tado.0 | 2021-07-27 20:35:27.584 | debug | (73629) Room mode (typeSkillBasedApp) set: NO_OVERLAY
tado.0 | 2021-07-27 20:35:27.584 | debug | (73629) Type set: HOT_WATER
tado.0 | 2021-07-27 20:35:27.584 | debug | (73629) Room power set: OFF
tado.0 | 2021-07-27 20:35:27.583 | debug | (73629) Room Temperature set: 65
tado.0 | 2021-07-27 20:35:27.583 | debug | (73629) DurationInSeconds set: 1800
tado.0 | 2021-07-27 20:35:27.583 | debug | (73629) FanSpeed set: AUTO
tado.0 | 2021-07-27 20:35:27.580 | debug | (73629) Mode set: COOL
tado.0 | 2021-07-27 20:35:27.579 | info | (73629) Attribute 'tado,0,114914,Rooms,0,setting,temperature,celsius' changed. 'celsius' will be checked.
tado.0 | 2021-07-27 20:35:27.578 | debug | (73629) GETS INTERESSTING!!!
HGlab01 commented 3 years ago

Hi! Danke fürs Log! Hast du auch einen Discord-Account, dort könnten wir uns leichter austauschen. Welche Datenpunkte hast du geändert? Power auf ON und auch die Temperatur geändert?

Compare: Send API ZoneOverlay API call Home: 114914 zone: 0 config: {"setting":{"type":"HOT_WATER","power":"ON"},"termination":{"typeSkillBasedApp":"NEXT_TIME_BLOCK","durationInSeconds":null}} Send API ZoneOverlay API call Home: xxxxxx zone: 1 config: {"setting":{"type":"HEATING","power":"ON","temperature":{"celsius":21}},"termination":{"typeSkillBasedApp":"MANUAL","durationInSeconds":null}} -->temperature fehlt

P.s. ich hab leider kein HOT-Water device, daher ist das alles ein wenig langwierig...

Vielleicht funktioniert der QuickFix: Diesen Link über die Katze installieren DrozmotiX/ioBroker.tado#4764ed134ae8381c3e9a803dc20d1b42be024441

image

reezelazar commented 3 years ago

Hab dich in Discord angefragt.

Wenn ich power auf on stelle springt es mit dem nächsten update wieder zurück. Wenn ich die Temperatur ändere startet der Adapter neu.

Ich schau mir das ganze morgen mal an.

Dank schon mal.

HGlab01 commented 3 years ago

fixed in v0.3.5