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

Mode widget - Allow configuration to disable popup and instead loop through modes #47

Closed
anordvall opened this issue Jan 15, 2016 · 3 comments
Milestone

Comments

@anordvall
Copy link

If you have a very simple Mode widget you might not want/need a popup with the available modes. Instead, when clicking on the Mode widget it could just loop through the available modes.

E.g. an alarm widget shown on a tablet in the bedrom could for instance have the modes "Off" and "Perimeter alarm". To allow quick access, the mode could just immediately change once you click on the widget.

@anordvall
Copy link
Author

Just an idea; Perhaps even make it possible to hold down on the widget and it will loop one step at a time with e.g. a delay of 1 second between each mode, and when you release it will select the mode.

@igorgladkov igorgladkov added this to the 0.7.59 milestone Jun 12, 2016
@igorgladkov
Copy link
Owner

Mode widget will support spinner config in the next release.
Example of config:

Frame label="{widget:mode,spinner:true}" {
  Selection item=ModeAlarm mappings=[
    armed="Armed {icon:lock}",
    home="At home {icon:home}",
    disarmed="Disarmed {icon:unlock}"
  ]
}

@anordvall
Copy link
Author

Verified to work with the latest release. Thanks!

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

No branches or pull requests

2 participants