Adding dingin room

This commit is contained in:
Jonas Forsberg 2022-07-27 20:21:09 +02:00
parent ce60768220
commit c7009b6779
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9
6 changed files with 73 additions and 4 deletions

View File

@ -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

View File

@ -86,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
View 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

View File

@ -10,3 +10,4 @@ views:
- !include views/kitchen.yaml
- !include views/shoppinglist.yaml
- !include views/transport.yaml
- !include views/diningroom.yaml

View 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

View File

@ -103,9 +103,20 @@ cards:
variables:
ulm_custom_card_esh_room_light_entity: light.light_livinroom_1
ulm_custom_card_esh_room_climate_entity:
- type: grid
columns: 2
- 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