NEWS
unexpected response (5.00) to observeDevices()
-
Ich habe ein skript laufen, das wenn ich nach Sonnenuntergang nach Hause komme (Wohnungstür entriegeln, getriggert durch ein Nuki Smart Lock) eine Szene in IKEA Tradfi abspielen soll (Lichter an). Seit ein paar Tagen funktioniert das wohl nicht mehr mit diesem Eintrag
2021-03-25 19:33:34.856 - error: tradfri.0 (31008) Error: unexpected response (5.00) to observeDevices(): [object Object] 2021-03-25 19:33:34.859 - error: tradfri.0 (31008) Error: unexpected response (5.00) to observeGroups(): [object Object] 2021-03-25 19:33:34.911 - info: tradfri.0 (31008) got all scenes in group 131085: [] 2021-03-25 19:33:34.954 - info: tradfri.0 (31008) got all scenes in group 131079: [] 2021-03-25 19:33:35.001 - info: tradfri.0 (31008) got all scenes in group 131076: [] 2021-03-25 19:33:35.065 - info: tradfri.0 (31008) got all scenes in group 131087: [] 2021-03-25 19:33:35.208 - info: tradfri.0 (31008) got all scenes in group 131091: [] 2021-03-25 19:33:35.274 - info: tradfri.0 (31008) got all scenes in group 131089: [] 2021-03-25 19:33:35.306 - info: tradfri.0 (31008) got all scenes in group 131090: [] 2021-03-25 19:33:35.344 - info: tradfri.0 (31008) got all scenes in group 131082: [] 2021-03-25 19:33:35.380 - info: tradfri.0 (31008) got all scenes in group 131084: [] 2021-03-25 19:33:35.429 - info: tradfri.0 (31008) got all scenes in group 131094: [196671] 2021-03-25 19:33:40.194 - warn: tradfri.0 (31008) Lost connection to gateway 2021-03-25 19:37:18.031 - info: tradfri.0 (31008) Connection to gateway reestablished 2021-03-25 19:37:18.053 - info: tradfri.0 (31008) got all devices: [65556,65541,65546,65542,65576,65557,65572,65558,65570,65551,65579,65580,65560,65584,65582,65583,65575,65577,65581,65585,65545,65563,65571,65589,65587,65559,65573,65552,65564,65566,65565] 2021-03-25 19:37:18.338 - info: tradfri.0 (31008) got all groups: [131090,131082,131089,131084,131091,131085,131087,131079,131076,131094] 2021-03-25 19:37:18.763 - info: tradfri.0 (31008) got all scenes in group 131076: [] 2021-03-25 19:37:18.787 - info: tradfri.0 (31008) got all scenes in group 131079: [] 2021-03-25 19:37:18.830 - info: tradfri.0 (31008) got all scenes in group 131082: [] 2021-03-25 19:37:18.875 - info: tradfri.0 (31008) got all scenes in group 131084: [] 2021-03-25 19:37:18.914 - info: tradfri.0 (31008) got all scenes in group 131085: [] 2021-03-25 19:37:18.952 - info: tradfri.0 (31008) got all scenes in group 131087: [] 2021-03-25 19:37:18.994 - info: tradfri.0 (31008) got all scenes in group 131089: [] 2021-03-25 19:37:19.021 - info: tradfri.0 (31008) got all scenes in group 131090: [] 2021-03-25 19:37:19.046 - info: tradfri.0 (31008) got all scenes in group 131091: [] 2021-03-25 19:37:19.092 - info: tradfri.0 (31008) got all scenes in group 131094: [196671]
Das skript (ist ein in JS exportiertes Blockly):
on({id: 'nuki-extended.0.smartlocks.wohnungstür.state.lastAction', change: "gt"}, async function (obj) { var value = obj.state.val; var oldValue = obj.oldState.val; if (getState("nuki-extended.0.smartlocks.wohnungstür.state.lastAction").val == 3 && compareTime("7:00", "22:00", "not between")) { setState("alexa2.0.Echo-Devices.G0911B0592250842.Commands.speak-volume"/*Volume to use for speak commands*/, 60); setStateDelayed("alexa2.0.Echo-Devices.G0911B0592250842.Commands.speak"/*speak*/, 'Hallo Thomas, wie war dein Abend?', 3000, false); if (compareTime(getAstroDate("sunriseEnd", undefined, 0), getAstroDate("goldenHour", undefined, 0), "not between", null)) { getState("alexa2.0.Echo-Devices.G0911B0592250842.Routines.db9242b1-a8bb-4347-bbff-7c55cd8839c2", function (err, state) { setState("alexa2.0.Echo-Devices.G0911B0592250842.Routines.db9242b1-a8bb-4347-bbff-7c55cd8839c2"/*Gemütlich*/, state ? !state.val : true); }); } } else { if (getState("nuki-extended.0.smartlocks.wohnungstür.state.lastAction").val == 3) { setState("alexa2.0.Echo-Devices.G0911B0592250842.Commands.speak-volume"/*Volume to use for speak commands*/, 80); setStateDelayed("alexa2.0.Echo-Devices.G0911B0592250842.Commands.speak"/*speak*/, 'Hallo Thomas, willkommen zurück!', 3000, false); // WZ Fenster rechts setStateDelayed("tradfri.0.B-65557.blind.position"/*Blind position*/, 65, 4000, false); // WZ Fenster links setStateDelayed("tradfri.0.B-65558.blind.position"/*Blind position*/, 65, 2000, false); // Küche Fenster setState("tradfri.0.B-65572.blind.position"/*Blind position*/, 65); // Rollo Terrassentür setStateDelayed("tradfri.0.B-65576.blind.position"/*Blind position*/, 95, 6000, false); if (compareTime(getAstroDate("sunriseEnd", undefined, 0), getAstroDate("sunsetStart", undefined, 0), "not between", null)) { getState("alexa2.0.Echo-Devices.G0911B0592250842.Routines.db9242b1-a8bb-4347-bbff-7c55cd8839c2", function (err, state) { setState("alexa2.0.Echo-Devices.G0911B0592250842.Routines.db9242b1-a8bb-4347-bbff-7c55cd8839c2"/*Gemütlich*/, state ? !state.val : true); }); } } } });
Adapter "nuki-extended" : 2.3.0 , installed 2.3.0 Adapter "javascript" : 5.1.3 , installed 5.1.3 Adapter "tradfri" : 2.7.1 , installed 2.7.1 iobroker 3.2.16
Jetzt weiß ich nicht wo ich den Bengel suchen soll, der da nicht mehr richtig mitspielt. Im nuki oder im tradfri Adapter?
Und ja, bevor lustige Sprüche kommen: nodeJS ist aktuell (node14) und richtig installiert.
-
was sagt den
which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
sry.. musste jetzt sein
der trigger wird ja durch NUKI gestartet ergo wird der tradfri mucken machen..
da wird mit den scenen was nicht passen -
@Thomas-Braun Da scheint was auf deinem Tradfri Gateway murks zu sein. ObserveDevices registriert sich auf dem gateway um a) eine Liste aller Geräte zu bekommen und b) bei Änderungen benachrichtigt zu werden. Wenn der Call fehlschlägt dann kann ich eigentlich nur vermuten dass da irgendeine Karteileiche drin ist die das Gateway aus dem Tritt bringt.