Coder Social home page Coder Social logo

node-red-contrib-nuki's Introduction

Hi there 👋

🔭 I’m currently working on infrastructure automation using the tools that suite best - starting from ansible, hashicorp packer, terraform, nomad, k8s and so many more

node-red-contrib-nuki's People

Contributors

ctr49 avatar greenkeeper[bot] avatar jeboehm avatar kapet avatar mabunixda avatar phillcz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

node-red-contrib-nuki's Issues

Installation problem

The documentation shows 3 nodes. In my installation are only 2 nodes available.

"nuki bridge in" connects properly to my bridge.
"control in" let me select my lock but is not able to communicate with it.

Maybe just a beginners problem. Please could you help me? Contact information is available in my profile.

Can`t select a NUKI in Dropdown

After configure the bridge. A green text shows "got nuki list" but I can`t select a NUKI in the dropdown menu because the dropdown is empty.

trigger on updates

oh yes, I also miss that it triggers and sends me messages.
if that works with MQTT that would be ok too, since I have a server running for zigbee anyway.

Originally posted by @Armageddit in #17 (comment)

Bridge callbacks are deleted

Hi,
I really like the new callback feature of your plugin. Before the new release, I've had implemented it on my own.
But I've noticed that all callbacks on my Nuki bridge are deleted when the plugin is loaded.
Could you add an option to turn this off?

Nuki 3.0 pro

Hello

do the nodes also support the new Nuki 3.0 pro?

currentNode undefined

in NukiBridgeControl.prototype.handleBridgeEvent:
currentNode is not defined

I think s/currentNode/node/ is the necessary fix

Every new deployment of the flow reset all the Nuki callbacks

Hi,

I have 3 different callbacks on my Nuki among them is the one the plugin register ({"callbacks": [{"id": 0, "url": "http://192.168.1.200/nuki-bridge/callback-node"}]})

Problem is each time I deploy the flow (either by restarting Node-Red or modifying the flow) the plugin reset all the callbacks. The checkbox for "clear callbacks" is not checked.

Thanks,

Tal.

Sending Topic to Bridge

Hello, I need a simple help. Sending a Topic (e.g. Info) to a bridge is done via "Inject", is this correct?

If yes, what exactly do I have to send?

Unlatch not possible if not locked

The lockSction "UNLATCH" is not possible if Nuki is not locked, but I need to unlatch even / open the door even when not locked. I have no autolock enabled, as my door has no opening knob on the outdoor side. Tried with v0.4.0

An in-range update of eslint is breaking the build 🚨

The devDependency eslint was updated from 6.3.0 to 6.4.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v6.4.0
  • e915fff Docs: Improve examples and clarify default option (#12067) (Yuping Zuo)
  • 540296f Update: enforceForClassMembers option to accessor-pairs (fixes #12063) (#12192) (Milos Djermanovic)
  • d3c2334 Update: flag nested block with declaration as error (#12193) (David Waller)
  • b2498d2 Update: Fix handling of property names in no-self-assign (#12105) (Milos Djermanovic)
  • 1ee61b0 Update: enforceForClassMembers computed-property-spacing (fixes #12049) (#12214) (Milos Djermanovic)
  • 520c922 Docs: Added naming convention details to plugin usage (#12202) (Henrique Barcelos)
  • f826eab Fix: Allow line comment exception in object-curly-spacing (fixes #11902) (#12216) (Milos Djermanovic)
  • db2a29b Update: indentation of comment followed by semicolon (fixes #12232) (#12243) (Kai Cataldo)
  • ae17d1c Fix: no-sequences is reporting incorrect locations (#12241) (Milos Djermanovic)
  • 365331a Fix: object-shorthand providing invalid fixes for typescript (#12260) (Brad Zacher)
  • 1c921c6 New: add no-import-assign (fixes #12237) (#12252) (Toru Nagashima)
  • 3be04fd New: Add prefer-regex-literals rule (fixes #12238) (#12254) (Milos Djermanovic)
  • 37c0fde Update: Report global Atomics calls in no-obj-calls (fixes #12234) (#12258) (Milos Djermanovic)
  • 985c9e5 Fix: space-before-function-paren autofix removes comments (fixes #12259) (#12264) (Milos Djermanovic)
  • 01da7d0 Fix: eqeqeq rule reports incorrect locations (#12265) (Milos Djermanovic)
  • 319e4d8 Docs: adding finally example (#12256) (Jens Melgaard)
  • d52328f Docs: fix no-sequences with examples (#12239) (Milos Djermanovic)
  • a41fdc0 Fix: Remove autofixer for no-unsafe-negation (#12157) (Milos Djermanovic)
  • e38f5fd Update: fix no-octal-escape false negatives after \0 (#12079) (Milos Djermanovic)
  • 9418fbe Sponsors: Sync README with website (ESLint Jenkins)
  • acc5ec5 Sponsors: Sync README with website (ESLint Jenkins)
  • 460c5ad Sponsors: Sync README with website (ESLint Jenkins)
  • 0313441 New: add rule default-param-last (fixes #11361) (#12188) (Chiawen Chen)
  • 7621f5d Update: add more specific linting messages to space-in-parens (#11121) (Che Fisher)
  • 21eb904 Fix: basePath of OverrideTester (fixes #12032) (#12205) (Toru Nagashima)
  • 86e5e65 Sponsors: Sync README with website (ESLint Jenkins)
  • 2b1a13f Fix: no-extra-boolean-cast reports wrong negation node (fixes #11324) (#12197) (Milos Djermanovic)
  • ba8c2aa Sponsors: Sync README with website (ESLint Jenkins)
  • a0a9746 Docs: Fix link in no-irregular-whitespace.md (#12196) (Timo Tijhof)
  • e10eeba Fix: quotes autofix produces syntax error with octal escape sequences (#12118) (Milos Djermanovic)
Commits

The new version differs by 32 commits.

  • 5f3024f 6.4.0
  • c847be2 Build: changelog update for 6.4.0
  • e915fff Docs: Improve examples and clarify default option (#12067)
  • 540296f Update: enforceForClassMembers option to accessor-pairs (fixes #12063) (#12192)
  • d3c2334 Update: flag nested block with declaration as error (#12193)
  • b2498d2 Update: Fix handling of property names in no-self-assign (#12105)
  • 1ee61b0 Update: enforceForClassMembers computed-property-spacing (fixes #12049) (#12214)
  • 520c922 Docs: Added naming convention details to plugin usage (#12202)
  • f826eab Fix: Allow line comment exception in object-curly-spacing (fixes #11902) (#12216)
  • db2a29b Update: indentation of comment followed by semicolon (fixes #12232) (#12243)
  • ae17d1c Fix: no-sequences is reporting incorrect locations (#12241)
  • 365331a Fix: object-shorthand providing invalid fixes for typescript (#12260)
  • 1c921c6 New: add no-import-assign (fixes #12237) (#12252)
  • 3be04fd New: Add prefer-regex-literals rule (fixes #12238) (#12254)
  • 37c0fde Update: Report global Atomics calls in no-obj-calls (fixes #12234) (#12258)

There are 32 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Question: Example flow with callbacks

Hi,
I implemented a flow connecting KNX via a bridge with 2 Nukis which works very fast and reliable with this node.

Sadly I cant figure out how to get a notification back if the status of the lock changes (e.g. via Homekit or somebody presses the buttons).

I saw there is this callback functionality, but I am not sure
a) if these callbacks will get triggered if somebody presses the button on the lock itself
b) how these callbacks would be registered using this node. Is there an example somewhere?

Thanks in advance!

How to lock/unlock?

Hey ;)

i'm new with node-red - i am using the philips hue node and everything works fine with it.

since totday, i also have a nuki and wanted to lock/unlock it with node-red but i don't know how? i tried several things but the nuki didn't do anything....

could someone help me out with this?

thanks ;)

No coupling with Nuki

I have a token and the IP address, it works in ioBroker. But not in the node-red node

missing error handling

My Nuki bridge occasionally responds with 'success: false' to lock status requests.
(also reported here: https://developer.nuki.io/t/success-false-despite-internal-retry/10324 )

The nuki-bridge-api kind-of handles this by checking for success==true and throwing an error if it's getting a false. Unfortunately, this Node Red node isn't handling this error when it happens - the only thing I see is an error in the syslog:
May 11 20:34:24 node-red Node-RED[2164]: Unhandled rejection (<{"success":false}>, no stack trace)

I've simply added this after the lockState().then(...) blocks (lines 199 and 209 in nuki.js):
.catch(function(err) {
msg.payload = {'error': 'failed sending lock action command'};
underControl.send(msg);
return;
});

With this I get a message out of the node so that I can retry :-)

I haven't seen it specifically but I suspect the lockAction() promise on line 194 could have the same problem.

Web api integration

Does it make sense to implement also the web API in this node?

This would be helpful to simplify such a node setup:
image

I use exactly this setup to get the push notification from the Nuki.io API in case the door gets opened/closed. But I wonder if the door state is also available early on the bridge, rather than the Nuki.io API

Originally posted by @djiwondee in #13 (comment)

lockAction

Hello

Thank you for yur work!

I manage to do all the work with de lockStatus;log;info
unfortunatly i cannot have any command to work-lockAction"
The fuction node I´m using is this ;

msg.payload="LOCK" 
msg.topic="lockAction"

return msg;

Nuki Bridge lost config

Hi,

I got a problem everyu two or three day my nuki-bridge config node seems to lose the configuration.
I got to open it, and click on the Update button to make it work again.

In fact, when i reboot my Raspberry, i have to update the config too.
Every information still stored in the node but i have to click on the update button for nodered to register them

Can you help me please ?

Thanks

Thomas

"ReferenceError: node is not defined" on Nuki bridge in

topic = info , payload is empty string. Node red is V2.1.3 (on home assistant 2021.11.4 , hassio on nuc)
2021-11-18 17_26_00-Window
Am I missing gomething? PEBCAK?

The lock state is working, so I guess the api key was entered correctly (I removed non alphanumericals frop api token to be sure)

Any input appreciated!

[ { "id": "3e7b58e1dcc30f91", "type": "inject", "z": "b8639e6a.01d96", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "info", "payloadType": "str", "x": 200, "y": 760, "wires": [ [ "0c833d02b737b2c4" ] ] }, { "id": "0c833d02b737b2c4", "type": "nuki-bridge-control", "z": "b8639e6a.01d96", "name": "192.168.4.180:8080", "bridge": "5c55fc6808ab8e66", "x": 480, "y": 700, "wires": [ [ "1718e1e325923e2e" ] ] }, { "id": "1718e1e325923e2e", "type": "debug", "z": "b8639e6a.01d96", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 930, "y": 700, "wires": [] }, { "id": "5c55fc6808ab8e66", "type": "nuki-bridge", "host": "192.168.4.180", "port": "8080" } ]

Unlock/Lock Log

Not PEBCAK 😉

see PR #33

this needs to be fixed by @mabunixda

danke shön! Can do raw api calls for the moment if needed. Did read the api ref document. Api doesn't provide lock/unlock log atm, so no hurry. Wanted to visualize access log in Home assistant, but that won't work for now via the gw api. Maybe via nuki web.

Originally posted by @eddriesen in #34 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.