NEWS
[gelöst] Yahka schaltet nur ein aber nicht aus
-
Hallo,
bin neu hier im Forum, da ich mich seit kurzem mit iO Broker beschäftige. Ich hoffe Ihr könnt mir weiter helfen.
Ich versuche gerade einen Sonoff mit Yahka zu schalten. Über Vis klappt das schonmal wunderbar.
Beim Homekit kann ich ihn zwar anschalten, aber nicht wieder aus. Schalte ich ihn dann über Vis aus, erkennt Homekit den Status sofort und zeigt mir das auch an.
Nur, ausschalten geht halt nicht.
Ich habe das ausschalten schon hinbekommen, indem ich einen neuen Service in Yahka zugefügt habe und die Schaltfunktion über "inverse" laufen lasse. Dann zeigt er mir aber in Homekit zwei Schalter an und das ist ja nur eine Notlösung. Die Log zeigt mir leider nichts an, wenn ich etwas schalte.
Gruß Marco
Hier meine Einstellungen in Yahka:
6272_yahka1.jpg
6272_yahka2.jpg -
Moin, bin auch neuer Beiträger im Forum.
Mal ne blöde Frage: muss beim Service in der 2. Zeile (unter On 1:) nicht wenigstens „passthrough” eingetragen werden? Bei mir geht es nur so (habe allerdings keine Sonoffs).
Viele Grüße
Stefan
-
Er schaltet true/false
Passthrough habe ich auch schon probiert, leider keine Änderung.
6272_yahka3.jpg -
In meiner Log ändert schreibt er nicht, wenn ich etwas schalte. Steht auf "Alles" und "Debug". Aktualisiert habe ich auch. Muss ich das evtl. noch irgendwo aktivieren?
Hier erstmal das was da ist:
!
yahka.0 2018-03-06 07:49:28.420 info adding Milight with UUID: 53162b22-1519-4989-b5a1-88a83c981d2e yahka.0 2018-03-06 07:49:28.354 info adding Steckdose with UUID: 5c582b2d-15d6-4bd0-b799-af0ced9b9253 yahka.0 2018-03-06 07:49:28.287 info adapter ready, checking config yahka.0 2018-03-06 07:49:28.237 info starting. Version 0.7.1 in /opt/iobroker/node_modules/iobroker.yahka, node: v6.12.0 yahka.0 2018-03-06 07:49:27.997 info States connected to redis: 127.0.0.1:6379 host.ioBroker-Pi 2018-03-06 07:49:23.097 info instance system.adapter.yahka.0 started with pid 6224 host.ioBroker-Pi 2018-03-06 07:49:20.657 info instance system.adapter.yahka.0 terminated with code 0 (OK) ! -
Du musst unter Instanzen erstmal den Debug Level hochdrehen…
Erst oben links auf das "Männchen" und dann info in debug ändern...
3610_unbenannt.jpg -
Ok. Danke, nun schreibt er was.
Log Yahka "einmal an, dann aus"
! ````
yahka.1 2018-03-06 09:11:44.564 debug [On] set was initiated from ioBroker - exiting here
yahka.1 2018-03-06 09:11:44.564 debug [On] got a set event, hkValue: true
yahka.1 2018-03-06 09:11:44.563 debug [On] forwarding value from ioBroker (true) to homekit as (true)
yahka.1 2018-03-06 09:11:44.563 debug [On] got a change notify event, ioValue: true
yahka.1 2018-03-06 09:11:44.563 debug change event from ioBroker via [sonoff.0.DVES_9575EF.POWER]{"val":true,"ack":true,"ts":1520323904550,"q":0,"from":"system.adapter.sonoff.0","lc":1520323904550}
yahka.1 2018-03-06 09:11:44.562 debug got a stateChange for [sonoff.0.DVES_9575EF.POWER]
yahka.1 2018-03-06 09:11:44.561 debug redis pmessage io.sonoff.0.DVES_9575EF.POWER io.sonoff.0.DVES_9575EF.POWER {"val":true,"ack":true,"ts":1520323904550,"q":0,"from":"system.adapter.sonoff.0","lc":1520323904550}
yahka.1 2018-03-06 09:11:44.528 debug [On] set was initiated from ioBroker - exiting here
yahka.1 2018-03-06 09:11:44.527 debug [On] got a set event, hkValue: true
yahka.1 2018-03-06 09:11:44.523 debug [On] forwarding value from ioBroker (true) to homekit as (true)
yahka.1 2018-03-06 09:11:44.520 debug [On] got a change notify event, ioValue: true
yahka.1 2018-03-06 09:11:44.516 debug change event from ioBroker via [sonoff.0.DVES_9575EF.POWER]{"val":true,"ack":false,"ts":1520323904472,"q":0,"from":"system.adapter.yahka.1","lc":1520323904472}
yahka.1 2018-03-06 09:11:44.513 debug got a stateChange for [sonoff.0.DVES_9575EF.POWER]
yahka.1 2018-03-06 09:11:44.509 debug redis pmessage io.sonoff.0.DVES_9575EF.POWER io.sonoff.0.DVES_9575EF.POWER {"val":true,"ack":false,"ts":1520323904472,"q":0,"from":"system.adapter.yahka.1","lc":1520323904472}
yahka.1 2018-03-06 09:11:44.505 debug [On] set was accepted by ioBroker (value: true)
yahka.1 2018-03-06 09:11:44.487 debug checking value change: false != true = true
yahka.1 2018-03-06 09:11:44.483 debug writing state to ioBroker [sonoff.0.DVES_9575EF.POWER]: true
yahka.1 2018-03-06 09:11:44.479 debug [On] got a set event, hkValue: true
yahka.1 2018-03-06 09:11:44.433 debug [On] forwarding value from ioBroker (false) to homekit as (false)
yahka.1 2018-03-06 09:11:44.430 debug read state from ioBroker [sonoff.0.DVES_9575EF.POWER]: {"val":false,"ack":true,"ts":1520314499809,"q":0,"from":"system.adapter.sonoff.0","lc":1520154306767}
yahka.1 2018-03-06 09:11:44.426 debug reading state from ioBroker [sonoff.0.DVES_9575EF.POWER]
yahka.1 2018-03-06 09:11:44.422 debug [On] got a get event
yahka.1 2018-03-06 09:11:27.457 debug [On] set was initiated from ioBroker - exiting here
yahka.1 2018-03-06 09:11:27.456 debug [On] got a set event, hkValue: true
yahka.1 2018-03-06 09:11:27.456 debug [On] forwarding value from ioBroker (true) to homekit as (true)
yahka.1 2018-03-06 09:11:27.455 debug [On] got a change notify event, ioValue: true
yahka.1 2018-03-06 09:11:27.454 debug change event from ioBroker via [sonoff.0.DVES_9575EF.POWER]{"val":true,"ack":true,"ts":1520323887429,"q":0,"from":"system.adapter.sonoff.0","lc":1520323887429}
yahka.1 2018-03-06 09:11:27.448 debug got a stateChange for [sonoff.0.DVES_9575EF.POWER]
yahka.1 2018-03-06 09:11:27.447 debug redis pmessage io.sonoff.0.DVES_9575EF.POWER io.sonoff.0.DVES_9575EF.POWER {"val":true,"ack":true,"ts":1520323887429,"q":0,"from":"system.adapter.sonoff.0","lc":1520323887429}
yahka.1 2018-03-06 09:11:27.375 debug [On] set was initiated from ioBroker - exiting here
yahka.1 2018-03-06 09:11:27.374 debug [On] got a set event, hkValue: true
yahka.1 2018-03-06 09:11:27.374 debug [On] forwarding value from ioBroker (true) to homekit as (true)
yahka.1 2018-03-06 09:11:27.374 debug [On] got a change notify event, ioValue: true
yahka.1 2018-03-06 09:11:27.373 debug change event from ioBroker via [sonoff.0.DVES_9575EF.POWER]{"val":true,"ack":false,"ts":1520323887353,"q":0,"from":"system.adapter.yahka.1","lc":1520323887353}
yahka.1 2018-03-06 09:11:27.373 debug got a stateChange for [sonoff.0.DVES_9575EF.POWER]
yahka.1 2018-03-06 09:11:27.373 debug redis pmessage io.sonoff.0.DVES_9575EF.POWER io.sonoff.0.DVES_9575EF.POWER {"val":true,"ack":false,"ts":1520323887353,"q":0,"from":"system.adapter.yahka.1","lc":1520323887353}
yahka.1 2018-03-06 09:11:27.372 debug [On] set was accepted by ioBroker (value: true)
yahka.1 2018-03-06 09:11:27.359 debug checking value change: false != true = true
yahka.1 2018-03-06 09:11:27.359 debug writing state to ioBroker [sonoff.0.DVES_9575EF.POWER]: true
yahka.1 2018-03-06 09:11:27.358 debug [On] got a set event, hkValue: true
yahka.1 2018-03-06 09:11:27.304 debug [On] forwarding value from ioBroker (false) to homekit as (false)
yahka.1 2018-03-06 09:11:27.303 debug read state from ioBroker [sonoff.0.DVES_9575EF.POWER]: {"val":false,"ack":true,"ts":1520314499809,"q":0,"from":"system.adapter.sonoff.0","lc":1520154306767}
yahka.1 2018-03-06 09:11:27.302 debug reading state from ioBroker [sonoff.0.DVES_9575EF.POWER]
yahka.1 2018-03-06 09:11:27.301 debug [On] got a get eventEdit: Log Sonoff hinzugefügt Log Sonoff "an/aus" >! ```` sonoff.0 2018-03-06 09:15:54.595 debug Client [DVES_0E8E3C] pingreq sonoff.0 2018-03-06 09:15:52.082 debug stateChange sonoff.0.DVES_9575EF.POWER: {"val":true,"ack":true,"ts":1520324152061,"q":0,"from":"system.adapter.sonoff.0","lc":1520324152061} sonoff.0 2018-03-06 09:15:52.081 debug redis pmessage io.sonoff.0.* io.sonoff.0.DVES_9575EF.POWER {"val":true,"ack":true,"ts":1520324152061,"q":0,"from":"system.adapter.sonoff.0","lc":1520324152061} sonoff.0 2018-03-06 09:15:52.069 debug [DVES_9575EF] Received: stat/sonoff/POWER = ON sonoff.0 2018-03-06 09:15:52.068 debug [DVES_9575EF] Received: stat/sonoff/RESULT = {"POWER":"ON"} sonoff.0 2018-03-06 09:15:52.039 debug Send to "DVES_9575EF": cmnd/sonoff/POWER = ON sonoff.0 2018-03-06 09:15:52.038 debug onStateChange sonoff.0.DVES_9575EF.POWER: {"val":true,"ack":false,"ts":1520324152009,"q":0,"from":"system.adapter.yahka.1","lc":1520324152009} sonoff.0 2018-03-06 09:15:52.037 debug stateChange sonoff.0.DVES_9575EF.POWER: {"val":true,"ack":false,"ts":1520324152009,"q":0,"from":"system.adapter.yahka.1","lc":1520324152009} sonoff.0 2018-03-06 09:15:52.037 debug redis pmessage io.sonoff.0.* io.sonoff.0.DVES_9575EF.POWER {"val":true,"ack":false,"ts":1520324152009,"q":0,"from":"system.adapter.yahka.1","lc":1520324152009} sonoff.0 2018-03-06 09:15:48.561 debug stateChange sonoff.0.DVES_9575EF.POWER: {"val":true,"ack":true,"ts":1520324148486,"q":0,"from":"system.adapter.sonoff.0","lc":1520324148486} sonoff.0 2018-03-06 09:15:48.559 debug redis pmessage io.sonoff.0.* io.sonoff.0.DVES_9575EF.POWER {"val":true,"ack":true,"ts":1520324148486,"q":0,"from":"system.adapter.sonoff.0","lc":1520324148486} sonoff.0 2018-03-06 09:15:48.485 debug [DVES_9575EF] Received: stat/sonoff/POWER = ON sonoff.0 2018-03-06 09:15:48.484 debug [DVES_9575EF] Received: stat/sonoff/RESULT = {"POWER":"ON"} sonoff.0 2018-03-06 09:15:48.459 debug Send to "DVES_9575EF": cmnd/sonoff/POWER = ON sonoff.0 2018-03-06 09:15:48.458 debug onStateChange sonoff.0.DVES_9575EF.POWER: {"val":true,"ack":false,"ts":1520324148432,"q":0,"from":"system.adapter.yahka.1","lc":1520324148432} sonoff.0 2018-03-06 09:15:48.458 debug stateChange sonoff.0.DVES_9575EF.POWER: {"val":true,"ack":false,"ts":1520324148432,"q":0,"from":"system.adapter.yahka.1","lc":1520324148432} sonoff.0 2018-03-06 09:15:48.457 debug redis pmessage io.sonoff.0.* io.sonoff.0.DVES_9575EF.POWER {"val":true,"ack":false,"ts":1520324148432,"q":0,"from":"system.adapter.yahka.1","lc":1520324148432} -
Hi,
es funktioniert jetzt.
Was ich gemacht habe, hatte eigentlich nichts mit dem Problem zutun.
Ich wollte es etwas übersichtlicher und habe in den MQTT Einstellungen des Sonoff die Client-ID geändert. Dann hat der Sonoff Adapter ihn neu angelegt und ich habe die States im Yahka Adapter angepasst. Sonst habe ich nichts geändert, aber es funtioniert.
Alter Name war: DVES_9575EF
Neuer Name: Sonoff-Pow
Gruß Marco
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden