Skip to content

william57m/ha-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HomeAssistant React Dashboard

Motivation

The goal of this project is to have a wall mounted tablet running a dashboard to control my home.

The goal is really to have one screen without any menu so I can have a global view of the more important thing in the home: alarm, lights, camera.

Getting started

Install

npm run install

Run a development server

npm run start

Add the following entry to your configuration.yaml file:

panel_custom:
  - name: react-panel
    sidebar_title: React Panel
    sidebar_icon: mdi:react
    url_path: react-panel-dev
    js_url: http://host:port/main.js
    embed_iframe: true
    config:
      name: World

Restart Home Assistant.

Deploy

To deploy it, you need to make a build

npm run build

This will generate a new build of the panel in the dist folder. Copy the content of this folder and place it in <home assistant config>/www/react-panel.

This will make it available from Home Assistant via the url /local/react-panel/main.js.

We then have to configure Home Assitant to use it:

panel_custom:
  - name: react-panel
    sidebar_title: React Panel
    sidebar_icon: mdi:react
    url_path: react-panel-prod
    js_url: /local/react-panel/main.js
    embed_iframe: true
    config:
      name: World

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published