Skip to content
프로젝트

zanna-37/hass-swipe-navigation

GitHub에서 보기

소개

↔️ 모바일에서 Home Assistant 대시보드 보기를 스와이프하여 전환합니다.

기타 프로젝트

이 수치를 측정하는 방법

What you can do

  • Animated swiping through Dashboard views
  • Configure views to skip over
  • Set the swipe length needed
  • Option to disable browsers default swipe actions.

측정된 스타 증가

in 24h
+2
in 7 days
+2
in 15 days
+6
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Home Assistant Swipe Navigation

Swipe through Home Assistant Dashboard views

Support Last commit Downloads Release HACS HA Community Forum

preview

☕ Swipe Navigation is free and built in my spare time. Every new card that breaks swiping needs its own fix. If the plugin makes your dashboard nicer to use, buy me a coffee on Ko-fi to keep the fixes coming, and ⭐ star it on GitHub so other Home Assistant users can find it.

Features:

  • Animated swiping through Dashboard views
  • Configure views to skip over
  • Set the swipe length needed
  • Option to disable browsers default swipe actions.
  • Option to wrap from first view to last view and vice versa
  • Supports RTL languages
  • Correctly ignores swipes over certain elements (e.g. sliders or maps)

Installation:

Follow only one of these installation methods.

Installation and tracking with the Marketplace (recommended, Home Assistant 2026.11 and later):

Open your Home Assistant instance and open a repository in the Marketplace.

  1. Open the badge above to jump straight to this repository in the Marketplace. Alternatively, open Settings → Marketplace and search for Swipe Navigation: the entry is listed as Home Assistant Swipe Navigation.

  2. On the repository page, select Install, check the version in the dialog, and select Install again. The Marketplace adds the dashboard resource automatically; if your dashboards are in YAML mode, the dialog shows the resource entry to add by hand instead.

  3. Reload the browser to load the new dashboard resource.

Installation and tracking with HACS (Home Assistant 2026.10 and earlier):

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

  1. Open the badge above to jump straight to this repository in HACS. Alternatively, open HACS from the Home Assistant sidebar and search for Swipe Navigation: the entry is listed as Home Assistant Swipe Navigation.

  2. On the repository page, select Download in the bottom right corner. HACS adds the dashboard resource automatically; if your dashboards are in YAML mode, the dialog shows the resource entry to add by hand instead.

  3. Confirm when HACS asks to reload the browser.

Manual installation:
  1. Copy swipe-navigation.js from the latest release into /www/hass-swipe-navigation/

  2. Add the resource in Settings → Dashboards → More Options icon → Resources → Add resource → Set URL as the path below → Set Resource type as JavaScript module.

# Increase the version number (`v=x.y.z`) at end of the URL after each update
url: /local/hass-swipe-navigation/swipe-navigation.js?v=1.0.0
type: module
  1. Refresh the page, may need to clear cache.

Config:

If you just want to use the default config values you don't need to add a config at all.

If you want to modify the configuration, place it in the root of your dashboard configuration under the swipe_nav element (see example below).

Config Options:

Name Type Default Description
animate string none Swipe animations. Can be: none, swipe, fade, flip. The swipe animation should be considered experimental and depending on your setup may appear buggy.
animate_duration number 200 Swipe animation's duration in milliseconds.
edge_margin number 0 Width in pixels of a strip along the left and right screen edges where swipes are ignored, so edge gestures (e.g. swiping in to open the sidebar) keep working. 0 disables it.
enable boolean true Enable or disable the swipe navigation.
enable_mouse_swipe boolean false Enable or disable the swipe navigation via mouse.
enable_on_subviews boolean true Enables swipe navigation while on subviews.
⚠️ Note the difference between this and skip_subviews, which skips over subviews while navigating from regular views.
logger_level string warn Set logging level. Possible values are: verbose, debug, info, warn, error.
prevent_default boolean false Prevent the browsers default horizontal swipe actions.
skip_subviews boolean true Automatically skip subviews.
skip_tabs string A comma separated list of views to skip when swiping. e.g., 1,3,5.
⚠️ Note that tabs count starts at 0, so the first is 0, second is 1, and so on.
swipe_amount number 15 Minimum percent of screen needed to be swiped in order to navigate.
wrap boolean true Wrap from first tab to last tab and vice versa.
skip_hidden boolean true Automatically skip hidden tabs.
⚠️ Setting this to false is deprecated and poses a security risk as it allows a user to reveal a tab they don't have access to.

Example:

Don't just copy the example, it won't fit your needs. Build your own using the config options above.

# You don't necessarily need a configuration.
# Add only the options that differ from the default values.
swipe_nav:
  wrap: false
  enable_mouse_swipe: true
  animate: swipe
  skip_tabs: 5,6,7,8
  prevent_default: true
  swipe_amount: 30
  
views:

If you need help, Mark Watt has an excellent video covering the configuration in this youtube video.

Support the project

Swipe Navigation is built in my spare time. If you want to help, you can:

For developers

Have a look at the CONTRIBUTING file.

Thank you

Big thanks to:

  • @maykar The original author of this project.

Star History

관련 프로젝트 살펴보기

불러오는 중…