Git Product home page Git Product logo

Comments (4)

benzman81 avatar benzman81 commented on July 21, 2024

Can you make a bit more clear what requests are sent by who and what the current behavior looks like and what is the desired behavior?

from homebridge-http-webhooks.

cis2131 avatar cis2131 commented on July 21, 2024

I have a program that listens to my home controller for changes in light states.

When i detect a change (e.g. when a light gets turned on), i send a webhook to your plugin, so the change is also reflected in homekit.

The on events from your plugin gets sent to the home controller, which then turns on the light.

When that happens, my program detects the change, and sends it back to your plugin via webhook.
Your plugin then updates homekit, and sends the on event to the controller once more, causing a loop.

What i would like, is to be able to send the status via webhook call to your plugin, but only updating the change in homekit, without sending it back to the controller.
It could be like an option to the webhook call (eg. &UpdateOnly=true).

Hope it makes sense..

from homebridge-http-webhooks.

benzman81 avatar benzman81 commented on July 21, 2024

Yeah, got you. Well, first I want to tell you, that a button/light does not need to haven an on/off url. If you just want those reflecting the states, remove the urls. Second, thinking about the code, it seems to me that actually a webhook should never run the url request, as in most cases the call will come from another smart home device to update the state. So, there should be no need to send on/off url back to that system as it already knows the state. I will think more about it and might change it pretty soon.

from homebridge-http-webhooks.

benzman81 avatar benzman81 commented on July 21, 2024

Fixed with v0.0.27.

from homebridge-http-webhooks.

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.