Comments (23)
Tried this:
case this.swTypeVal == 1:{ //doorbell
var doorbellService = new Service.Doorbell(this.name);
doorbellService.getCharacteristic(Characteristic.ProgrammableSwitchEvent).on('set', this.setPowerState.bind(this)).on('get', this.getPowerSt ate.bind(this));
services.push(doorbellService);
break;
}
It shows up in HomeKit but the Home app says its not supported and Elgato Eve shows it as an "input event" which sounds right, but there doesn't seem to be anything I can do with it.
Am I misunderstanding the depth of HomeKit's doorbell support?
from homebridge-edomoticz.
The value type provided by set/getPowerswitch handler probably isn't correct for the programmableswitch characteristic. You'd need to add a handler to translate domoticz data into the expected format from the HomeKit spec linked to over on your HAP-nodeJS issue.
from homebridge-edomoticz.
(Ie: you're sending Boolean true/false. The programmableswitch characteristic wants INT 1 or 0)
from homebridge-edomoticz.
Thanks, is there already a suitable handled that might return a 1/0 for a chime?
Thinking about this some more, I've realised I probably won't be able to get this to do what I want as things stand anyway. I've just set up a contact sensor one our front door which shows up in homekit via Domoticz and the problem is it's no use for triggering anything as it only refreshes its state when you open the Home app or ask Siri.
Is there any way to get state notifications in real time from Domoticz and republish those changes to HomeKit?
from homebridge-edomoticz.
Use the MQTT-integration branch... then updates are in realtime
from homebridge-edomoticz.
Interesting, I will check it out.
from homebridge-edomoticz.
Did you make any progress on that? I'm also playing a bit with doorbell-service but as you mentioned before, it is not supported by the home app - really strange...
from homebridge-edomoticz.
Proving trickier than first thought due to domoticz sending value:7 when doorbell is pushed, but then nothing to reset it... this may have to be mapped as a pushOn switch rather than the native homekit doorbell type.
from homebridge-edomoticz.
Maybe sth. like this (out of amazondash-plugin) will do:
DashPlatform.prototype.dashEventWithAccessory = function(accessory) {
var targetChar = accessory
.getService(Service.StatelessProgrammableSwitch)
.getCharacteristic(Characteristic.ProgrammableSwitchEvent);
targetChar.setValue(1);
setTimeout(function(){targetChar.setValue(0);}, 10000);
}
from homebridge-edomoticz.
Works for me...
setTimeout(function() {
this.log("Ding Dong");
this.service.getCharacteristic(Characteristic.ProgrammableSwitchEvent).setValue(1);
}.bind(this), 10000);
Oddly enough I didn't start getting push notifications right away... I almost gave up then tried the next day and notifications were being delivered reliably. Maybe there's some HomeKit sync lag at play.
from homebridge-edomoticz.
Hi @ZoneMR , Could you show us your complete code, that is to say, DoorBell_accessory.js? Thanks!!
from homebridge-edomoticz.
Sure, this is my code.
10 seconds after startup I get a doorbell notification. The notification also contains a snapshot of the driveway camera - for which I'm using a variant of KhaosT/homebridge-camera-ffmpeg
from homebridge-edomoticz.
I have just tested the same as you already have, @lukeredpath
Upon adding a new Doorbell
service, the device shows up as not supported. There isn't any way (yet) to show up a doorbell in the iOS 10 Home app. This is because the Doorbell
service just adds a characteristic named Characteristic.ProgrammableSwitchEvent
. There isn't any way to know that this is really a doorbell.
I have also tried with the Homekit accessory simulator, no luck though. There isn't any device I can add which emulates a doorbell. Only thing coming close is a door
which opens and closes.
I guess we'll have to wait until doorbells are fully supported by Apple (HomeKit).
from homebridge-edomoticz.
@ZoneMR Why are you sending "1" to the ProgrammableSwitchEvent? It means "Double Click". Have you tried zero?
I've put that on a GPIO switch: nothing happens except for a log message when the doorbell is fired. Shouldn't it send a message to my iPhone saying "Someone is at the door"?
The Home app (iOS11.1beta5) does not support this accessory.
I like to make a test with homebridge-camera-ffmpeg or homebridge-camera-ffmpeg-omx to make this a video door bell.
PS: Can I somehow attach a "regular" bell as well?
from homebridge-edomoticz.
Apple changed the doorbell service, it does not work as standalone doorbell anymore.
I created a (working) video doorbell based on the ffmpeg plugin, you find the code here:
https://github.com/Samfox2/homebridge-videodoorbell
from homebridge-edomoticz.
from homebridge-edomoticz.
The plugin is running a small webserver which triggers the doorbell. So basically if your physical button connected to gpio can execute a bash script or curl command in any way the plugin sends a pic message to all icloud connected devices.
from homebridge-edomoticz.
from homebridge-edomoticz.
Yes, esp8266 should be fine. My cam is connected to a separate pi with a additional piface (I`m using this also for other). An input pin calls a curl command that triggers the doorbell.
from homebridge-edomoticz.
Anymore progress on this? Just got a Doorbell to work with Domoticz :)
from homebridge-edomoticz.
As per Samfox2’s earlier comment:
Apple changed the doorbell service, it does not work as standalone doorbell anymore.
Doorbells must be integrated into Apple’s security system design, ie: with accompanying video camera etc.
Nothing that can be done within eDomoticz.
from homebridge-edomoticz.
I've created PR #175 that adds support for doorbells.
The doorbell service does indeed not function standalone, but you can combine it with every other type of service and it will magically start working. I've combined it with a programmable switch, which has the added benefit that you can use it to trigger scenes.
Notifications work and you even get a video thumbnail in the notification when you have a camera in the same room as the doorbell, making it work like a real video doorbell.
from homebridge-edomoticz.
Just thought I'd add my own update. I haven't tried Niels' solution but I did come up with my own. I have my doorbell device in Domoticz. I created a second, virtual dummy device as a motion sensor with an off delay of 1, then used a very simple Blockly automation to trigger the motion sensor whenever the real doorbell device is activated.
This gives me a Homekit compatible sensor that appears in the Home app (as a motion sensor) and which I can use to attach notifications to. The only downside is that the notification says "Doorbell motion detected" but I can live with it. Added bonus - the motion sensor also can be used with Echo devices (using the homebridge-alexa plugin) as a trigger for routines so you can trigger an announcement to all of your Echo devices when the doorbell is pressed.
I did finally get MQTT up and running too - the real time updates makes this seamless. It's replaced my IFTTT push notification for me.
from homebridge-edomoticz.
Related Issues (20)
- How to change type Lamp/Switch to Outlet in eDomoticz so that Homekit recognices the device as an Outlet HOT 1
- Hey siri "close the blind" does open ! HOT 6
- Not working with domoticz v2023.1 HOT 1
- Domoticz 2023.1 - Problem with the plugin HOT 4
- Devices not showing in home bridge HOT 1
- Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
- API Calls to Domoticz depricated HOT 35
- Could not connect to Mqtt broker HOT 1
- Unable to connect to Domoticz 2023.2 HOT 1
- [WebServer] Deprecated RType HOT 3
- [Domoticz] missing accessories after upgrades HOT 17
- Error update 2.1.47 HOT 2
- Domoticz Motion Sensor not working in Homebridge HOT 8
- Homebridge and plugin eDomoticz working - but no accessories anymore HOT 4
- Add Setpoint root type to current heating / thermostat handler HOT 7
- Homebridge not updating status of switches HOT 11
- Impact of domoticz change on thermostats HOT 1
- Force name update HOT 2
- Devices names don't update
- Thermostat are not visible any more with Domoticz 2024.x HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-edomoticz.