heggink / domoticz-nuki

python plugin for the nuki locks
MIT License
9 stars 5 forks source link

Retrieve status door open or closed #13

Open Kollemt opened 2 years ago

Kollemt commented 2 years ago

Hi,

problably not the right place for this question, but maybe someone knows how to contact Heggink.

I am using your Nuki Domoticz interface succesfully. The question is if it is possible to get the status of the door, so not the lock. The Nuki app shows whether the door is open or closed. But no ideavhow to get this info in Domoticz. Actually did not see an nuki api call to provide this information.

heggink commented 2 years ago

Ehh by dropping a message here ;-).

I am not sure if I follow what you are asking. For the newer locks, the door contact was implemented (my old locks don't have that) so if you have a new lock, there should be a device that shows whether teh door is open or not.

Kollemt commented 2 years ago

Hi,

I assume you are Dutch. If not i will translate.

Ik heb het slot een paar weken en het is dus een nieuw slot. De nuki app geeft ook weer of de deur open of dicht is. Zie plaatje.

In Domoticz heb ik twee devices gekregen na toevoegen van de nuki hardware. De ene werkt prima om het slot open en dicht te doen maar de ander (unlatched) doet niets.

Groeten/ greetings,

Tom van Kollem

Op 30 aug. 2021 om 18:21 heeft heggink @.***> het volgende geschreven:

 Ehh by dropping a message here ;-).

I am not sure if I follow what you are asking. For the newer locks, the door contact was implemented (my old locks don't have that) so if you have a new lock, there should be a device that shows whether teh door is open or not.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

heggink commented 2 years ago

IK heb even zitten kijken waarbij me opviel dat de laatste change (door fcoquelet) niet gedaan is tegen de main branch maar tegen een verouderde feature unlatch branch :-(. Dat was me tot op heden nog niet opgevallen.

Het vervelende is dat hij tegelijkertijd ook een aanpassing gemaakt heeft mbt de device ID's waardoor de plugin niet backwards compatible is. Als ik nu al die aanpassingen in de main branch maak, dan heeft vervolgens iedereen die een update van de plugin doet (zou helemaal niet hoeven maar veel mensen doen blind updates) een probleem (oude devices weggooien, nieuwe renamen naar de oude naam).

Simpelste is als je ipv de main branch de feature unlatch branch installeert. Je kunt volgens mij zonder problemen een tweede Nuki plugin erbij zetten die de andere branch gebruikt (git clone https://github.com/heggink/domoticz-nuki/tree/feature-unlatch). Dan moet je wel even in plugin.py in de header een paar zaken veranderen (de key en de naam) zodat je niet 2 plugins met dezelfde identificatie hebt. Daarvan raakt domoticz in de war.

Daarna domoticz opnieuw starten en je hebt je tweede plugin. Je kunt ook de feature-unlatch branch over je bestaande master heenzetten.

Laat maar weten of het gelukt is.

Kollemt commented 2 years ago

Bedankt voor de hulp.

Probeer te installeren over mijn bestaande installatie maar krijg een foutmelding

Groeten/ greetings,

Tom van Kollem

(Verstuurd van IPAD)

Op 30 aug. 2021 om 22:03 heeft heggink @.***> het volgende geschreven:

 IK heb even zitten kijken waarbij me opviel dat de laatste change (door fcoquelet) niet gedaan is tegen de main branch maar tegen een verouderde feature unlatch branch :-(. Dat was me tot op heden nog niet opgevallen.

Het vervelende is dat hij tegelijkertijd ook een aanpassing gemaakt heeft mbt de device ID's waardoor de plugin niet backwards compatible is. Als ik nu al die aanpassingen in de main branch maak, dan heeft vervolgens iedereen die een update van de plugin doet (zou helemaal niet hoeven maar veel mensen doen blind updates) een probleem (oude devices weggooien, nieuwe renamen naar de oude naam).

Simpelste is als je ipv de main branch de feature unlatch branch installeert. Je kunt volgens mij zonder problemen een tweede Nuki plugin erbij zetten die de andere branch gebruikt (git clone https://github.com/heggink/domoticz-nuki/tree/feature-unlatch).

Laat maar weten of het gelukt is.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

heggink commented 2 years ago

kan het kwaad als je de oude folder in z'n geheel weggooit en een nieuwe git clone doet van de feature unlatch repo? git clone https://github.com/heggink/domoticz-nuki/tree/feature-unlatch

Kollemt commented 2 years ago

Gedaan maar gaat nog mis

Groeten/ greetings,

Tom van Kollem

(Verstuurd van IPAD)

Op 30 aug. 2021 om 22:39 heeft heggink @.***> het volgende geschreven:

 kan het kwaad als je de oude folder in z'n geheel weggooit en een nieuwe git clone doet van de feature unlatch repo? git clone https://github.com/heggink/domoticz-nuki/tree/feature-unlatch

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

heggink commented 2 years ago

git clone -b feature-unlatch https://github.com/heggink/domoticz-nuki Zou wel moeten werken...

Kollemt commented 2 years ago

Gelukt!! Bedankt.

Heb nu drie devices inc het sensor device.

Vroeg me trouwens af waarvoor het unlatch device eigenlijk gebruikt wordt. Gebruik het niet.

Groeten/ greetings,

Tom

Op 30 aug. 2021 om 23:08 heeft heggink @.***> het volgende geschreven:

 git clone -b feature-unlatch https://github.com/heggink/domoticz-nuki Zou wel moeten werken...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

heggink commented 2 years ago

Er waren mensen die graag een knop willen om het slot in 1x te openen. Was vrij simpel te bouwen. Ik gebruik het ook niet.