Coder Social home page Coder Social logo

Comments (4)

steilerDev avatar steilerDev commented on July 19, 2024 2

Yes, @neutmute this is exactly the behavior, a little bit frustrating but hard to work around. The way I handle it (and in my opinion it works well enough in practice) is the following: Every time HomeKit starts it will check with the accessory (or in this case homebridge) what the TargetState is. If there is no TargetState stored it will use CurrentState as TargetState. That is also the way manuMode works, it never uses the stored TargetState but always asks for the CurrentState when asked about the TargetState.

I don't know rn if manuMode would be feasible for GarageDoor, however, I currently have very limited time to work on this unfortunately. If you come up with a Pull Request I would be happy to integrate it!

from homebridge-openhab2-complete.

neutmute avatar neutmute commented on July 19, 2024

I'm playing with using a sonoff SV as garage door opener. The trick I realised is that HomeKit for garage door (and it appears lock too) - sets a target state and expects the mechanism to actuate to conform to the target state.
By having an external actor (OpenHab, wireless remote) change the lock/garage door state then the current state of the lock no longer matches the target state and HomeKit decides the lock must be moving toward the state it still expects - hence "opening/closing/locking/unlocking".

The question I came to ask steilerDev about is - can we drive HomeKit from OpenHab? My idea is that once the door sensor is out of sync because someone pressed an old remote control - can we update homekit with a new target state? I tried but it appears that homebridge flow is one way - from HomeKit to openHab item binding.

Or alternatively can the manuMode on Window be used on garage?
EDIT: Looking at the source, it appears not as garage is missing the required characteristic - assuming that follows Apple spec

from homebridge-openhab2-complete.

EjvindHald avatar EjvindHald commented on July 19, 2024

I can confirm that the behaviour of the garage is the same as lock. So it has the same problem.

from homebridge-openhab2-complete.

EjvindHald avatar EjvindHald commented on July 19, 2024

I can see that this is closed, but the problem still remains in the latest version 0.10.2.

from homebridge-openhab2-complete.

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.