GithubHelp home page GithubHelp logo

Comments (12)

donavanbecker avatar donavanbecker commented on June 18, 2024

I have add this option into the latest beta if you can give it a try. Currently it is for all push changes where it will push the change twice.

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 18, 2024

I have release v1.7.0 with this included.

from homebridge-switchbot.

Cesco117 avatar Cesco117 commented on June 18, 2024

Oh, thanks !

I didn’t make tests yet, but I guess that I have to put “2” into the “do you want to simulate a double press ?” ?

If I want to be able to alternate between single and double, the better is to create a switch with single press, and one with double press, right ?

and 3rd question, is it possible to set the time between the 2 press ?

thanks again for your consideration and your work !

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 18, 2024

but I guess that I have to put “2” into the “do you want to simulate a double press ?” ?

That is correct.

If I want to be able to alternate between single and double, the better is to create a switch with single press, and one with double press, right ?

I want to be able to alternate between the two but wasn't able to the right code needed, I can keep trying.

and 3rd question, is it possible to set the time between the 2 press ?

This also was an issue that I was having. Let me keep trying.

from homebridge-switchbot.

Cesco117 avatar Cesco117 commented on June 18, 2024

but I guess that I have to put “2” into the “do you want to simulate a double press ?” ?

That is correct.

👍

If I want to be able to alternate between single and double, the better is to create a switch with single press, and one with double press, right ?

I want to be able to alternate between the two but wasn't able to the right code needed, I can keep trying.

It will be awesome to have 2 switches, to be able to make scenes with single, and other scenes with double.

and 3rd question, is it possible to set the time between the 2 press ?

This also was an issue that I was having. Let me keep trying.

👍

Whatever you succeed to do, thanks A LOT for your effort, your replies and your work 👍

from homebridge-switchbot.

cs-banane avatar cs-banane commented on June 18, 2024

I use the v1.14.1 and the double press still doesn't work

from homebridge-switchbot.

jeroen020 avatar jeroen020 commented on June 18, 2024

I have an Optoma projector which requires a double press of the off button to turn it off. I don't see where I can add this in the config file or the plugin configuration?

Also I'd be very happy if you can have separate switches for on/off.

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 18, 2024

Can you try the latest beta:

npm version

Click here to find out how to install Beta

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 18, 2024

@alvst has implemented this in a different way with #628

from homebridge-switchbot.

alvst avatar alvst commented on June 18, 2024

Yea, #628 should will accomplish this but you should really have a wrapper Accessory that uses a cURL to call Switchbot-Homebridge. The wrapper can maintain the power state of the accessory and, if it’s on, automatically instruct the bots to press twice times and once when off. This is similar to my use case (a thermostat). Then you can hide the Switchbot switches in the Home/within Homebridge app.

Alternatively, one could develop and add additional functionality onto of this repo that updates that allows for multiple presses in some instances (for example lights), this way you could do a double press when turning lights off. (This is probably the easiest and best path and most worth implementing.)

One problem you may have is it not being able to double press fast enough because you have to wait for the refresh interval which may be too long for the projector to instruct it to turn off. How quickly does the bot need to double press?

from homebridge-switchbot.

github-actions avatar github-actions commented on June 18, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from homebridge-switchbot.

github-actions avatar github-actions commented on June 18, 2024

This issue has been closed as no further activity has occurred.

from homebridge-switchbot.

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.