Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request for new types: pushbutton, sensorbutton, sensorswitch? #164

Open
ghosty-be opened this issue Mar 15, 2021 · 0 comments
Open

Comments

@ghosty-be
Copy link
Contributor

a couple somewhat related feature requests into 1 issue:
*Is a type (push)button possible? So a non-latching (so not on or off state)
It should just send a message (for example toggleValue) to a topic but doesn't care about the state (= no change of the icon to active or inactive or only change the icon to active and make it inactive again after 2 seconds just to indicate you pushed it?)

*add this pushbutton functionality into a new type which I would call a "sensorbutton":
Would it be possible to have pushbutton action + sensor capability in 1 device?

I wanted to make something that works like a re-settable counter implemented in my mqtt broker:
something that displays values (=sensor), but when you push on it/select it, it will reset the value to 0 (=pushbutton functionality)
Or to turn the logic around basically a (push)button device that shows a small icon and sensor values?

*And i see also use for a type "sensorswitch" (same idea as above but instead of the pushbutton a switch that shows sensor values?)
For example a sonoff POW:
it should show the wattage as a sensor... but it should be clickable to set the sonoff OFF or ON
The indication that the switch is off is not really needed for this case as the switch is off it will just show 0W?

I was trying something like defining a sensor and then adding settopic to it but that doesn't seem to work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant