This repository has been archived by the owner on Jan 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
getWindowOpen and FritzOS 7 #8
Comments
That looks like either a UI bug or a functionality change. The table is no longer displaying the window open icon: The raw device output has also changed:
Instead of the HANFUN device there is now device plus one entry per function. I'm wondering if this complexity should be hidden in terms of supporting multiple FritzOS versions:
I'll see if I can draft something. |
So, without adding another API and utilizing lodash you could do something like:
Would that work for you? |
Sorry, meine Java Kenntnisse sind nur rudimentär ;-)
Muss ich das in eine neue function einbauen?
Am 13. Sep. 2018, 17:41 +0200 schrieb andig <[email protected]>:
… So, without adding another API and utilizing lodash you could do something like:
getDevice(sid, ain).then(device => +_.get(device, ['alert', 'state']));
Would that work for you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Gegenfrage- wo hast Du es denn überhaupt eingebaut und wie? Dann zeige ich Dir der Einfachheit halber wie das zu verändern wäre. |
Autsch ;) Das müsste dann so aussehen:
|
Leider bekomme ich folgende Fehlermeldung:
Unhandled rejection TypeError: Cannot read property 'state' of undefined
at /home/pi/node_modules/fritzapi/window-open-bad.js:709:34
at tryCatcher (/home/pi/node_modules/fritzapi/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/pi/node_modules/fritzapi/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/pi/node_modules/fritzapi/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/pi/node_modules/fritzapi/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/pi/node_modules/fritzapi/node_modules/bluebird/js/release/promise.js:694:18)
at _drainQueueStep (/home/pi/node_modules/fritzapi/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/home/pi/node_modules/fritzapi/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/home/pi/node_modules/fritzapi/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/node_modules/fritzapi/node_modules/bluebird/js/release/async.js:17:14)
at processImmediate [as _immediateCallback] (timers.js:396:17)
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I´ve updated my FritzBox 7490 to OS 7.01 and the getWindowOpen function don´t work anymore. It´s just getting false.
In the example.js Raw devices section it is getting the correct windowopenactiv: 1 state
The text was updated successfully, but these errors were encountered: