This commit is contained in:
darthsandmann 2022-08-02 14:03:44 +02:00
parent 3b5df0ad86
commit 9db4448fa4
27 changed files with 436 additions and 245 deletions

View File

@ -3,6 +3,8 @@
- type: 'custom:button-card'
template: card_title
name: Day/Night
- type: custom:button-card
template: custom_card_httpedo13_sun
- type: "horizontal-stack"
cards:
- type: "custom:button-card"

View File

@ -0,0 +1,31 @@
- type: 'custom:button-card'
template: card_title
name: Adaptive
- type: "horizontal-stack"
cards:
- type: 'custom:button-card'
template: card_input_boolean
entity: switch.adaptive_lighting_default
variables:
ulm_card_input_boolean_name: Adaptive
- type: 'custom:button-card'
template: card_input_boolean
entity: switch.adaptive_lighting_sleep_mode_default
variables:
ulm_card_input_boolean_name: Sleep
- type: "horizontal-stack"
cards:
- type: 'custom:button-card'
template: card_input_boolean
entity: switch.adaptive_lighting_adapt_brightness_default
variables:
ulm_card_input_boolean_name: Brightness
- type: 'custom:button-card'
template: card_input_boolean
entity: switch.adaptive_lighting_adapt_color_default
variables:
ulm_card_input_boolean_name: Color

View File

@ -7,26 +7,10 @@
- type: 'custom:button-card'
template: card_light_slider_collapse
variables:
ulm_card_light_slider_collapse_name: Ceiling 1
ulm_card_light_slider_collapse_name: Ceiling
ulm_card_light_enable_collapse: false
ulm_card_light_name: Ceiling 1
entity: light.ceiling1
- type: 'custom:button-card'
template: card_light_slider_collapse
variables:
ulm_card_light_slider_collapse_name: Ceiling 2
ulm_card_light_enable_collapse: false
ulm_card_light_name: Ceiling 2
entity: light.ceiling2
- type: "horizontal-stack"
cards:
- type: 'custom:button-card'
template: card_light_slider_collapse
variables:
ulm_card_light_slider_collapse_name: Ceiling 3
ulm_card_light_enable_collapse: false
ulm_card_light_name: Ceiling 3
entity: light.ceiling3
ulm_card_light_name: Ceiling
entity: light.ceiling
- type: 'custom:button-card'
template: card_light_slider_collapse
variables:

View File

@ -7,10 +7,10 @@
- card_scenes
variables:
entity_1:
entity_id: scene.light_flux
entity_id: scene.light_adaptive
icon: "mdi:YOUR_ICON"
icon_color: "yellow"
name: Flux
name: Adaptive
bg_color: "yellow"
entity_2:
entity_id: scene.light_blue
@ -25,25 +25,14 @@
name: Night
bg_color: "purple"
entity_4:
entity_id: scene.light_alloff
entity_id: script.light_store_restore
icon: "mdi:YOUR_ICON"
icon_color: "green"
name: All Off
name: All On
bg_color: "green"
entity_5:
entity_id: scene.light_alloff
entity_id: script.light_store_off
icon: "mdi:YOUR_ICON"
icon_color: "red"
name: All Off
bg_color: "red"
- type: 'custom:button-card'
template: card_title
name: Switches
- type: 'custom:button-card'
template: card_input_boolean
entity: switch.circadian_lighting_circadian_lighting
variables:
ulm_card_input_boolean_name: Circadian Lighting

View File

@ -1,6 +1,6 @@
- type: 'custom:button-card'
template: card_title
name: Batteries
#- type: 'custom:button-card'
# template: card_title
# name: Batteries
- type: "horizontal-stack"
@ -22,3 +22,15 @@
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

View File

@ -1,28 +1,29 @@
- type: 'custom:button-card'
template: card_title
name: Climate
#- type: 'custom:button-card'
# template: card_title
# name: Climate
- type: 'custom:button-card'
template: card_generic
entity: sensor.climate_temp_recommendation
#- type: custom:simple-weather-card
# entity: weather.pirateweather
- type: custom:simple-weather-card
entity: weather.pirateweather
- type: 'custom:button-card'
template: card_graph
entity: sensor.temperature_kai_temperature
variables:
ulm_card_graph_color: "var(--google-blue)"
ulm_card_graph_name: Temperature
ulm_card_graph_entity: sensor.temperature_kai_temperature
ulm_card_graph_color2: "var(--google-green)"
ulm_card_graph_entity2: sensor.temperature_outside_pirateweather
ulm_card_graph_type: fill
ulm_card_graph_hours: 6
- type: custom:apexcharts-card
graph_span: 6h
header:
show: false
series:
- entity: sensor.temperature_kai_temperature
type: line
name: Inside
group_by:
func: avg
duration: 30min
- entity: sensor.temperature_outside_pirateweather
type: column
name: Outside
group_by:
func: avg
duration: 30min
- type: "horizontal-stack"
@ -38,3 +39,7 @@
entity: sensor.temperature_kai_pressure
variables:
ulm_card_generic_name: Pressure
- type: custom:weather-card
entity: weather.pirateweather

View File

@ -1,6 +1,6 @@
- type: 'custom:button-card'
template: card_title
name: Energy
#- type: 'custom:button-card'
# template: card_title
# name: Energy
- type: 'custom:button-card'

View File

@ -0,0 +1,26 @@
- type: 'custom:home-feed-card'
title: Feed
card_id: main_feed
show_empty: false
more_info_on_tap: true
state_color: true
compact_mode: true
entities:
- entity: sensor.climate_temp_recommendation
name: Recommendation
content_template: '{{state}}'
- entity: binary_sensor.warning_duisburg_stadt_1
exclude_states:
- "Safe"
- entity: binary_sensor.warning_duisburg_stadt_2
exclude_states:
- "Safe"
- entity: binary_sensor.warning_duisburg_stadt_3
exclude_states:
- "Safe"
- entity: binary_sensor.warning_duisburg_stadt_4
exclude_states:
- "Safe"
- entity: binary_sensor.warning_duisburg_stadt_5
exclude_states:
- "Safe"

View File

@ -1,6 +1,6 @@
- type: 'custom:button-card'
template: card_title
name: Lights
#- type: 'custom:button-card'
# template: card_title
# name: Lights
- type: "horizontal-stack"
@ -24,8 +24,16 @@
entity: light.all_direct
- type: 'custom:button-card'
- type: "horizontal-stack"
cards:
- type: 'custom:button-card'
template: card_input_boolean
entity: switch.circadian_lighting_circadian_lighting
entity: switch.adaptive_lighting_default
variables:
ulm_card_input_boolean_name: Circadian Lighting
ulm_card_input_boolean_name: Adaptive
- type: 'custom:button-card'
template: card_input_boolean
entity: switch.adaptive_lighting_sleep_mode_default
variables:
ulm_card_input_boolean_name: Sleep

View File

@ -0,0 +1,15 @@
#- type: 'custom:button-card'
# template: card_title
# name: Multimedia
- type: "custom:button-card"
template: card_media_player
entity: media_player.denon_avr_x1100w
name: Denon
variables:
ulm_card_media_player_more_info: true
ulm_card_media_player_collapsible: true
ulm_card_media_player_enable_volume_slider: true
ulm_card_media_player_enable_controls: true
ulm_card_media_player_enable_art: false

View File

@ -1,6 +1,6 @@
- type: 'custom:button-card'
template: card_title
name: NAS
#- type: 'custom:button-card'
# template: card_title
# name: NAS
- type: "horizontal-stack"

View File

@ -0,0 +1,20 @@
#- type: 'custom:button-card'
# template: card_title
# name: Vacuum
- type: 'custom:valetudo-map-card'
vacuum: valetudo_rockrobo
title:
show_status: false
show_battery_level: false
show_start_button: false
show_pause_button: false
show_stop_button: false
show_home_button: false
show_locate_button: false
- type: "custom:button-card"
template: "card_vacuum"
entity: vacuum.valetudo_rockrobo

View File

@ -1,6 +1,8 @@
- type: 'custom:button-card'
template: card_title
name: Home Assistant
#- type: 'custom:button-card'
# template: card_title
# name: Home Assistant
- type: "custom:button-card"
template: "card_welcome_scenes"
triggers_update: input_boolean.welcome_collapse
@ -9,10 +11,10 @@
ulm_card_welcome_scenes_collapse: input_boolean.welcome_collapse
ulm_weather: weather.pirateweather
entity_1:
entity_id: scene.light_flux
entity_id: scene.light_adaptive
icon: "mdi:theme-light-dark"
icon_color: "yellow"
name: "Flux"
name: "Adaptive"
bg_color: "yellow"
entity_2:
entity_id: scene.light_blue
@ -33,12 +35,8 @@
name: "All On"
bg_color: "green"
entity_5:
entity_id: "scene.light_alloff"
entity_id: "script.light_store_off"
icon: "mdi:lightbulb-group-off-outline"
icon_color: "red"
name: "All Off"
bg_color: "red"
- type: custom:button-card
template: custom_card_httpedo13_sun

View File

@ -0,0 +1,121 @@
automation:
## -----------------------------------------------------------------------------------------------##
## Notification on state change
## -----------------------------------------------------------------------------------------------##
- alias: "climate_recommendation_close"
trigger:
- platform: state
entity_id: sensor.climate_temp_recommendation
to: 'close window'
action:
- service: notify.notify
data:
message: "Close the window."
- alias: "climate_recommendation_open"
trigger:
- platform: state
entity_id: sensor.climate_temp_recommendation
to: 'open window'
action:
- service: notify.notify
data:
message: "Open the window."
## -----------------------------------------------------------------------------------------------##
## Trigger alle 15min um Abfrage und Temperaturanpassung durchzuführen
## -----------------------------------------------------------------------------------------------##
# - alias: climate_set_auto
# initial_state: on
# trigger:
# - platform: time_pattern
# minutes: '/5'
# - platform: state
# entity_id: sensor.climate_temp
# condition:
# - condition: template
# value_template: '{{ states.climate.kai.state != "unavailable" }}'
# action:
# - service: script.turn_on
# entity_id: script.climate_set
# - delay: '00:20'
# - service: script.turn_on
# entity_id: script.climate_set
# - service: input_number.set_value
# data_template:
# entity_id: input_number.climate_temp_last
# value: '{{ states("sensor.aqara_temperature_kai_temperature")|float }}'
# - alias: climate_set_manual
# initial_state: on
# trigger:
# - platform: state
# entity_id: input_number.climate_temp
# condition:
# - condition: template
# value_template: '{{ states.climate.kai.state != "unavailable" }}'
# action:
# - service: input_boolean.turn_off
# entity_id: input_boolean.climate_auto
# - service: script.turn_on
# entity_id: script.climate_set
# - delay: '00:20'
# - service: script.turn_on
# entity_id: script.climate_set
# - alias: climate_set_power_off
# initial_state: on
# trigger:
# - platform: state
# entity_id: input_boolean.climate_power
# to: "off"
# action:
# - service: climate.turn_off
# entity_id: climate.kai
# - delay: '00:20'
# - service: climate.turn_off
# entity_id: climate.kai
# - alias: climate_set_power_on
# initial_state: on
# trigger:
# - platform: state
# entity_id: input_boolean.climate_power
# to: "on"
# action:
# - service: climate.turn_on
# entity_id: climate.kai
# - delay: '00:20'
# - service: climate.turn_on
# entity_id: climate.kai
## -----------------------------------------------------------------------------------------------##
## Trigger alle 5min, wenn Wochentag -> aktiviere Weekday-Boolean
## -----------------------------------------------------------------------------------------------##
- alias: climate_weekday
initial_state: on
trigger:
platform: time_pattern
minutes: '/5'
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
service: input_boolean.turn_on
entity_id: input_boolean.climate_weekday
## -----------------------------------------------------------------------------------------------##
## Trigger alle 5min, wenn Wochenende -> deaktiviere Weekday-Boolean
## -----------------------------------------------------------------------------------------------##
- alias: climate_weekend
initial_state: on
trigger:
platform: time_pattern
minutes: '/5'
condition:
- condition: time
weekday:
- sat
- sun
action:
service: input_boolean.turn_off
entity_id: input_boolean.climate_weekday

View File

@ -1,99 +0,0 @@
automation:
## -----------------------------------------------------------------------------------------------##
## Trigger alle 15min um Abfrage und Temperaturanpassung durchzuführen
## -----------------------------------------------------------------------------------------------##
- alias: climate_set_auto
initial_state: on
trigger:
- platform: time_pattern
minutes: '/5'
- platform: state
entity_id: sensor.climate_temp
condition:
- condition: template
value_template: '{{ states.climate.kai.state != "unavailable" }}'
action:
- service: script.turn_on
entity_id: script.climate_set
- delay: '00:20'
- service: script.turn_on
entity_id: script.climate_set
- service: input_number.set_value
data_template:
entity_id: input_number.climate_temp_last
value: '{{ states("sensor.aqara_temperature_kai_temperature")|float }}'
- alias: climate_set_manual
initial_state: on
trigger:
- platform: state
entity_id: input_number.climate_temp
condition:
- condition: template
value_template: '{{ states.climate.kai.state != "unavailable" }}'
action:
- service: input_boolean.turn_off
entity_id: input_boolean.climate_auto
- service: script.turn_on
entity_id: script.climate_set
- delay: '00:20'
- service: script.turn_on
entity_id: script.climate_set
- alias: climate_set_power_off
initial_state: on
trigger:
- platform: state
entity_id: input_boolean.climate_power
to: "off"
action:
- service: climate.turn_off
entity_id: climate.kai
- delay: '00:20'
- service: climate.turn_off
entity_id: climate.kai
- alias: climate_set_power_on
initial_state: on
trigger:
- platform: state
entity_id: input_boolean.climate_power
to: "on"
action:
- service: climate.turn_on
entity_id: climate.kai
- delay: '00:20'
- service: climate.turn_on
entity_id: climate.kai
## -----------------------------------------------------------------------------------------------##
## Trigger alle 5min, wenn Wochentag -> aktiviere Weekday-Boolean
## -----------------------------------------------------------------------------------------------##
- alias: climate_weekday
initial_state: on
trigger:
platform: time_pattern
minutes: '/5'
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- sun
action:
service: input_boolean.turn_on
entity_id: input_boolean.climate_weekday
## -----------------------------------------------------------------------------------------------##
## Trigger alle 5min, wenn Wochenende -> deaktiviere Weekday-Boolean
## -----------------------------------------------------------------------------------------------##
- alias: climate_weekend
initial_state: on
trigger:
platform: time_pattern
minutes: '/5'
condition:
- condition: time
weekday:
- sat
action:
service: input_boolean.turn_off
entity_id: input_boolean.climate_weekday

View File

@ -14,6 +14,11 @@ homeassistant:
- 10.10.10.0/24
lovelace:
mode: yaml
resources: !include ../../resources.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
@ -34,6 +39,7 @@ history:
map:
mobile_app:
person:
python_script:
ssdp:
system_health:
timer:

View File

@ -1,30 +0,0 @@
lovelace:
mode: yaml
resources:
- url: /hacsfiles/button-card/button-card.js
type: module
- url: /hacsfiles/light-entity-card/light-entity-card.js
type: module
- url: /hacsfiles/lovelace-auto-entities/auto-entities.js
type: module
- url: /hacsfiles/lovelace-card-mod/card-mod.js
type: module
- url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
type: module
- url: /hacsfiles/mini-media-player/mini-media-player-bundle.js
type: module
- url: /hacsfiles/my-cards/my-slider.js
type: module
#- url: /hacsfiles/my-cards/my-slider-v2.js
# type: module
- url: /hacsfiles/my-cards/my-button.js
type: module
- url: /hacsfiles/simple-weather-card/simple-weather-card-bundle.js
type: module
- url: /hacsfiles/home-assistant-sun-card/home-assistant-sun-card.js
type: module
- url: /hacsfiles/lovelace-layout-card/layout-card.js
type: module
- url: /hacsfiles/lovelace-state-switch/state-switch.js
type: module

View File

@ -48,8 +48,8 @@ homekit:
name: Lights Off
scene.light_blue:
name: Lights Blue
scene.light_flux:
name: Lights Flux
scene.light_adaptive:
name: Lights Adaptive
scene.light_night:
name: Lights Night
switch.circadian_lighting_circadian_lighting:

View File

@ -0,0 +1,18 @@
adaptive_lighting:
- name: "default"
lights:
- light.stripe
- light.direct
prefer_rgb_color: false
transition: 45
initial_transition: 1
interval: 90
min_brightness: 1
max_brightness: 80
min_color_temp: 2700
max_color_temp: 6500
sleep_brightness: 1
sleep_color_temp: 1000
take_over_control: true
detect_non_ha_changes: false
only_once: false

View File

@ -1,15 +1,14 @@
scene:
- name: light_alloff
entities:
light.all_lights: false
- name: light_flux
- name: light_adaptive
entities:
light.all_direct: false
light.all_indirect: true
switch.circadian_lighting_circadian_lighting: on
switch.adaptive_lighting_default: on
switch.adaptive_lighting_sleep_mode_default: off
- name: light_blue
entities:
switch.circadian_lighting_circadian_lighting: off
switch.adaptive_lighting_default: off
switch.adaptive_lighting_sleep_mode_default: off
light.all_direct: false
light.all_indirect:
rgb_color: [0, 0, 255]
@ -17,9 +16,10 @@ scene:
brightness: 20
- name: light_night
entities:
switch.circadian_lighting_circadian_lighting: off
switch.adaptive_lighting_default: on
light.all_direct: false
light.all_indirect:
rgb_color: [255, 139, 21]
state: true
brightness: 1
switch.adaptive_lighting_sleep_mode_default: on

View File

@ -10,9 +10,9 @@ script:
store_name: flash_store
entity_id:
- light.bed
- light.closet
- light.ceiling
- light.desk
- light.direct
- light.bed_ceiling
- light.tv
light_store_off:
sequence:

View File

@ -19,28 +19,28 @@ yeelight:
10.10.10.82:
name: ceiling1
save_on_change: False
transition: 2500
transition: 1500
10.10.10.83:
name: ceiling2
save_on_change: False
transition: 2500
transition: 1500
10.10.10.80:
name: ceiling3
save_on_change: False
transition: 2500
transition: 1500
10.10.10.81:
name: bed_ceiling
save_on_change: False
transition: 2500
transition: 1500
10.10.10.84:
name: bed
save_on_change: False
transition: 2500
transition: 1500
model: strip1
10.10.10.85:
name: desk
save_on_change: False
transition: 2500
transition: 1500
model: strip1

View File

@ -21,3 +21,4 @@ sensor:
temperature_outside_pirateweather:
value_template: '{{ states.weather.pirateweather.attributes.temperature }}'
friendly_name: 'Outside Temperature'
unit_of_measurement: '°C'

36
resources.yaml Normal file
View File

@ -0,0 +1,36 @@
- url: /hacsfiles/button-card/button-card.js
type: module
- url: /hacsfiles/light-entity-card/light-entity-card.js
type: module
- url: /hacsfiles/lovelace-auto-entities/auto-entities.js
type: module
- url: /hacsfiles/lovelace-card-mod/card-mod.js
type: module
- url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
type: module
- url: /hacsfiles/mini-media-player/mini-media-player-bundle.js
type: module
- url: /hacsfiles/my-cards/my-slider.js
type: module
- url: /hacsfiles/my-cards/my-button.js
type: module
- url: /hacsfiles/simple-weather-card/simple-weather-card-bundle.js
type: module
- url: /hacsfiles/home-assistant-sun-card/home-assistant-sun-card.js
type: module
- url: /hacsfiles/lovelace-layout-card/layout-card.js
type: module
- url: /hacsfiles/lovelace-state-switch/state-switch.js
type: module
- url: /hacsfiles/lovelace-valetudo-map-card/valetudo-map-card.js
type: module
- url: /hacsfiles/apexcharts-card/apexcharts-card.js
type: module
- url: /hacsfiles/lovelace-home-feed-card/lovelace-home-feed-card.js
type: module
- url: /hacsfiles/hass-swipe-navigation/swipe-navigation.js
type: module
- url: /hacsfiles/weather-card/weather-card.js
type: module
- url: /hacsfiles/lovelace-mushroom/mushroom.js
type: module

14
ui-lovelace-testing.yaml Normal file
View File

@ -0,0 +1,14 @@
---
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

@ -7,28 +7,59 @@ theme: "minimalist-desktop"
background: "var(--background-image)"
swipe_nav:
wrap: true
animate: swipe
prevent_default: true
swipe_amount: 30
views:
- title: "Overview"
- type: custom:vertical-layout
title: "Overview"
path: 0
cards:
- type: "vertical-stack"
## Column 1
- type: custom:vertical-layout
type: "vertical-stack"
cards:
!include lovelace/overview/welcome.yaml
- type: "vertical-stack"
- type: custom:vertical-layout
type: "vertical-stack"
cards:
!include lovelace/overview/lights.yaml
- type: "vertical-stack"
- type: custom:vertical-layout
type: "vertical-stack"
cards:
!include lovelace/overview/feed.yaml
- type: custom:layout-break
## Column 2
- type: custom:vertical-layout
type: "vertical-stack"
cards:
!include lovelace/overview/climate.yaml
- type: "vertical-stack"
- type: custom:vertical-layout
type: "vertical-stack"
cards:
!include lovelace/overview/batteries.yaml
- type: "vertical-stack"
cards:
!include lovelace/overview/energy.yaml
- type: "vertical-stack"
- type: custom:vertical-layout
type: "vertical-stack"
cards:
!include lovelace/overview/nas.yaml
- type: custom:layout-break
## Column 3
- type: custom:vertical-layout
type: "vertical-stack"
cards:
!include lovelace/overview/energy.yaml
- type: custom:vertical-layout
type: "vertical-stack"
cards:
!include lovelace/overview/multimedia.yaml
- type: custom:vertical-layout
type: "vertical-stack"
cards:
!include lovelace/overview/vacuum.yaml
- title: "Lights"
@ -37,6 +68,9 @@ views:
- type: "vertical-stack"
cards:
!include lovelace/lights/scenes.yaml
- type: "vertical-stack"
cards:
!include lovelace/lights/adaptive.yaml
- type: "vertical-stack"
cards:
!include lovelace/lights/lightgroups.yaml