NEWS
[gelöst] Anwesenheit mit OWFS und Homematic
-
Ich versuche mich gerade an JS.
Ich versuche eine Anwesenheitserkennung per iButton und OWFS.
Ziel ist es, damit eine Variable in meiner Homematic RM zu setzen.
Ich versuche nur zu testen und nach dem ich mich eingelesen habe, bin ich so weit gekommen…
on("owfs.0.wires.iButtonLila", function(obj) { if (obj.state.val === true) { setState('hm-rega.0.8894'/*Anwesenheit*/,true); } });Das "setState" funktioniert, aber irgendwie bekomme ich die Daten aus dem Objekt nicht.
Was mache ich falsch?
-
Aber warum so? `
Buttons änderen ihren Wert (true) nicht, sondern aktualisieren nur den Zeitstempel.on("owfs.0.wires.iButtonLila",...triggert nur bei Wertänderung.
on({id: "owfs.0.wires.iButtonLila"},...triggert bei jeder Aktualisierung auch ohne Wertänderung.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login