Comments (6)
See https://github.com/ebaauw/homebridge-rpi/wiki/switch-device
from homebridge-rpi.
Hello and thanks for the reply, my connected device for this case is a siren. I could use a valve but I try to keep the home app clean with actual devices correct (a valve for a valve, a switch for anything that is not explicitly implemented in HomeKit). Extending the switch max pulse time to one minute would simplify automations in HomeKit. I do not know if there is a limitation in HomeKit but I know that for example the Dummy Switch plugin allows for that...
from homebridge-rpi.
Unfortunately, there's no proper HomeKit support for sirens. I use a Switch as well (for Zigbee sirens in Homebridge deCONZ), with Default Duration to set the time for sounding the siren, but these sirens turn off automatically after the specified duration.
Unfortunately, Valve is the only service in HomeKit with an auto-off feature. I appreciate that it doesn't make sense semantically to expose a siren as valve, but neither does exposing it as a stateless pulse switch. What you need is a stateful (rocker-like) switch, with auto-off after a settable duration. I won't support abusing pulse
for that. I could (optionally) add Default Duration to the switch
device, with the added benefit that you can set the duration from HomeKit rather than in config.json
.
from homebridge-rpi.
I can see how a default duration on a switch makes more sense indeed. Would you be willing to implement it?
from homebridge-rpi.
v1.8.13 adds a duration
setting to the switch
device. When set, Homebridge RPi will expose Default Duration on the Switch service, to turn off the switch automatically.
from homebridge-rpi.
Thanks! it's perfect!
from homebridge-rpi.
Related Issues (20)
- rocker to locally control a light HOT 2
- Switch Pulse HOT 1
- All relays switch once at boot remote Raspberry Pi HOT 3
- Latest version of PiOS has broken LED control HOT 7
- Heartbeat error? "Cannot open ENOENT" HOT 4
- Fan Shim accessories non functional HOT 21
- rip info return error HOT 2
- Reversed State? HOT 7
- Increase pulse max value to at least 1 minute HOT 1
- Garage Door Device HOT 6
- [Minor, minor issue] Broken URL in Wiki HOT 1
- Raspberry Pi 5 HOT 3
- error on rpi info run: hwmon/hwmon2/pwm1 HOT 5
- problems with other accounts HOT 2
- new "raspberrypi" device HOT 1
- New temperature sensor HOT 3
- PWR LED on RPI 3B+ HOT 1
- The Pi itself is exposed as an accessory even if it's configured to be hidden HOT 1
- Making desktop power switch HOT 7
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-rpi.