HomeGenie Forum
Development => Feature request => Topic started by: enterprised on January 03, 2015, 06:54:00 AM
-
I like to request 2 additional Switch widgets to be added to the default widget list.
- Slider Switch, like the switch type used in the "Security Alarm System" module
- Push Button / Toggle Switch (momentary contact switch)
-
It should be fairly easy to make one yourself, you can see an example of the slider switch here:
http://codepen.io/genielabs/public/ (http://codepen.io/genielabs/public/)
Here is the slider itself:
<select data-ui-field="armdisarm" data-role="slider">
<option value="off">
Disarmed
</option>
<option value="on">
Armed
</option>
</select>
I was thinking of a momentary switch as well for the Wake on LAN app, but I'm not sure how to display one in an elegant manner, any ideas?
-
I was thinking something like the attached mock-up pictures.
"pushbutton_off.png" as the default (Off) state
"pushbutton_activated.png" as the On or Active state, the active image will only show for a second or so before returning to the default (Off) color scheme.
The push button should have a configurable "On state" time. For instance a garage door may only need 0.5 seconds in the On state, for something else you may want to configure it to 20 seconds.
-
This design for the icon might also look nice: http://turbo.premiumpixels.com/wp-content/uploads/2011/07/preview6.jpg