Many updates

This commit is contained in:
Philipp Hansen 2022-12-28 17:54:28 +01:00
parent 2bfa07019e
commit 900f180c69
19 changed files with 351 additions and 110 deletions

11
automations.yaml Normal file
View File

@ -0,0 +1,11 @@
- id: '1672243158980'
description: ''
trigger:
- device_id: 85e0a07a3b952671b37fd008f7b2a299
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
condition: []
action: []
mode: single

0
configuration.yaml Executable file → Normal file
View File

View File

@ -25,23 +25,30 @@
icon: "mdi:television-off" #OPTIONAL icon: "mdi:television-off" #OPTIONAL
name: TV OFF name: TV OFF
color: "black" color: "black"
- type: 'custom:button-card' - type: horizontal-stack
color_type: icon cards:
entity: switch.mailbox - type: 'custom:button-card'
name: Mailbox color_type: icon
tap_action: none entity: switch.mailbox
show_label: true name: Mailbox
size: 20% tap_action: none
state: show_label: true
- operator: template size: 20%
value: > state:
[[[ return states['switch.mailbox'].state === 'on' ]]] - operator: template
icon: mdi:mailbox value: >
label: Mail [[[ return states['switch.mailbox'].state === 'on' ]]]
- operator: default icon: mdi:mailbox
icon: mdi:mailbox-outline - operator: default
label: No Mail icon: mdi:mailbox-outline
- type: 'custom:button-card'
#color_type: icon
entity: timer.laundry
name: laundry
tap_action: none
show_label: true
size: 20%
- type: horizontal-stack - type: horizontal-stack
cards: cards:

View File

@ -0,0 +1,7 @@
- type: 'custom:flipdown-timer-card'
entity: timer.laundry
show_hour: auto
show_title: true
show_header: true
theme: dark

View File

@ -1,4 +1,4 @@
- type: 'custom:button-card' - type: "custom:button-card"
template: card_title template: card_title
name: Adaptive name: Adaptive
label: Bulbs label: Bulbs
@ -14,7 +14,6 @@
ulm_card_light_force_background_color: true ulm_card_light_force_background_color: true
ulm_card_light_name: Office ulm_card_light_name: Office
ulm_card_light_enable_collapse: true ulm_card_light_enable_collapse: true
ulm_card_light_enable_color: true
- type: "custom:button-card" - type: "custom:button-card"
template: card_light template: card_light
entity: light.bedroom_bulb_light entity: light.bedroom_bulb_light
@ -25,21 +24,42 @@
ulm_card_light_name: Bedroom ulm_card_light_name: Bedroom
ulm_card_light_enable_collapse: true ulm_card_light_enable_collapse: true
- type: horizontal-stack
cards:
- type: "custom:button-card"
template: card_light
entity: light.bedroom_bulb_toni_light
variables:
ulm_card_light_enable_slider: true
ulm_card_light_enable_color: true
ulm_card_light_force_background_color: true
ulm_card_light_name: "Bedroom Toni"
ulm_card_light_enable_collapse: true
- type: "custom:button-card"
template: card_light
entity: light.bedroom_bulb_philipp_light
variables:
ulm_card_light_enable_slider: true
ulm_card_light_enable_color: true
ulm_card_light_force_background_color: true
ulm_card_light_name: "Bedroom Philipp"
ulm_card_light_enable_collapse: true
- type: "horizontal-stack" - type: "horizontal-stack"
cards: cards:
- type: 'custom:button-card' - type: "custom:button-card"
template: card_input_boolean template: card_input_boolean
entity: switch.adaptive_lighting_default entity: switch.adaptive_lighting_default
variables: variables:
ulm_card_input_boolean_name: Adaptive ulm_card_input_boolean_name: Adaptive
- type: 'custom:button-card' - type: "custom:button-card"
template: card_input_boolean template: card_input_boolean
entity: switch.adaptive_lighting_sleep_mode_default entity: switch.adaptive_lighting_sleep_mode_default
variables: variables:
ulm_card_input_boolean_name: Sleep ulm_card_input_boolean_name: Sleep
- type: 'custom:button-card' - type: "custom:button-card"
template: card_title template: card_title
name: Living Room name: Living Room
label: Lights label: Lights
@ -60,6 +80,8 @@
ulm_card_light_enable_color: true ulm_card_light_enable_color: true
ulm_card_light_force_background_color: true ulm_card_light_force_background_color: true
ulm_card_light_name: Couch ulm_card_light_name: Couch
- type: horizontal-stack
cards:
- type: "custom:button-card" - type: "custom:button-card"
template: card_light template: card_light
entity: light.living_room_switch_lamp_sill entity: light.living_room_switch_lamp_sill
@ -67,6 +89,18 @@
ulm_card_light_enable_color: true ulm_card_light_enable_color: true
ulm_card_light_force_background_color: true ulm_card_light_force_background_color: true
ulm_card_light_name: Sill ulm_card_light_name: Sill
- type: "custom:button-card"
template: card_light
entity: light.livingroom_switch_lamp
variables:
ulm_card_light_enable_color: true
ulm_card_light_force_background_color: true
ulm_card_light_name: Tanne
- type: "custom:button-card"
template: card_title
name: TV
label: Sockets
- type: "custom:button-card" - type: "custom:button-card"
template: card_light template: card_light
@ -75,9 +109,18 @@
ulm_card_light_icon: mdi:television ulm_card_light_icon: mdi:television
ulm_card_light_enable_color: true ulm_card_light_enable_color: true
ulm_card_light_force_background_color: true ulm_card_light_force_background_color: true
ulm_card_light_name: TV ulm_card_light_name: Livingroom
- type: 'custom:button-card' - type: "custom:button-card"
template: card_light
entity: light.bedroom_switch_lamp
variables:
ulm_card_light_icon: mdi:television
ulm_card_light_enable_color: true
ulm_card_light_force_background_color: true
ulm_card_light_name: Bedroom
- type: "custom:button-card"
template: card_title template: card_title
name: Hallway name: Hallway
label: Light label: Light
@ -88,4 +131,4 @@
variables: variables:
ulm_card_light_enable_color: true ulm_card_light_enable_color: true
ulm_card_light_force_background_color: true ulm_card_light_force_background_color: true
ulm_card_light_name: Hallway ulm_card_light_name: Hallway

View File

@ -0,0 +1,30 @@
automation:
- alias: laundry_standard
trigger: []
condition: []
action:
- service: timer.start
data:
duration: "03:20:00"
target:
entity_id: timer.laundry
- alias: laundry_30
trigger: []
condition: []
action:
- service: timer.start
data:
duration: "03:05:00"
target:
entity_id: timer.laundry
- alias: laundry_auto
trigger: []
condition: []
action:
- service: timer.start
data:
duration: "03:40:00"
target:
entity_id: timer.laundry

3
packages/laundry/timer.yaml Executable file
View File

@ -0,0 +1,3 @@
timer:
laundry:
#duration: "03:20:00"

View File

@ -5,4 +5,6 @@ adaptive_lighting:
interval: 20 interval: 20
lights: lights:
- light.office_bulb - light.office_bulb
- light.bedroom_bulb_light - light.bedroom_bulb_light
- light.bedroom_bulb_toni_light
- light.bedroom_bulb_philipp_light

View File

@ -0,0 +1,7 @@
light:
- platform: group
name: "Bedroom Lights"
entities:
- light.bedroom_bulb_toni_light
- light.bedroom_bulb_philipp_light
- light.bedroom_bulb_light

View File

@ -1,57 +0,0 @@
#Guest Room Button Light
automation:
- alias: guestroom_light_button
trigger:
- device_id: c6b9d0a0f7a56e9f2966cdb8cb312614
domain: zha
platform: device
type: remote_button_short_press
subtype: button
action:
- type: toggle
device_id: 1fcba92f6a53183e10c1dc35a9bb82ce
entity_id: light.guestroom_switch_lamp
domain: light
#Bedroom Button Light
- alias: bedroom_light_button
trigger:
- device_id: 5eaa44bd80bff72ec68727486d1259cd
domain: zha
platform: device
type: remote_button_short_press
subtype: button
action:
- type: toggle
device_id: e0e71e574631d1fd7ebf960b883d1b6f
entity_id: light.bedroom_bulb_light
domain: light
# Office Button Light
- alias: office_light_button_single_press
trigger:
- device_id: ab68a51751fcc28c6576ba467a77581d
domain: zha
platform: device
type: remote_button_short_press
subtype: button
action:
- type: toggle
device_id: ce016fbf6d9602740bbabe1fe9915c88
entity_id: light.office_bulb
domain: light
# Office Button Light double press
- alias: office_light_button_double_press
trigger:
- device_id: ab68a51751fcc28c6576ba467a77581d
domain: zha
platform: device
type: remote_button_double_press
subtype: button
action:
- service: light.turn_on
target:
entity_id: light.office_bulb
data:
color_temp: 255
brightness: 255

View File

@ -0,0 +1,99 @@
# Guest Room Button Light
automation:
- alias: guestroom_light_button
trigger:
- device_id: c6b9d0a0f7a56e9f2966cdb8cb312614
domain: zha
platform: device
type: remote_button_short_press
subtype: button
action:
- type: toggle
device_id: 1fcba92f6a53183e10c1dc35a9bb82ce
entity_id: light.guestroom_switch_lamp
domain: light
###### Bedroom ######
# Bedroom Button Philipp Light single press
- alias: bedroom_light_button_philipp_single_press
trigger:
- device_id: 5eaa44bd80bff72ec68727486d1259cd
domain: zha
platform: device
type: remote_button_short_press
subtype: button
action:
- type: toggle
device_id: f472f0815009f1343028a8d6a41b34ae
entity_id: light.bedroom_bulb_philipp_light
domain: light
# Bedroom Button Philipp Light double press
- alias: bedroom_light_button_philipp_double_press
trigger:
- device_id: 5eaa44bd80bff72ec68727486d1259cd
domain: zha
platform: device
type: remote_button_double_press
subtype: button
action:
- type: toggle
device_id: e0e71e574631d1fd7ebf960b883d1b6f
entity_id: light.bedroom_bulb_light
domain: light
# Bedroom Button Philipp Light long press
- alias: bedroom_light_button_philipp_long_press
trigger:
- device_id: 5eaa44bd80bff72ec68727486d1259cd
domain: zha
platform: device
type: remote_button_long_press
subtype: button
action:
- service: light.toggle
target:
entity_id: light.bedroom_lights
# Bedroom Button Toni Light
- alias: bedroom_light_button_toni_single_press
trigger:
- device_id: ab68a51751fcc28c6576ba467a77581d
domain: zha
platform: device
type: remote_button_short_press
subtype: button
action:
- type: toggle
device_id: f472f0815009f1343028a8d6a41b34ae
entity_id: light.bedroom_bulb_toni_light
domain: light
# Bedroom Button Toni Light double press
- alias: bedroom_light_button_toni_double_press
trigger:
- device_id: ab68a51751fcc28c6576ba467a77581d
domain: zha
platform: device
type: remote_button_double_press
subtype: button
action:
- type: toggle
device_id: e0e71e574631d1fd7ebf960b883d1b6f
entity_id: light.bedroom_bulb_light
domain: light
# Bedroom Button Toni Light long press
- alias: bedroom_light_button_toni_long_press
trigger:
- device_id: ab68a51751fcc28c6576ba467a77581d
domain: zha
platform: device
type: remote_button_long_press
subtype: button
action:
- service: light.toggle
target:
entity_id: light.bedroom_lights

View File

@ -4,5 +4,6 @@ light:
name: "Living Room Lights" name: "Living Room Lights"
entities: entities:
- light.livingroom_switch_lamp_table - light.livingroom_switch_lamp_table
- light.livingroom_switch_lamp_couch #- light.livingroom_switch_lamp_couch
- light.living_room_switch_lamp_sill #- light.living_room_switch_lamp_sill
- light.livingroom_switch_lamp

View File

View File

@ -51,7 +51,7 @@ automation:
target: target:
entity_id: script.denon_listen_music entity_id: script.denon_listen_music
# Living Room button Spotify # Living Room button Turn Off
- alias: living_room_turn_off_everything - alias: living_room_turn_off_everything
trigger: trigger:
- device_id: 86384e5da7e890f4a7a84d186383d1c1 - device_id: 86384e5da7e890f4a7a84d186383d1c1
@ -65,4 +65,45 @@ automation:
entity_id: script.denon_tv_turn_off entity_id: script.denon_tv_turn_off
- service: light.turn_off - service: light.turn_off
target: target:
entity_id: light.living_room_lights entity_id: light.living_room_lights
#### Door Button ####
# Living Room door button turn light on
- alias: livingroom_button_door_turn_on
trigger:
- device_id: 85e0a07a3b952671b37fd008f7b2a299
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
action:
- service: light.turn_on
target:
entity_id: light.living_room_lights
- alias: livingroom_button_door_turn_off
trigger:
- device_id: 85e0a07a3b952671b37fd008f7b2a299
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
action:
- service: light.turn_off
target:
entity_id: light.living_room_lights
- alias: livingroom_button_door_turn_off_long
trigger:
- device_id: 85e0a07a3b952671b37fd008f7b2a299
domain: zha
platform: device
type: remote_button_long_press
subtype: dim_down
action:
- service: light.turn_off
target:
entity_id: light.living_room_lights
- service: script.turn_on
target:
entity_id: script.denon_tv_turn_off

50
packages/office/button.yaml Executable file
View File

@ -0,0 +1,50 @@
automation:
# Living Room button turn light off
- alias: office_light_button_turn_off
trigger:
- device_id: ca1b84b5a0bc1aaa9e1a6b856d77b37e
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
action:
- type: turn_off
entity_id: light.office_bulb
device_id: ce016fbf6d9602740bbabe1fe9915c88
domain: light
- type: turn_off
entity_id: light.office_switch_socket
device_id: 343b205f3ed48a715e59c5490050150f
domain: light
# Office button turn light on
- alias: office_light_button_turn_on
trigger:
- device_id: ca1b84b5a0bc1aaa9e1a6b856d77b37e
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
action:
- type: turn_on
entity_id: light.office_bulb
device_id: ce016fbf6d9602740bbabe1fe9915c88
domain: light
# Office button turn light on long
- alias: office_light_button_turn_on_long
trigger:
- device_id: ca1b84b5a0bc1aaa9e1a6b856d77b37e
domain: zha
platform: device
type: remote_button_long_press
subtype: dim_up
action:
- type: turn_on
entity_id: light.office_bulb
device_id: ce016fbf6d9602740bbabe1fe9915c88
domain: light
- type: turn_on
entity_id: light.office_switch_socket
device_id: 343b205f3ed48a715e59c5490050150f
domain: light

7
packages/office/pc.yaml Executable file
View File

@ -0,0 +1,7 @@
wake_on_lan:
switch:
- platform: wake_on_lan
mac: !secret tower_mac
name: tower

View File

@ -1,21 +0,0 @@
wake_on_lan:
switch:
- platform: wake_on_lan
mac: !secret tower_mac
name: tower
#Office Steckdosenleiste
automation:
- alias: office_light_socket
trigger:
- device_id: ab68a51751fcc28c6576ba467a77581d
domain: zha
platform: device
type: remote_button_long_press
subtype: button
action:
- type: toggle
device_id: 343b205f3ed48a715e59c5490050150f
entity_id: light.office_switch_socket
domain: light

View File

@ -33,4 +33,7 @@
- url: /hacsfiles/lovelace-layout-card/layout-card.js - url: /hacsfiles/lovelace-layout-card/layout-card.js
type: module type: module
- url: /hacsfiles/weather-card/weather-card.js - url: /hacsfiles/weather-card/weather-card.js
type: module type: module
- url: /hacsfiles/flipdown-timer-card/flipdown-timer-card.js
type: module

View File

@ -39,8 +39,16 @@ views:
cards: cards:
!include lovelace/dashboard/harmony/volume_control.yaml !include lovelace/dashboard/harmony/volume_control.yaml
- type: custom:vertical-layout - type: custom:vertical-layout
title: "Kunibert" title: "Laundry"
path: 2 path: 2
cards:
- type: custom:vertical-layout
type: vertical-stack
cards:
!include lovelace/dashboard/laundry.yaml
- type: custom:vertical-layout
title: "Kunibert"
path: 3
cards: cards:
- type: custom:vertical-layout - type: custom:vertical-layout
type: vertical-stack type: vertical-stack