HomeGenie Forum

Development => Feature request => Topic started by: enterprised on January 03, 2015, 06:54:00 AM

Title: Additional Switch widgets
Post 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.

Title: Re: Additional Switch widgets
Post by: mvdarend on January 04, 2015, 08:32:28 AM
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:
Code: [Select]
      <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?
Title: Re: Additional Switch widgets
Post by: enterprised on January 04, 2015, 09:34:02 PM
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.
Title: Re: Additional Switch widgets
Post by: RoChess on January 04, 2015, 11:39:07 PM
This design for the icon might also look nice: http://turbo.premiumpixels.com/wp-content/uploads/2011/07/preview6.jpg