sieren/Homepoint

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

ghosty-be opened this issue · 0 comments

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 :)