Giter Club home page Giter Club logo

Comments (5)

dandantheflyingman avatar dandantheflyingman commented on May 27, 2024 1

I was thinking about this too and would a halfway point be the ability to execute a script locally? So say the correct message comes in on a mqtt topic, and it responds by running a script with a set of parameters?

In a script the user can make it as advanced or as simple as they like.

Does that open any security concerns?

from mqtt-io.

flyte avatar flyte commented on May 27, 2024

Hi Sudhansu,

I wrote a whole explanation as to why I don't want to include this in this project, but the more I think about it, the more I'm leaning towards thinking it's a good idea.

Pros:

  • No reliance on any external service to handle simple local logic
  • More responsive

Cons:

  • Configuration/documentation complication
  • Distributed logic - it's much simpler to keep all automation logic to one place (OpenHAB, Home Assistant etc.) so it's easier to debug

Things to think about:

  • Push to toggle vs direct mapping - do you want to toggle the output on each button press or when the button is off, the output should be off?

Can you think of any other pros/cons/thoughts?

from mqtt-io.

ssjha avatar ssjha commented on May 27, 2024

Hi Ellis
Thanks for having a detailed thought about the feature. I understand that implementation will have its complication.

You have listed the pros/cons correctly and I can't think of any additional ones. I believe the primary advantage is with this, the PI module will become a self contained unit and with a small footprint of PI zero/ZeroW, it can be setup as an add-on to the existing controls.

The button behavior can be configurable as it depends on the type of button used.

  1. Follow the switch (0 for OFF, 1 for ON)
  2. Inverse of the switch (1 for OFF, 0 for ON)
  3. Toggle (change the state from ON to OFF and vice versa)
    This will be inline with the existing functionalities implemented using the inverse and toggle functionality. I am using a push button momentary switch and expect the toggle behavior.

from mqtt-io.

flyte avatar flyte commented on May 27, 2024

from mqtt-io.

c3reeman avatar c3reeman commented on May 27, 2024

Was there any change on this ? I too am looking to be able to tie an input to an output or multiple outputs, it would be great for simplicity and avoid home assistant clutter

from mqtt-io.

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.