Skip to content

Returns to default view after activity timeout

License

Notifications You must be signed in to change notification settings

bonstio/viewtimeout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

viewtimeout

hacs_badge

Returns to specified default view after activity timeout Home Assistant

image

Important Info

  • If you need to disable the timeout feature temporarily, add ?disable_timeout to the end of your URL.
  • Config is placed in the root of your dashboard/panel code: view_timeout:

Dependencies

In order for redirection to work, it's necessary to first install card-tools version 2.

Config Options

Config Option Type Default Description
timeout: Boolean true enables/disables the timeout feature.
default: String home view to default back to after timeout. Set this to null and use views to allow for per-view only redirection.
duration: Number 15000 timeout in milliseconds
reset: Object gives access to activation choices
reset.mouse_move Boolean false resets the timeout when moving the mouse
reset.mouse_click Boolean true resets timeout on mouse click
reset.in_lovelace Boolean false enables timeout only on Lovelace views
users: Array enable only for certain users (otherwise leave blank)
views: Object choose view redirection or disable their redirection (with "false")

Simple config example

view_timeout:
  timeout: true
  default: home
  duration: 15000

views:

Targeted config example

view_timeout:
  timeout: true
  default: null
  duration: 15000
  views:
    windows: home
    blinds: home

views:

Full config example

view_timeout:
  timeout: true
  default: default_view
  duration: 15000
  reset:
    mouse_move: false
    mouse_click: true
    in_lovelace: false
  users:
    - My Username
  views:
    home: false
    first-camera: home
    second-camera: home

views:

TODO

  • Per View settings (duration, default to different panel)
  • Per User settings (that all settings can be different depending on the user)

About

Returns to default view after activity timeout

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%