LuisFDuarte / ha-dashboard

Fork of react componentes to contrib in the future with other react components for HA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Fork of react componentes to contrib in the future with other react components for HA


Languages

Language:JavaScript 81.6%Language:CSS 18.4%