-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7414654
commit 88ca719
Showing
5 changed files
with
95 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
default_config: | ||
|
||
demo: | ||
|
||
browser_mod: | ||
|
||
lovelace: | ||
mode: yaml | ||
resources: | ||
- url: /local/card-mod.js | ||
type: module | ||
dashboards: | ||
lovelace-yaml: | ||
mode: yaml | ||
title: yaml | ||
filename: lovelace.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# | ||
# Docker services for testing Home Assistant integrations and plugins | ||
# | ||
# Automaatically sets up configuration adds a user and skips the onboarding | ||
# | ||
# Username: dev | ||
# Password: dev | ||
# | ||
# Two services, 'prod' and 'dev' run the latest production and dev docker images respectively. | ||
# | ||
# Start with | ||
# $ docker-compose up prod | ||
# or | ||
# $ docker-compose up dev | ||
# | ||
# When done, clean up with | ||
# $ docker-compose rm -f | ||
# | ||
|
||
x-files: &x-files | ||
- ../custom_components:/config/custom_components | ||
- ./configuration.yaml:/config/configuration.yaml | ||
- ./lovelace.yaml:/config/lovelace.yaml | ||
- ./views:/config/views | ||
|
||
x-command: &x-command | | ||
bash -c ' | ||
mkdir /config/www/ | ||
curl https://raw.githubusercontent.com/thomasloven/lovelace-card-mod/master/card-mod.js --output /config/www/card-mod.js && | ||
hass --script ensure_config -c /config && | ||
hass --script auth -c /config add dev dev && | ||
echo " | ||
{ | ||
\"data\": { | ||
\"done\": [ | ||
\"user\", | ||
\"core_config\", | ||
\"integration\" | ||
] | ||
}, | ||
\"key\": \"onboarding\", | ||
\"version\": 3 | ||
} | ||
" > /config/.storage/onboarding && | ||
hass -v -c /config' | ||
version: '3.5' | ||
services: | ||
prod: &base_service | ||
image: homeassistant/home-assistant:latest | ||
volumes: *x-files | ||
ports: | ||
- "5001:8123" | ||
command: *x-command | ||
|
||
dev: | ||
<<: *base_service | ||
image: homeassistant/home-assistant:dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: browser_mod | ||
views: | ||
- title: Player | ||
cards: | ||
- type: custom:browser-player | ||
- type: button | ||
entity: sun.sun | ||
name: popup | ||
tap_action: | ||
action: call-service | ||
service: browser_mod.popup | ||
service_data: | ||
deviceID: this | ||
title: Test | ||
card: | ||
type: markdown | ||
content: Hello! | ||
|