This commit is contained in:
darthsandmann 2022-08-09 11:21:13 +02:00
parent 1f3c4e8b6e
commit e46c7eadab
18 changed files with 65 additions and 94 deletions

View File

@ -8,31 +8,31 @@
variables:
entity_1:
entity_id: scene.light_adaptive
icon: "mdi:YOUR_ICON"
icon: "mdi:theme-light-dark"
icon_color: "yellow"
name: Adaptive
name: "Adaptive"
bg_color: "yellow"
entity_2:
entity_id: scene.light_blue
icon: "mdi:YOUR_ICON"
entity_id: scene.light_bright
icon: "mdi:television-play"
icon_color: "blue"
name: Blue
name: "Bright"
bg_color: "blue"
entity_3:
entity_id: scene.light_night
icon: "mdi:YOUR_ICON"
entity_id: "scene.light_night"
icon: "mdi:weather-night"
icon_color: "purple"
name: Night
name: "Night"
bg_color: "purple"
entity_4:
entity_id: script.light_store_restore
icon: "mdi:YOUR_ICON"
entity_id: "script.light_store_restore"
icon: "mdi:lightbulb-group"
icon_color: "green"
name: All On
name: "All On"
bg_color: "green"
entity_5:
entity_id: script.light_store_off
icon: "mdi:YOUR_ICON"
entity_id: "script.light_store_off"
icon: "mdi:lightbulb-group-off-outline"
icon_color: "red"
name: All Off
name: "All Off"
bg_color: "red"

View File

@ -21,16 +21,4 @@
ulm_card_battery_charger_type_entity_id: sensor.ipad_battery_level
ulm_card_battery_battery_level_danger: 30
ulm_card_battery_battery_level_warning: 80
ulm_card_battery_name: iPad
# - type: "horizontal-stack"
# cards:
# - type: 'custom:button-card'
# template: card_battery
# entity: sensor.kais_apple_watch_battery_state
# variables:
# ulm_card_battery_charger_type_entity_id: sensor.kais_apple_watch_battery_state
# ulm_card_battery_battery_level_danger: 30
# ulm_card_battery_battery_level_warning: 80
# ulm_card_battery_name: Watch
ulm_card_battery_name: iPad

View File

@ -1,8 +1,7 @@
script:
#----------------------------------------------------------------------------------#
# L/R
#----------------------------------------------------------------------------------#
# Left
#----------------------------------------------------------------------------------#
pos_left_incr:
alias: pos_left_incr
sequence:
@ -39,7 +38,9 @@ script:
target:
entity_id: timer.pos_timer
mode: single
#----------------------------------------------------------------------------------#
# Right
#----------------------------------------------------------------------------------#
pos_right_incr:
alias: pos_right_incr
sequence:
@ -77,10 +78,9 @@ script:
entity_id: timer.pos_timer
mode: single
#----------------------------------------------------------------------------------#
# Up/Down
#----------------------------------------------------------------------------------#
# Up
#----------------------------------------------------------------------------------#
pos_up:
alias: pos_up
sequence:
@ -169,7 +169,9 @@ script:
target:
entity_id: scene.light_bright
mode: single
#----------------------------------------------------------------------------------#
# Down
#----------------------------------------------------------------------------------#
pos_down:
alias: pos_down
sequence:

View File

@ -5,12 +5,14 @@ automation:
# Button Left: Pos Left
- alias: button_pos_left
trigger:
# Bed
- platform: device
domain: mqtt
device_id: 4f9d195bf907da59e1461a5d2404f606
type: action
subtype: arrow_left_click
discovery_id: 0x0c4314fffee0bb44 action_arrow_left_click
# Door
- platform: device
domain: mqtt
device_id: 5e67efdee83ccceaac84046dfc6c735e
@ -24,12 +26,14 @@ automation:
# Button Left: Pos Right
- alias: button_pos_right
trigger:
# Bed
- platform: device
domain: mqtt
device_id: 4f9d195bf907da59e1461a5d2404f606
type: action
subtype: arrow_right_click
discovery_id: 0x0c4314fffee0bb44 action_arrow_right_click
# Door
- platform: device
domain: mqtt
device_id: 5e67efdee83ccceaac84046dfc6c735e
@ -47,18 +51,21 @@ automation:
# Up
- alias: button_up
trigger:
# Desk
- platform: device
domain: mqtt
device_id: 121e4230e41feb19254fa92ed5335760
type: action
subtype: "on"
discovery_id: 0x2c1165fffebebf6d action_on
# Bed
- platform: device
domain: mqtt
device_id: 4f9d195bf907da59e1461a5d2404f606
type: action
subtype: "on"
discovery_id: 0x0c4314fffee0bb44 action_on
# Door
- platform: device
domain: mqtt
device_id: 5e67efdee83ccceaac84046dfc6c735e
@ -71,18 +78,21 @@ automation:
# Down
- alias: button_down
trigger:
# Desk
- platform: device
domain: mqtt
device_id: 121e4230e41feb19254fa92ed5335760
type: action
subtype: "off"
discovery_id: 0x2c1165fffebebf6d action_off
# Bed
- platform: device
domain: mqtt
device_id: 4f9d195bf907da59e1461a5d2404f606
type: action
subtype: "off"
discovery_id: 0x0c4314fffee0bb44 action_off
# Door
- platform: device
domain: mqtt
device_id: 5e67efdee83ccceaac84046dfc6c735e

View File

@ -1,9 +1,6 @@
## -------------------------------------------------------------------------------------------------##
## Sensoren
## -------------------------------------------------------------------------------------------------##
sensor:
## -----------------------------------------------------------------------------------------------##
## Berechnung der Temperaturveränderung
## Calculation of temperature change
## -----------------------------------------------------------------------------------------------##
- platform: template
sensors:
@ -16,7 +13,7 @@ sensor:
{% if now == ("0.0"|float) %} {% set change = ("0.0"|float) %} {% endif %}
{{ change | round(2) }}
## -----------------------------------------------------------------------------------------------##
## Berechnung der aktuellen Zieltemperatur bzgl Morgen/Nacht, Automatik/Manuell
## Calculation of the target temperature
## -----------------------------------------------------------------------------------------------##
- platform: template
sensors:
@ -71,7 +68,7 @@ sensor:
## -----------------------------------------------------------------------------------------------##
## Unterer + Oberer Schwellwert
## target min and max temperature
## -----------------------------------------------------------------------------------------------##
- platform: template
sensors:
@ -113,9 +110,8 @@ sensor:
{% endif %}
## -----------------------------------------------------------------------------------------------##
## Differenz zu Ziel
## difference to target
## -----------------------------------------------------------------------------------------------##
- platform: template
sensors:

View File

@ -5,7 +5,6 @@ automation:
trigger:
- event: start
platform: homeassistant
condition: []
action:
- data:
name: minimalist-desktop

View File

@ -1,16 +0,0 @@
## -------------------------------------------------------------------------------------------------##
## Circadian Lighting / Flux
## -------------------------------------------------------------------------------------------------##
circadian_lighting:
min_colortemp: 2700
max_colortemp: 6500
interval: 450
transition: 8
switch:
- platform: circadian_lighting
lights_ct:
- light.stripe
- light.direct
max_brightness: 80

View File

@ -3,6 +3,9 @@
## https://github.com/pnbruckner/homeassistant-config/blob/master/python_scripts/light_store.py
## -------------------------------------------------------------------------------------------------##
script:
#----------------------------------------------------------------------------------#
# All Lights
#----------------------------------------------------------------------------------#
light_store_save:
sequence:
- service: python_script.light_store
@ -26,7 +29,9 @@ script:
store_name: flash_store
operation: restore
#----------------------------------------------------------------------------------#
# Ceiling only
#----------------------------------------------------------------------------------#
light_ceiling_save:
sequence:
- service: python_script.light_store
@ -41,6 +46,9 @@ script:
store_name: ceiling_store
operation: restore
#----------------------------------------------------------------------------------#
# Ceiling Bed only
#----------------------------------------------------------------------------------#
light_ceiling_bed_save:
sequence:
- service: python_script.light_store
@ -55,6 +63,9 @@ script:
store_name: ceiling_store
operation: restore
#----------------------------------------------------------------------------------#
# Indirect only
#----------------------------------------------------------------------------------#
light_indirect_save:
sequence:
- service: python_script.light_store

View File

@ -3,6 +3,7 @@ input_boolean:
name: Lights needed
initial: false
automation:
- alias: lights_needed
mode: single
@ -11,6 +12,7 @@ automation:
minutes: "10"
action:
- if:
# Resets at midnight -> OR instead of AND
- condition: or
conditions:
- condition: sun

View File

@ -1,8 +1,3 @@
## -------------------------------------------------------------------------------------------------##
## Yeelight
## -------------------------------------------------------------------------------------------------##
## -------------------------------------------------------------------------------------------------##
## Discovery disable
## -------------------------------------------------------------------------------------------------##
@ -12,7 +7,7 @@ discovery:
## -------------------------------------------------------------------------------------------------##
## Lampen-Konfig
## Lights
## -------------------------------------------------------------------------------------------------##
yeelight:
devices:
@ -45,7 +40,7 @@ yeelight:
## -------------------------------------------------------------------------------------------------##
## Lampengruppen
## Light Groups
## -------------------------------------------------------------------------------------------------##
light:
- platform: group
@ -78,6 +73,4 @@ light:
name: all_lights
entities:
- light.all_direct
- light.all_indirect
- light.all_indirect

View File

@ -1,11 +1,3 @@
input_boolean:
welcome_collapse:
name: welcome_collapse
input_select:
minimalist_ui_switch:
name: Select popup/view
options:
- light.all_indirect
- light.all_direct
name: welcome_collapse

View File

@ -3,13 +3,11 @@
## -------------------------------------------------------------------------------------------------##
wake_on_lan:
switch:
- platform: wake_on_lan
mac: 54:04:A6:BF:1E:43
name: Server
host: ip.wnsrt.de
#switch:
- platform: template
switches:
server_template:

View File

@ -1,14 +0,0 @@
---
button_card_templates: !include_dir_merge_named "custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/"
title: "Testing"
theme: "minimalist-desktop"
background: "var(--background-image)"
swipe_nav:
wrap: true
animate: swipe
prevent_default: true
swipe_amount: 30

View File

@ -15,6 +15,9 @@ swipe_nav:
views:
#----------------------------------------------------------------------------------#
# Dashboard
#----------------------------------------------------------------------------------#
- type: custom:vertical-layout
title: "Overview"
path: 0
@ -61,6 +64,9 @@ views:
cards:
!include lovelace/overview/vacuum.yaml
#----------------------------------------------------------------------------------#
# Lights
#----------------------------------------------------------------------------------#
- type: custom:vertical-layout
title: "Lights"
path: 1
@ -93,7 +99,9 @@ views:
cards:
!include lovelace/lights/lightmenu.yaml
#----------------------------------------------------------------------------------#
# pfSense
#----------------------------------------------------------------------------------#
- type: custom:vertical-layout
title: "pfSense"
path: 2
@ -122,7 +130,9 @@ views:
cards:
!include lovelace/pfsense/traffic.yaml
#----------------------------------------------------------------------------------#
# Climate
#----------------------------------------------------------------------------------#
- type: custom:vertical-layout
title: "Climate"
path: 3