Merge pull request #697 from dermotduffy/devcontainer-improvements

Update the card devcontainer dashboard to use storage mode
This commit is contained in:
Dermot Duffy
2022-06-18 17:26:12 -07:00
committed by GitHub
6 changed files with 120 additions and 46 deletions
-28
View File
@@ -1,28 +0,0 @@
---
default_config:
logger:
default: error
logs:
custom_components.frigate: debug
homeassistant.components.mqtt: error
downloader:
download_dir: www
homeassistant:
name: Home
latitude: 0
longitude: 0
elevation: 0
unit_system: metric
currency: USD
time_zone: 'America/Los_Angeles'
demo:
lovelace:
mode: yaml
resources:
- url: http://localhost:41000/frigate-hass-card.js
type: module
-15
View File
@@ -1,15 +0,0 @@
views:
- cards:
- type: custom:frigate-card
name: Frigate Card with Frigate Camera
cameras:
- camera_entity: camera.demo
live_provider: frigate-jsmpeg
id: camera_demo_jsmpeg
- camera_entity: camera.demo
live_provider: ha
id: camera_demo_ha
- type: custom:frigate-card
name: Frigate Card with non-Frigate Camera
cameras:
- camera_entity: camera.demo_camera
+1 -2
View File
@@ -15,8 +15,7 @@ services:
file: ./frigate-hass-integration/docker-compose.yml file: ./frigate-hass-integration/docker-compose.yml
service: hass service: hass
volumes: volumes:
- ./config/ui-lovelace.yaml:/config/ui-lovelace.yaml:ro - ./preconfig:/preconfig.d/02-card:ro
- ./config/configuration.yaml:/config/configuration.yaml:ro
frigate: frigate:
extends: extends:
file: ./frigate-hass-integration/docker-compose.yml file: ./frigate-hass-integration/docker-compose.yml
+104
View File
@@ -0,0 +1,104 @@
{
"version": 1,
"minor_version": 1,
"key": "lovelace",
"data": {
"config": {
"title": "Frigate Card",
"views": [
{
"theme": "Backend-selected",
"title": "Basic",
"path": "basic",
"badges": [],
"cards": [
{
"type": "custom:frigate-card",
"name": "Frigate Card with Frigate Camera",
"cameras": [
{
"camera_entity": "camera.big_buck_bunny",
"live_provider": "frigate-jsmpeg",
"id": "big_buck_bunny_jsmpeg"
},
{
"camera_entity": "camera.big_buck_bunny",
"live_provider": "ha",
"id": "big_buck_bunny_ha"
},
{
"camera_entity": "camera.demo_camera"
}
]
}
]
},
{
"theme": "Backend-selected",
"title": "Menu",
"path": "menu",
"badges": [],
"cards": [
{
"type": "custom:frigate-card",
"cameras": [
{
"camera_entity": "camera.demo_camera",
"title": "Default"
}
]
},
{
"type": "custom:frigate-card",
"cameras": [
{
"camera_entity": "camera.demo_camera",
"title": "Hidden"
}
],
"menu": {
"style": "hidden"
}
},
{
"type": "custom:frigate-card",
"cameras": [
{
"camera_entity": "camera.demo_camera",
"title": "Overlay"
}
],
"menu": {
"style": "overlay"
}
},
{
"type": "custom:frigate-card",
"cameras": [
{
"camera_entity": "camera.demo_camera",
"title": "Hover"
}
],
"menu": {
"style": "hover"
}
},
{
"type": "custom:frigate-card",
"cameras": [
{
"camera_entity": "camera.demo_camera",
"title": "Outside"
}
],
"menu": {
"style": "outside"
}
}
]
}
]
}
}
}
@@ -0,0 +1,14 @@
{
"version": 1,
"minor_version": 1,
"key": "lovelace_resources",
"data": {
"items": [
{
"url": "http://localhost:41000/frigate-hass-card.js",
"type": "module",
"id": "00c459541bac4290af01c51bf9c06ba1"
}
]
}
}