heggink / domoticz-nuki Goto Github PK
View Code? Open in Web Editor NEWpython plugin for the nuki locks
License: MIT License
python plugin for the nuki locks
License: MIT License
Hi, is it possible to integrate status of the magnet door sensor from the Nuki into the domoticz?
Hello heggink, I bought Nuki 3.0 and immediately installed your plugin. When I open or close the lock, it is displayed in Domoticz. But I can't open or close it from Domoticz with On-Button. The following error occurs: NUKI HTTPError code: 404
What I have done wrong?
Thank you for your help
2019-10-13 10:41:24.448 Status: (Nuki) Stop directive received.
2019-10-13 10:41:24.449 Status: (Nuki) Exiting work loop.
2019-10-13 10:41:24.649 Status: (Nuki) Stopping threads.
2019-10-13 10:41:24.649 Status: (Nuki) Stopped.
2019-10-13 10:41:24.649 Status: (Nuki) Started.
2019-10-13 10:41:25.065 (Nuki) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2019-10-13 10:41:25.065 (Nuki) 'DomoticzVersion':'4.11361'
2019-10-13 10:41:25.065 (Nuki) 'Name':'Nuki'
2019-10-13 10:41:25.065 (Nuki) 'Mode4':'8080'
2019-10-13 10:41:25.065 (Nuki) 'HardwareID':'24'
2019-10-13 10:41:25.065 (Nuki) 'Mode2':'MY TOKEN'
2019-10-13 10:41:25.065 (Nuki) 'HomeFolder':'/home/pi/domoticz/plugins/domoticz-nuki/'
2019-10-13 10:41:25.065 (Nuki) 'Port':'8008'
2019-10-13 10:41:25.065 (Nuki) 'DomoticzBuildTime':'2019-10-11 16:42:44'
2019-10-13 10:41:25.065 (Nuki) 'DomoticzHash':'1872f7e5d'
2019-10-13 10:41:25.065 (Nuki) 'Mode3':'10'
2019-10-13 10:41:25.065 (Nuki) 'Mode1':'192.168.178.126'
2019-10-13 10:41:25.066 (Nuki) 'Language':'de'
2019-10-13 10:41:25.066 (Nuki) 'Key':'NukiLock'
2019-10-13 10:41:25.066 (Nuki) 'Author':'heggink'
2019-10-13 10:41:25.066 (Nuki) 'Database':'/home/pi/domoticz/domoticz.db'
2019-10-13 10:41:25.066 (Nuki) 'Mode6':'File'
2019-10-13 10:41:25.066 (Nuki) 'StartupFolder':'/home/pi/domoticz/'
2019-10-13 10:41:25.066 (Nuki) 'Version':'1.0.5'
2019-10-13 10:41:25.066 (Nuki) 'UserDataFolder':'/home/pi/domoticz/'
2019-10-13 10:41:25.066 (Nuki) Device count: 0
2019-10-13 10:41:25.066 (Nuki) My IP is 192.168.178.37
2019-10-13 10:41:25.066 (Nuki) Nuki plugin started on IP 192.168.178.37 and port 8008
2019-10-13 10:41:25.066 (Nuki) REQUESTING http://192.168.178.126:8080/list?token=MY TOKEN
2019-10-13 10:41:25.063 Status: (Nuki) Initialized version 1.0.5, author 'heggink'
2019-10-13 10:41:25.062 Status: (Nuki) Entering work loop.
2019-10-13 10:41:25.221 Error: (Nuki) NUKI HTTPError code: 403
2019-10-13 10:41:29.296 (Mi Alarmanlage) Light/Switch (Flur Motion Sensor)
2019-10-13 10:41:35.066 (Nuki) Pushing 'onHeartbeatCallback' on to queue
2019-10-13 10:41:35.110 (Nuki) Processing 'onHeartbeatCallback' message
2019-10-13 10:41:35.110 (Nuki) Calling message handler 'onHeartbeat'.
2019-10-13 10:41:35.111 (Nuki) onHeartbeat called 1
Hi, is it possible to build a function for opening the door?
For example, I take a Xiaomi button and when pressed the lap is pulled in shortly and door is open?
Thanks for the great effort. The plugin works fine with a single bridge and 2 locks.
A nice improvement would be to implement all the lock actions
https://developer.nuki.io/page/nuki-bridge-http-api-1-10/4/#heading--lock-actions
I will try to implement this and create a pull request
Hello, I've been getting errors in domoticz lately and the door sensor is not being transmitted.
2021-02-08 19:19:12.406 Error: Python Plugin System: (Nuki) 'onMessage' failed 'JSONDecodeError'.
2021-02-08 19:19:12.406 Error: Python Plugin System: (Nuki) ----> Line 419 in '/home/pi/domoticz/plugins/domoticz-nuki/plugin.py', function onMessage
2021-02-08 19:19:12.406 Error: Python Plugin System: (Nuki) ----> Line 250 in '/home/pi/domoticz/plugins/domoticz-nuki/plugin.py', function onMessage
2021-02-08 19:19:12.406 Error: Python Plugin System: (Nuki) ----> Line 348 in '/usr/lib/python3.7/json/init.py', function loads
2021-02-08 19:19:12.406 Error: Python Plugin System: (Nuki) ----> Line 340 in '/usr/lib/python3.7/json/decoder.py', function decode
2021-02-08 19:19:33.824 Error: Python Plugin System: (Nuki) 'onMessage' failed 'JSONDecodeError'.
2021-02-08 19:19:33.824 Error: Python Plugin System: (Nuki) ----> Line 419 in '/home/pi/domoticz/plugins/domoticz-nuki/plugin.py', function onMessage
2021-02-08 19:19:33.824 Error: Python Plugin System: (Nuki) ----> Line 250 in '/home/pi/domoticz/plugins/domoticz-nuki/plugin.py', function onMessage
2021-02-08 19:19:33.824 Error: Python Plugin System: (Nuki) ----> Line 348 in '/usr/lib/python3.7/json/init.py', function loads
2021-02-08 19:19:33.824 Error: Python Plugin System: (Nuki) ----> Line 340 in '/usr/lib/python3.7/json/decoder.py', function decode
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.
I have got these errors in log:
2022-08-09 02:54:34.568 Error: Nuki Bridge: Call to function 'onMessage' failed, exception details:
2022-08-09 02:54:34.568 Error: Nuki Bridge: Traceback (most recent call last):
2022-08-09 02:54:34.568 Error: Nuki Bridge: File "/home/pi/domoticz/plugins/domoticz-nuki/plugin.py", line 416, in onMessage
2022-08-09 02:54:34.568 Error: Nuki Bridge: _plugin.onMessage(Connection, Data)
2022-08-09 02:54:34.568 Error: Nuki Bridge: File "/home/pi/domoticz/plugins/domoticz-nuki/plugin.py", line 262, in onMessage
2022-08-09 02:54:34.568 Error: Nuki Bridge: Response = strData[strData.index('{') :]
what can be the issue?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.