Giter VIP home page Giter VIP logo

Comments (39)

ygageot avatar ygageot commented on July 17, 2024

You can probably connect your doorbell to HW and have notifications without HomeKit.
In my configuration I have a motion sensor in my letterbox and I receive directly notifications from my HW in iPhone, Apple Watch and Android.
The transmission delay is short and it is confortable...
Unhappily I have no doorbell button to configure.
In the HW app you can configure a doorbell.
If you have one and want to interface it with the plugin, try first to configure the button with notifications (task menu) in HW app.
If it works, give me the info and I will have next week so time to look at it.

from homebridge-homewizard.

basvdploeg avatar basvdploeg commented on July 17, 2024

The doorbell is indeed connected to my HW already. It sends notifications trough the HomeWizard app, but unfortunately that's not with the cool HomeKit interface. When the button is placed in a room with a HomeKit connected camera (which I have), it displays a picture or/and live stream when the doorbell is pressed:

17336-14748-ios10-homekit-l

from homebridge-homewizard.

rthewhite avatar rthewhite commented on July 17, 2024

The big problem is the pushing of changes to HomeKit. Currently i don't have much free time to look into it and see if i can find a solution. The other problem is that i don't have a HomeWizard anymore which makes testing this etc a lot harder.

from homebridge-homewizard.

basvdploeg avatar basvdploeg commented on July 17, 2024

Currently I use a virtual switch in the HomeWizard app to request a php page on my NAS, which sends messages to Telegram and Twitter. If there was a way to do something similar to the Homebridge plugin.

It doesn't necessarily need an HomeWizard if there is a URL which can be requested to replicate a button press.

For example:

Doorbell pressed > HomeWizard receives signal > HomeWizard reacts by requesting a specified url in Homebridge (plugin) > HomeKit sees the request as a button press and sends push notification

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

If I understood, you have actually a HomeKit camera, a doorbell button not supported by HomeKit but connected to HW app and via your NAS to notifications systems.
You want to "view" your HW doorbell like a HomeKit compatible doorbell via the plugin and have the possibility to connect camera and doorbell in Home app.

from homebridge-homewizard.

basvdploeg avatar basvdploeg commented on July 17, 2024

That's right. HomeKit "connects" doorbell and camera automatically when they are placed in the same room, if I'm right. This is also confirmed in the README of the homebridge-doorbell plugin: https://github.com/Samfox2/homebridge-doorbell

from homebridge-homewizard.

rthewhite avatar rthewhite commented on July 17, 2024

I think I found a way to push changes to HomeKit which I described here:
#5 (comment)
When that's implemented it shouldn't be to difficult to implement the doorbell.

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

@basvdploeg I worked a bit tonight on the global update problem and it works for me.
Unhappily I have no doorbell button.

In a first step I can add in the plugin the support for this button.
Can you execute the 2 http commands

from homebridge-homewizard.

basvdploeg avatar basvdploeg commented on July 17, 2024

@ygageot The doorbell part in get-sensors (listed under "kakusensors"; id 3):

"scenes":[ { "id":0, "name":"Hue Lampen", "favorite":"no" } ], "kakusensors":[ { "id":0, "name":"Brievenbus", "status":"no", "type":"contact", "favorite":"no", "timestamp":"06:46", "cameraid":0 }, { "id":1, "name":"Rookmelder", "status":null, "type":"smoke", "favorite":"no", "timestamp":"00:00", "cameraid":null }, { "id":2, "name":"Bewegingsmelder", "status":null, "type":"motion", "favorite":"no", "timestamp":"00:00", "cameraid":null }, { "id":3, "name":"Deurbel", "status":"no", "type":"doorbell", "favorite":"no", "timestamp":"22:24", "cameraid":0 } ],

And get-status (also listed under "kakusensors"; id 3):

"kakusensors":[ { "id":0, "status":"no", "timestamp":"06:46" }, { "id":1, "status":null, "timestamp":"00:00" }, { "id":2, "status":null, "timestamp":"00:00" }, { "id":3, "status":"no", "timestamp":"22:24" } ]

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

@basvdploeg
I just pulled a new version with doorbell support and push mode necessary.
I have no true doorbell button also I took a contact sensor and defined it as a doorbell in HW app.
The main difference is that there is no 2 states open/close but an event.
I know well the Chacon doorbell button because I implement it in my own system for a secondary house and I remember that when you press the button 2 identical event are fired.
In the new version you will need to

  • in the plugin, add "pushServer": {"http": xxxx} minimum in the config file for the port where the plugin listen
  • in HW app, add a virtual IP switch (mine is "Ping HomeKit") where you configure for exemple GET http://ipadress_plugin:xxxx for Open and Close
  • HW app, add a task if the doorbell is pushed you then you Open "Ping HomeKit"

With my tests, the Home app light the doorbell accessory and emit a notification

You have a motion-sensor also try the same.

When the new version will be on line, please test it with your doorbell and say me if you can join it with your HomeKit camera.

from homebridge-homewizard.

basvdploeg avatar basvdploeg commented on July 17, 2024

@ygageot Awesome! When it gets released I'll try it right away! This seems to be the perfect solution.

from homebridge-homewizard.

rthewhite avatar rthewhite commented on July 17, 2024

Just released the new version: 0.0.53 👍 Thanks for all the work @ygageot!

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

Try to insert pushServer": {"http": xxxx, period:1} in your config file.

The plugin in will refresh all the accessories every 1 minute, it is very confortable.

from homebridge-homewizard.

basvdploeg avatar basvdploeg commented on July 17, 2024

Unfortunately I'm running into this error:

Jan 11 21:23:10 RaspberryPi systemd[1]: Starting Node.js HomeKit Server...
Jan 11 21:23:10 RaspberryPi systemd[1]: Started Node.js HomeKit Server.
Jan 11 21:23:10 RaspberryPi homebridge[1276]: *** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
Jan 11 21:23:10 RaspberryPi nodejs[1276]: *** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
Jan 11 21:23:10 RaspberryPi nodejs[1276]: *** WARNING *** Please fix your application to use the native API of Avahi!
Jan 11 21:23:10 RaspberryPi nodejs[1276]: *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs
Jan 11 21:23:10 RaspberryPi nodejs[1276]: *** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour c
Jan 11 21:23:10 RaspberryPi nodejs[1276]: *** WARNING *** Please fix your application to use the native API of Avahi!
Jan 11 21:23:10 RaspberryPi nodejs[1276]: *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister
Jan 11 21:23:10 RaspberryPi homebridge[1276]: *** WARNING *** Please fix your application to use the native API of Avahi!
Jan 11 21:23:10 RaspberryPi homebridge[1276]: *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs
Jan 11 21:23:10 RaspberryPi homebridge[1276]: *** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjo
Jan 11 21:23:10 RaspberryPi homebridge[1276]: *** WARNING *** Please fix your application to use the native API of Avahi!
Jan 11 21:23:10 RaspberryPi homebridge[1276]: *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister
Jan 11 21:23:11 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:11 PM] Loaded plugin: homebridge-camera-ffmpeg
Jan 11 21:23:11 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:11 PM] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
Jan 11 21:23:11 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:11 PM] ---
Jan 11 21:23:11 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:11 PM] ====================
Jan 11 21:23:11 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:11 PM] ERROR LOADING PLUGIN homebridge-homewizard:
Jan 11 21:23:11 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:11 PM] Error: Cannot find module '/usr/lib/node_modules/homebridge-homewizard/dist/plugin.js'
Jan 11 21:23:11 RaspberryPi homebridge[1276]: at Function.Module._resolveFilename (module.js:455:15)
Jan 11 21:23:11 RaspberryPi homebridge[1276]: at Function.Module._load (module.js:403:25)
Jan 11 21:23:11 RaspberryPi homebridge[1276]: at Module.require (module.js:483:17)
Jan 11 21:23:11 RaspberryPi homebridge[1276]: at require (internal/module.js:20:19)
Jan 11 21:23:11 RaspberryPi homebridge[1276]: at Plugin.load (/usr/lib/node_modules/homebridge/lib/plugin.js:65:22)
Jan 11 21:23:11 RaspberryPi homebridge[1276]: at Server. (/usr/lib/node_modules/homebridge/lib/server.js:129:14)
Jan 11 21:23:11 RaspberryPi homebridge[1276]: at Array.forEach (native)
Jan 11 21:23:11 RaspberryPi homebridge[1276]: at Server._loadPlugins (/usr/lib/node_modules/homebridge/lib/server.js:125:22)
Jan 11 21:23:11 RaspberryPi homebridge[1276]: at new Server (/usr/lib/node_modules/homebridge/lib/server.js:48:24)
Jan 11 21:23:11 RaspberryPi homebridge[1276]: at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:26:16)
Jan 11 21:23:11 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:11 PM] ====================
Jan 11 21:23:12 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:12 PM] Loaded plugin: homebridge-nest
Jan 11 21:23:12 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:12 PM] Registering platform 'homebridge-nest.Nest'
Jan 11 21:23:12 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:12 PM] ---
Jan 11 21:23:13 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:13 PM] Loaded plugin: homebridge-sense
Jan 11 21:23:13 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:13 PM] Registering accessory 'homebridge-sense.Sense'
Jan 11 21:23:13 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:13 PM] ---
Jan 11 21:23:13 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:13 PM] Loaded config.json with 1 accessories and 3 platforms.
Jan 11 21:23:13 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:13 PM] ---
Jan 11 21:23:13 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:13 PM] Loading 3 platforms...
Jan 11 21:23:13 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:13 PM] Initializing Nest platform...
Jan 11 21:23:13 RaspberryPi homebridge[1276]: [1/11/2017, 9:23:13 PM] Fetching Nest devices.
Jan 11 21:23:13 RaspberryPi homebridge[1276]: /usr/lib/node_modules/homebridge/lib/api.js:118
Jan 11 21:23:13 RaspberryPi homebridge[1276]: throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
Jan 11 21:23:13 RaspberryPi homebridge[1276]: ^
Jan 11 21:23:13 RaspberryPi homebridge[1276]: Error: The requested platform 'HomeWizard' was not registered by any plugin.
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at API.platform (/usr/lib/node_modules/homebridge/lib/api.js:118:13)
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:281:45)
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:77:36)
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at Module._compile (module.js:556:32)
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at Object.Module._extensions..js (module.js:565:10)
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at Module.load (module.js:473:32)
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at tryModuleLoad (module.js:432:12)
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at Function.Module._load (module.js:424:3)
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at Module.runMain (module.js:590:10)
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at run (bootstrap_node.js:394:7)
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at startup (bootstrap_node.js:149:9)
Jan 11 21:23:13 RaspberryPi homebridge[1276]: at bootstrap_node.js:509:3
Jan 11 21:23:13 RaspberryPi systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE
Jan 11 21:23:13 RaspberryPi systemd[1]: Unit homebridge.service entered failed state.
Jan 11 21:23:23 RaspberryPi systemd[1]: homebridge.service holdoff time over, scheduling restart.
Jan 11 21:23:23 RaspberryPi systemd[1]: Stopping Node.js HomeKit Server...

from homebridge-homewizard.

AlainBijl avatar AlainBijl commented on July 17, 2024

Just updated the plugin (sudo npm -g update homebridge-homewizard) and get the same error as Bas.

from homebridge-homewizard.

rthewhite avatar rthewhite commented on July 17, 2024

Ah my mistake hold on, releasing a new version...

from homebridge-homewizard.

rthewhite avatar rthewhite commented on July 17, 2024

Try version 0.0.54, sorry for the mistake.

from homebridge-homewizard.

basvdploeg avatar basvdploeg commented on July 17, 2024

I'm trying to update to 0.0.54 using sudo npm update homebridge-homewizard -g but there is no update available.

from homebridge-homewizard.

rthewhite avatar rthewhite commented on July 17, 2024

Try running sudo npm install [email protected] -g

from homebridge-homewizard.

basvdploeg avatar basvdploeg commented on July 17, 2024

Installing worked fine this time.

I tried to request the http link using my browser and it shows me an Done message, so the server seems to listen fine. Unfortunately there is no push notification to be seen. @ygageot Is there something I can test to force the push notification?

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

in my configuration on MacOS Sierra, I have node v7.4.0 , [email protected] and [email protected] obtained from GitHub.
No problem

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

@basvdploeg
Well you tried with your browser, Done is the good answer , the http server is listening.

If you look at the plugin log you will find something like
[2017-1-11 22:08:56] Http request from : ::ffff:192.168.1.48 GET /
[2017-1-11 22:08:56] Retrieved currentPosition WindowCovering for: Volet cuisine is:100
[2017-1-11 22:08:56] Retrieved positionState WindowCovering for: Volet cuisine is:2
...
You will read first the address of you browser host and a long list of Retrieved attributes withe current HW values

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

In Home app, I use on the accessory "Autorize notifications"

from homebridge-homewizard.

basvdploeg avatar basvdploeg commented on July 17, 2024

Okay, I'm getting closer. When I use the contact sensor it does work and sends the push notification. Unfortunately that's not the case with the doorbell.

The Home app shows the doorbell as a "not supported" accessory. I'm guessing it has to do with this: Samfox2/homebridge-doorbell#1

Strangely enough I did put the doorbell in the same HomeKit room as the HomeKit camera, but it doesn't send notifications. Probably the fault of HomeKit then...

Also interesting:
Samfox2/homebridge-doorbell#3
homebridge/homebridge#506

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

@basvdploeg
During the development I had no problem with this new accessory.
Yesterday evening, my version was pulled and merged on GITHUB.
After I updated my directory and made a "grunt build".
Just after I discovered as you did that it was not supported in HomeKit app...
I will have a look

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

@basvdploeg
I made some checking and I don't see a version problem with homebridge/HAP/nodejs/Home app.

I tried with Eve and iHome app, the Doorbell is unknown...

  • I replaced Doorbell service by StatelessProgrammableSwitch service, it is the same unknown by Home app and others
    -I replaced Doorbell service by Switch service plus a timer to return idle after 3 seconds. It works but it is not the solution.

As it was working for me this week until yesterday evening, I propose to wait some days. I will survey but we stay in contact

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

There is "in the air" updates in Home app.
I just discovered the automatic creation of "Groups" when I have several lights in the same room...

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

@rthewhite
I have a message : Coverage decreased (-0.1%) to 37.534% when pulling...
I don't know how to do best
Thanks for your support.

from homebridge-homewizard.

rthewhite avatar rthewhite commented on July 17, 2024

@ygageot dont worry about it. If you add code which is not being unit tested the coverage will drop slightly. The tests are mostly testing the core parts like the api etc and not individual accessories right now. I released your doorbell changes in 0.0.56 should be available now.

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

@basvdploeg
Can you try the last version where we considered the doorbell button like a HomeKit Switch and not a HomeKit Doorbell. Thanks

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

@basvdploeg
On my local version I returned to the old version using Doorbell service and I added an identify action.
I tried several apps on my iPhone.
Neither support the accessory as is alone.
But the accessory works :

  • When I push the doorbell button, the event is fired
  • With Apple Home app, I create an automation turning a light for exemple and it works
  • With the HarbourLight Tech HOME app, if I press the Identify button to simulate the doorbell bell button, it works

If I replace the Doorbell service by StatelessProgrammableSwitch service which is about the same, the behavior is the same.

I read that in the next version of IOS, the Apple Home app will support the ProgrammableSwitches.

For all these reasons I plan to go back to the version with Doorbell service.

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

The version with a HW doorbell button considered as a Doorbell HomeKit service is on line.
I added a method identify if you want to fire the event without pushing the physical button.
You have an HomeKit compatible IP camera.
Can you try to link it with a HW doorbell in the same room and test the Video Doorbell group ?

from homebridge-homewizard.

brownad avatar brownad commented on July 17, 2024

Hi

I'm going to start to redo what I had for the doorbird plugin (doorbell polling doorbird api) and see how to move over to the video doorbell which just makes sense as the api is good.

Any guidance for the approach? I'm assuming the doorbell is pretty much removed now from HomeKit future?

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

My expectations...
I think that for the moment the HomeKit Doorbell service can be used as linked service with IP camera service inside a Video Doorbell accessory.
The Doorbell service will not be suppressed.
ProgrammableSwitch is planned to be added in UI of Home app for next iOS release (cf. last beta).
I think it will be the same for the Doorbell service.
The problem for actual UI of Home app is the fact that Doorbell service has no action in input but only event as output.
We have to wait March !!

from homebridge-homewizard.

brownad avatar brownad commented on July 17, 2024

from homebridge-homewizard.

Patrick1610 avatar Patrick1610 commented on July 17, 2024

@ygageot @basvdploeg
I have a question. I want to make a KAKU Contact Sensor send instant Messages to the home app (through homewizard) so I can configurere automatic responses when it is openend. What do I have to Install or add to the config.json file? Thanks in Advance!

from homebridge-homewizard.

ygageot avatar ygageot commented on July 17, 2024

@Patrick1610
Look at the README file, config, PushServer entry

Resume :
Choose an TCPIP port, add an entry in config file.
In HW app for your sensor add an IP virtual switch and emit a request

Homekit will know immediatly the change and you CAN configure Home app to execute what you want !

from homebridge-homewizard.

YLAG avatar YLAG commented on July 17, 2024

Hi guys,

after adding 35 homewizard products :) thx guys

But.. doorbell is stil not working for me. Any help? I get "niet geschikt"

from homebridge-homewizard.

plompen avatar plompen commented on July 17, 2024

YLAG,

is het gelukt mijn engels is niet zo goed maar ik heb het zelfde probleem

from homebridge-homewizard.

Related Issues (20)

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.