This project has been archived, but a maintained fork can be found here:
https://github.com/zanna-37/hass-swipe-navigation
Big thanks to @zanna-37!
Swipe through Lovelace views on mobile.
Follow only one of these installation methods.
Mark Watt does an excellent job covering configuation in this youtube video.
Config Options:
Name | Type | Default | Description |
---|---|---|---|
swipe_amount | number | 15 | Minimum percent of screen needed to be swiped in order to navigate. |
skip_tabs | string | A comma seperated list of views to skip when swiping. e.g., 1,3,5 . |
|
skip_hidden | boolean | true | Automatically skips hidden tabs. |
wrap | boolean | true | Wrap from first tab to last tab and vice versa. |
prevent_default | boolean | false | Prevents the browsers default horizontal swipe actions. May require a browser refresh to take effect, if using an HA companion app this can be done by closing the app and reopening. |
animate | string | Swipe animations. Can be: swipe , fade , flip . The swipe animation should be considered experimental and depending on your setup may appear buggy. |
Example:
Don't just copy the example, it won't fit your needs. Build your own using the config options above.
swipe_nav:
wrap: false
animate: swipe
skip_tabs: 5,6,7,8
prevent_default: true
swipe_amount: 30
views:
Big thanks to: