Git Product home page Git Product logo

Comments (6)

Zixim avatar Zixim commented on June 19, 2024

that sounds really close to this request : #34

from homebuttons.

trothe avatar trothe commented on June 19, 2024

Right, #34 would probably do the trick. I was hoping to have an icon-off and icon-on option in the panel. Or at least an indication if a button is in the on or off state (e.g. an outline around the icon or inverted colors):

image

If not the question would be why even have a display at all .. I could print a piece of paper and stick it on there. But maybe I do not really understand all the options since I have not yet purchased the product.

from homebuttons.

daj102 avatar daj102 commented on June 19, 2024

I think that the example in #34 gives you an idea of what is possible, @trothe . I haven't done it myself, but the fact that HA can control the labels is the key. For example, I have my HomeButtons configured with one button to start my robot vacuum, and one to stop it (they are different service calls). I could configure an automation to change the label of a single button to start or stop, depending on the status of the vacuum, and then call different services depending on the label. That would save me a button for other uses ...

It's a lot more work, but I think it's a lot more flexible than specifying on and off icons, tying the button to state to decide which one to show, etc. I get where you are coming from to be able to bind the button to a state and show different icons - maybe there is a way to write a blueprint for that?

from homebuttons.

nplan avatar nplan commented on June 19, 2024

Having buttons with state (switches) is not supported currently. Though, it is possible to dynamically change the label with a Home Assistant automation as @daj102 mentioned.

If not the question would be why even have a display at all .. I could print a piece of paper and stick it on there.

@trothe The primary function of the device is to act as a trigger for automations. The display is there exactly so you do not have to print a piece of paper and stick it there 😀

Adding state to buttons (making it behave as a Switch entity in Home Assistant) is tricky because the device is in deep sleep most of the time. If the state were to change externally, the display would show wrong for up to 60 minutes, depending on how the update interval is set by the user.

from homebuttons.

hilsonp avatar hilsonp commented on June 19, 2024

Some love being sent to #34 ❤️

from homebuttons.

nplan avatar nplan commented on June 19, 2024

Label change by automations / mqtt is improved in v2.3.0. Native toggle / switch support is not planned at the moment.

from homebuttons.

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.