Git Product home page Git Product logo

Comments (6)

ebaauw avatar ebaauw commented on May 29, 2024

See https://github.com/ebaauw/homebridge-rpi/wiki/switch-device

from homebridge-rpi.

Olivierbkk avatar Olivierbkk commented on May 29, 2024

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.

ebaauw avatar ebaauw commented on May 29, 2024

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.

Olivierbkk avatar Olivierbkk commented on May 29, 2024

I can see how a default duration on a switch makes more sense indeed. Would you be willing to implement it?

from homebridge-rpi.

ebaauw avatar ebaauw commented on May 29, 2024

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.

Olivierbkk avatar Olivierbkk commented on May 29, 2024

Thanks! it's perfect!

from homebridge-rpi.

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.