Add homeassistant docker for development

This commit is contained in:
Georgi Gardev
2022-11-03 10:02:37 +02:00
parent ee129ddb89
commit 33786c14c0
3 changed files with 112 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
homeassistant:
packages: !include_dir_named packages/
logger:
default: info
logs:
hacs: debug
lovelace:
mode: yaml
resources:
- type: module
url: /hacsfiles/button-card/button-card.js
- type: module
url: /hacsfiles/lovelace-state-switch/state-switch.js
- type: module
url: http://localhost:5000/time-picker-card.js
dashboards:
lovelace-home:
mode: yaml
title: Home
icon: mdi:home
show_in_sidebar: true
filename: ui-lovelace.yaml
+83
View File
@@ -0,0 +1,83 @@
title: Home
views:
- title: Grid
path: grid
cards:
- type: grid
cards:
- type: button
icon: mdi:reload
name: Theme
tap_action:
action: call-service
service: frontend.reload_themes
- type: custom:time-picker-card
entity: input_datetime.test_date_time
link_values: true
hour_mode: 12
hour_step: 2
minute_step: 3
layout:
hour_mode: single
name: inside
hide:
name: false
- type: entities
entities:
- input_datetime.test_date_time
- input_datetime.test_date_time
- input_datetime.test_date_time
- input_datetime.test_date_time
- input_datetime.test_date_time
- input_datetime.test_date_time
- title: dev
path: dev
cards:
- type: vertical-stack
cards:
- type: markdown
content: "# 🕰 Time Picker Card dev"
- type: entities
entities:
- input_datetime.test_date_time
- type: horizontal-stack
cards:
- type: custom:time-picker-card
entity: input_datetime.test_date_time
name: Alarm time
hour_mode: 24
hour_step: 2
- type: custom:time-picker-card
entity: input_datetime.test_date_time
hour_mode: 12
layout:
hour_mode: single
hide:
name: true
- type: custom:time-picker-card
entity: input_datetime.test_date_time
- type: custom:time-picker-card
entity: input_datetime.test_date_time
hide:
seconds: false
- type: horizontal-stack
cards:
- type: custom:time-picker-card
entity: input_datetime.test_date_time
hour_mode: 12
hide:
name: true
- type: custom:time-picker-card
entity: input_datetime.test_date_time
link_values: true
hour_mode: 12
hour_step: 2
minute_step: 3
layout:
hour_mode: single
hide:
name: false
+2 -1
View File
@@ -22,7 +22,8 @@
"test": "./node_modules/karma/bin/karma start ./test/karma.conf.js", "test": "./node_modules/karma/bin/karma start ./test/karma.conf.js",
"release-patch": "npm version patch && git push origin master --tags", "release-patch": "npm version patch && git push origin master --tags",
"release-minor": "npm version minor && git push origin master --tags", "release-minor": "npm version minor && git push origin master --tags",
"release-major": "npm version major && git push origin master --tags" "release-major": "npm version major && git push origin master --tags",
"start:ha": "docker run --rm -p8124:8123 -v $(pwd)/devtools/homeassistant:/config homeassistant/home-assistant:latest",
}, },
"dependencies": { "dependencies": {
"custom-card-helpers": "^1.6.6", "custom-card-helpers": "^1.6.6",