Apollon77 / ioBroker.homekit-controller

Pair and control HomeKit devices directly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only polling new values if adapter is restarted

ronschd opened this issue · comments

Hey,

first, thank you for developing this adapter!

I use it with the new IKEA Dirigera and it's working.
Only problem is, that the values are only updated, if I restart des instance of the adapter ?
Is this a known issue ?
Do I have to configure something different maybe ?

Regards and thank you for all the work,
Ronald

The adapter nroamly subscribes to all states that allow subscriptions for real time updates and polls all the others in the defined interval from the adapter configuration ... Please check these setting. if it still do not work please set the loglevelto debug and post a debug log as file attachement here (taken from logfile at /opt/iobroker/log/... ) ideally from start until 2-3 times the set polling interval

Hello,

thank you for your fast response.

I started the adapter with loglevel debug. I attached the output.
As I can see ther is some polling every 30 seconds, but the values don't arrive in the iobroker objects.

regards,
Ronald

debug.log

but the values don't arrive in the iobroker objects.

Yes, but I also see no changes in these values ... Because of polling can not decide if value was updated or such the adapter do not update unchanged values.

When values change you would see a debug log like in your log" State ... changed ..."

So do you also have a log with a changed value? ;-)

But in general it is bad that Ikea do not seem to allow subscriptions to a singe state :-( Thats bad, so it seems that only polling works :-(

ahhh ok .... sttooop ... thats wrong ... the reads gve an error for these relevant startes (but they should also tried to be subscribed) ... Resource does not exist. ... wtf ...

One question: If you try to remove pairing from ioBroker and pair with an iOS device ... does then anything works? Or also not?

Doesn't sound too good.
Only thing I know at the moment is, as I restart the adapter instance I get all the values.

Hmm, I could try pair it with an iPad.

In fact:

  • Reading "the complete data structure" seems to work fine (this is why you get all values on start). Subscriptions are returning a "partially failed "response and getting values returns "partially ressource does not exist" error sbut the respiurces queried indeed exist.
    So it would be strang eif ios works ...

For me that sounds more like a FW bug of the Ikea hub and should be reported there ...

I Also got such a hub some days ago (with just a switch on it) ... need to install then I can also verify ...

Ok, i paired it with the iPad.
There it works totally fine.
Even if I control the window shades with the buttons i immediately get the states on the iPad.

grmmppfff ... No idea ... Need to look into that ...

If I can help or test something, please let me know.

Btw. Setup is
Dirigera Hub
2 FYRTUR Verdunklungsrollo with the included two remotes

Kurz vorm einschlafen hatte ich eine Vermutung die sich bestätigt hat .., überlege was ich tue als Fix

Klingt ja prinzipiell gut.
Kann ich irgendwie unterstützen ?

Melde mich wenn es ums Testing geht

Passt, danke!

Ok, dann installiere bitte mal den Adapter von GitHub. VORHER bitte Hub unrpairen! Dann Adapter stoppen alle angelegten Objekte in ioBroker des ikea hubs löschen (das keine falschen Daten reinkommen mit abgeschnittenen IDs). Dann starten.

Nehme bitte in jedem Fall wieder euine neues Debug log wie oben ... Auch wenn alles tut zum verifizieren! Danke

Hey,

habe den aktuellen Adapter von GitHub installiert und neu gepaired.
Dann den Adapter einmal normal gestartet und bekomme jetzt updates der Werte, soweit ich gesehen habe im polling Interval.

Habe dann den Adapter nochmal im Debug gestartet und Rollos rauf und runtergefahren.
Log dazu im Anhang.
debug_2023_01_10_01_31.log

Hoffe es hilft dir.

Vielen Dank für deine schnellen Reaktion und das fixing.

lg R

Wenn ich noch etwas tun kann, gib einfach Bescheid.

Ja das ist ja schonmal Schritt 1 ... jetzt will ich nur noch wissen warum er dir subscriptions nicht mag ...
Bitte nochmal Github installieren (musst aber nix unpairen oder löschen). Dann nochmal debug log bitte ... Er loggt jetzt das ergebnis des subscribe requests ... mal schauen was das sagt

Geht klar.
Sorry für die unwissende Frage.
Wie wäre der richtige Weg einen über GitHub installierten Adapter zu aktualisieren?

Admin - Expertenmodus an - Adapter - "Custom install icon" (Das Github icon) - von mittlerer tab "von GitHub" - adapter wählen ... installieren

Okok, einfach drüberinstallieren.

Hab ich jetzt mal gemacht und die Instanz im Debug laufen lassen.
Log wieder angehängt.

debug_2023_01_10_10_54.log

lg R

Hi,
hm ... kannst bitte nochmal? Musste nochmal was ändern das das logging kommt was ich sehen will :-)

Hey,

ja klar. =)
Anbei wieder das Log.
debug_2023_01_10_12_05.log

lg R

und der hoffentlich jetzt bitte letzte versuch ... beim subscriben auf die states wurden die "hohen zahlen" wieder kaputt gemacht :-)

Hey,

ich glaub fast, du hast recht =)
Werte kommen jetzt nicht mehr nur in den polling intervallen, sondern werden bei Änderung sofort aktualisiert.
Und es funktioniert jetzt auch, dass man Werte in Richtung Rollo bekommt, also steuern funktioniert jetzt auch sehr fein.

Wie meinst du die "hohen Zahlen" ?

Anbei natürlich wieder ein Debug Log
debug_2023_01_10_13_36.log

Kann man eigentlich auch im Expertenmodus einfach das Logging auf Debug umstellen ?
Also ohne die Instanz über die Konsole zu starten ?

Aja, und falls ich dir nochmal was testen kann, einfach sagen.

Vielen Dank, schaut wunderbar aus.

lg R

Jupp, genaauuuu so mag ich das Log :-) Checke noch paar Dinge und dann gibts ein update, aber du kannst erstmal so nutzen

Haha, ja auch die Funktion mag ich so =)
Perfekt, nochmals vielen Dank!
Falls du nochmal Tests brauchst vom Dirigera, gib einfach Bescheid.

lg R

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions.
Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

commented

This issue has been automatically closed because of inactivity. Please open a new issue if still relevant and make sure to include all relevant details, logs and reproduction steps. Thank you for your contributions.
Dieses Problem wurde aufgrund von Inaktivität automatisch geschlossen. Bitte öffnet ein neues Issue, falls dies noch relevant ist und stellt sicher das alle relevanten Details, Logs und Reproduktionsschritte enthalten sind. Vielen Dank für Eure Unterstützung.