Compare commits
5 Commits
587cbf2d55
...
c56799c81f
Author | SHA1 | Date | |
---|---|---|---|
|
c56799c81f | ||
|
c7009b6779 | ||
|
ce60768220 | ||
|
4563766403 | ||
|
8a06155f76 |
7
Makefile
7
Makefile
@ -1,4 +1,4 @@
|
||||
.PHONY: default all ui-minimalist config sensors automations
|
||||
.PHONY: default all ui-minimalist config sensors automations lights
|
||||
|
||||
NAMESPACE := home-assistant
|
||||
POD_ID := $(shell kubectl -n home-assistant get pod --selector=app.kubernetes.io/name=home-assistant --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}")
|
||||
@ -6,7 +6,7 @@ CONFIG_FILES := configuration.yaml secrets.yaml input_boolean.yaml ui-lovelace.y
|
||||
|
||||
default: all
|
||||
|
||||
all: ui-minimalist config sensors automations
|
||||
all: ui-minimalist config sensors automations lights
|
||||
|
||||
config:
|
||||
for FILE in $(CONFIG_FILES); do \
|
||||
@ -21,3 +21,6 @@ sensors:
|
||||
|
||||
automations:
|
||||
kubectl cp automations $(NAMESPACE)/$(POD_ID):/config
|
||||
|
||||
lights:
|
||||
kubectl cp lights $(NAMESPACE)/$(POD_ID):/config
|
||||
|
@ -46,6 +46,20 @@ sonos:
|
||||
advertise_addr: !secret sonos_advertise_addr
|
||||
hosts: !secret sonos_hosts
|
||||
|
||||
calendar:
|
||||
- platform: caldav
|
||||
username: !secret caldav_username
|
||||
password: !secret caldav_password
|
||||
url: !secret caldav_url
|
||||
calendars:
|
||||
- Home-assistant
|
||||
days: 14
|
||||
custom_calendars:
|
||||
- name: "GarbageBin"
|
||||
calendar: "Home-assistant"
|
||||
search: "Ta ut soporna"
|
||||
|
||||
|
||||
tts:
|
||||
- platform: google_translate
|
||||
|
||||
@ -72,6 +86,7 @@ script: !include scripts.yaml
|
||||
scene: !include scenes.yaml
|
||||
input_boolean: !include input_boolean.yaml
|
||||
sensor: !include_dir_merge_list sensors
|
||||
light: !include_dir_merge_list lights
|
||||
frontend:
|
||||
themes: !include_dir_merge_named themes
|
||||
|
||||
|
9
lights/diningroom.yaml
Normal file
9
lights/diningroom.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
- platform: mqtt
|
||||
schema: json
|
||||
unique_id: matsal
|
||||
name: matsal
|
||||
command_topic: "zigbee2mqtt/light_dinnertable/set"
|
||||
state_topic: "zigbee2mqtt/light_dinnertable"
|
||||
color_temp: true
|
||||
brightness: true
|
||||
rgb: true
|
@ -10,3 +10,4 @@ views:
|
||||
- !include views/kitchen.yaml
|
||||
- !include views/shoppinglist.yaml
|
||||
- !include views/transport.yaml
|
||||
- !include views/diningroom.yaml
|
||||
|
44
ui_lovelace_minimalist/dashboard/views/diningroom.yaml
Normal file
44
ui_lovelace_minimalist/dashboard/views/diningroom.yaml
Normal file
@ -0,0 +1,44 @@
|
||||
title: "matsal"
|
||||
path: "diningroom"
|
||||
cards:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: "custom:button-card"
|
||||
template: chip_back
|
||||
variables:
|
||||
ulm_chip_back_path: home
|
||||
- type: "custom:button-card"
|
||||
template: card_title
|
||||
name: Matsal
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: "custom:button-card"
|
||||
template: card_light
|
||||
entity: light.matsal
|
||||
variables:
|
||||
ulm_card_light_name: Matsal
|
||||
ulm_card_light_enable_collapse: true
|
||||
ulm_card_light_enable_slider: false
|
||||
ulm_card_light_enable_color: true
|
||||
ulm_card_light_force_background_color: false
|
||||
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: "custom:button-card"
|
||||
template: card_light
|
||||
entity: light.light_dinner_table_1
|
||||
variables:
|
||||
ulm_card_light_name: Lampa-1
|
||||
ulm_card_light_enable_collapse: true
|
||||
ulm_card_light_enable_slider: false
|
||||
ulm_card_light_enable_color: true
|
||||
ulm_card_light_force_background_color: false
|
||||
- type: "custom:button-card"
|
||||
template: card_light
|
||||
entity: light.light_dinner_table_2
|
||||
variables:
|
||||
ulm_card_light_name: Lampa-2
|
||||
ulm_card_light_enable_collapse: true
|
||||
ulm_card_light_enable_slider: false
|
||||
ulm_card_light_enable_color: true
|
||||
ulm_card_light_force_background_color: false
|
@ -56,6 +56,21 @@ cards:
|
||||
variables:
|
||||
ulm_card_person_entity: person.iris
|
||||
ulm_card_person_use_entity_picture: true
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: 'custom:button-card'
|
||||
template: chip_mdi_icon_only
|
||||
variables:
|
||||
ulm_chip_mdi_icon_state_entity: calendar.home_assistant_garbagebin
|
||||
ulm_chip_mdi_icon_only_icon: mdi:trash-can
|
||||
ulm_chip_mdi_icon_only_icon_color: "[[[ return states['calendar.home_assistant_garbagebin'].state == 'off' ? 'gray' : 'red' ]]]"
|
||||
- type: 'custom:button-card'
|
||||
template: chip_mdi_icon_only
|
||||
variables:
|
||||
ulm_chip_mdi_icon_state_entity: inner_storage_water_leak
|
||||
ulm_chip_mdi_icon_only_icon: "[[[ return states['binary_sensor.inner_storage_water_leak'].state == 'off' ? 'mdi:water' : 'mdi:water-alert' ]]]"
|
||||
ulm_chip_mdi_icon_only_icon_color: "[[[ return states['binary_sensor.inner_storage_water_leak'].state == 'off' ? 'gray' : 'red' ]]]"
|
||||
|
||||
- type: 'custom:button-card'
|
||||
template: card_title
|
||||
name: Rooms
|
||||
@ -90,6 +105,18 @@ cards:
|
||||
ulm_custom_card_esh_room_climate_entity:
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: "custom:button-card"
|
||||
template:
|
||||
- card_esh_room
|
||||
- yellow_on
|
||||
name: Matsal
|
||||
icon: mdi:pasta
|
||||
tap_action:
|
||||
action: navigate
|
||||
navigation_path: "diningroom"
|
||||
variables:
|
||||
ulm_custom_card_esh_room_light_entity: light.matsal
|
||||
ulm_custom_card_esh_room_climate_entity:
|
||||
- type: "custom:button-card"
|
||||
template:
|
||||
- card_esh_room
|
||||
|
@ -18,7 +18,7 @@ cards:
|
||||
updated: true
|
||||
name: Avgångar
|
||||
adjust_times: false
|
||||
hide_departed: false
|
||||
hide_departed: true
|
||||
language: sv-SE
|
||||
entities:
|
||||
- sensor.sl_departure_sensor_7152_vastergardsvagen
|
||||
|
Loading…
Reference in New Issue
Block a user