fix lovelace syntax issues

This commit is contained in:
Robert Kaussow 2024-10-17 22:25:22 +02:00
parent 865a27fb6e
commit 18297a920f
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
5 changed files with 269 additions and 278 deletions

View File

@ -1,66 +1,65 @@
- title: Home
id: light
icon: mdi:home
cards:
- type: custom:weather-card
entity: weather.forecast_home
current: true
details: false
forecast: true
hourly_forecast: false
number_of_forecasts: 5
title: Home
icon: mdi:home
cards:
- type: custom:weather-card
entity: weather.forecast_home
current: true
details: false
forecast: true
hourly_forecast: false
number_of_forecasts: 5
- type: entities
title: Status
entities:
- entity: light.all
name: Licht
- type: entities
title: Status
entities:
- entity: light.all
name: Licht
- type: section
label: Wohnzimmer
- entity: sensor.livingroom_sensor_temperature_temperature
name: Luft
icon: mdi:air-filter
show_state: false
type: custom:multiple-entity-row
entities:
- entity: sensor.livingroom_sensor_temperature_temperature
name: Temperatur
- entity: sensor.livingroom_sensor_temperature_humidity
name: Feuchtigkeit
- type: section
label: Wohnzimmer
- entity: sensor.livingroom_sensor_temperature_temperature
name: Luft
icon: mdi:air-filter
show_state: false
type: custom:multiple-entity-row
entities:
- entity: sensor.livingroom_sensor_temperature_temperature
name: Temperatur
- entity: sensor.livingroom_sensor_temperature_humidity
name: Feuchtigkeit
- type: section
label: Küche
- entity: binary_sensor.ki_fridge_door_sensor_contact_state
name: Kühlschrank
show_state: false
type: custom:multiple-entity-row
entities:
- entity: sensor.kitchen_sensor_temperature_fridge_temperature
name: Temperatur
- entity: sensor.kitchen_sensor_temperature_fridge_humidity
name: Feuchtigkeit
- type: section
label: Küche
- entity: binary_sensor.ki_fridge_door_sensor_contact_state
name: Kühlschrank
show_state: false
type: custom:multiple-entity-row
entities:
- entity: sensor.kitchen_sensor_temperature_fridge_temperature
name: Temperatur
- entity: sensor.kitchen_sensor_temperature_fridge_humidity
name: Feuchtigkeit
- type: section
label: Büro
- entity: sensor.office_sensor_air_quality_rating
name: Luftqualität
- type: section
label: Büro
- entity: sensor.office_sensor_air_quality_rating
name: Luftqualität
type: custom:multiple-entity-row
entities:
- entity: sensor.office_sensor_air_quality_temperature
name: Temperatur
- entity: sensor.office_sensor_air_quality_humidity
name: Feuchtigkeit
type: custom:multiple-entity-row
entities:
- entity: sensor.office_sensor_air_quality_temperature
name: Temperatur
- entity: sensor.office_sensor_air_quality_humidity
name: Feuchtigkeit
- type: section
label: Bad
- entity: sensor.bath_sensor_air_quality_rating
name: Luftqualität
- type: section
label: Bad
- entity: sensor.bath_sensor_air_quality_rating
name: Luftqualität
type: custom:multiple-entity-row
entities:
- entity: sensor.bath_sensor_air_quality_temperature
name: Temperatur
- entity: sensor.bath_sensor_air_quality_humidity
name: Feuchtigkeit
type: custom:multiple-entity-row
entities:
- entity: sensor.bath_sensor_air_quality_temperature
name: Temperatur
- entity: sensor.bath_sensor_air_quality_humidity
name: Feuchtigkeit

View File

@ -1,113 +1,107 @@
- title: Licht
id: light
icon: mdi:lightbulb-outline
cards:
- type: entities
title: Wohnzimmer
id: livingroom
show_header_toggle: false
entities:
- entity: light.livingroom_light
- type: custom:fold-entity-row
head:
type: section
label: Lampen
items:
# livingroom_lamp_bookshelf
- entity: light.livingroom_lamp_bookshelf
- type: custom:slider-entity-row
entity: light.livingroom_lamp_bookshelf
full_row: true
# livingroom_lamp_floor
- entity: light.livingroom_lamp_floor
- type: custom:slider-entity-row
entity: light.livingroom_lamp_floor
full_row: true
# livingroom_lamp_ambience
- entity: light.livingroom_lamp_ambience
- type: custom:slider-entity-row
entity: light.livingroom_lamp_ambience
full_row: true
# kitchen_lamp_cupboard
- entity: light.kitchen_lamp_cupboard
- type: custom:slider-entity-row
entity: light.kitchen_lamp_cupboard
full_row: true
title: Licht
icon: mdi:lightbulb-outline
cards:
- type: entities
title: Wohnzimmer
show_header_toggle: false
entities:
- entity: light.livingroom_light
- type: custom:fold-entity-row
head:
type: section
label: Lampen
items:
# livingroom_lamp_bookshelf
- entity: light.livingroom_lamp_bookshelf
- type: custom:slider-entity-row
entity: light.livingroom_lamp_bookshelf
full_row: true
# livingroom_lamp_floor
- entity: light.livingroom_lamp_floor
- type: custom:slider-entity-row
entity: light.livingroom_lamp_floor
full_row: true
# livingroom_lamp_ambience
- entity: light.livingroom_lamp_ambience
- type: custom:slider-entity-row
entity: light.livingroom_lamp_ambience
full_row: true
# kitchen_lamp_cupboard
- entity: light.kitchen_lamp_cupboard
- type: custom:slider-entity-row
entity: light.kitchen_lamp_cupboard
full_row: true
- type: entities
title: Büro
id: office
show_header_toggle: false
entities:
- entity: light.office_light
- type: custom:fold-entity-row
head:
type: section
label: Lampen
items:
# office_lamp_bookshelf
- entity: light.office_lamp_bookshelf
- type: custom:slider-entity-row
entity: light.office_lamp_bookshelf
full_row: true
# office_lamp_floor
- entity: light.office_lamp_floor
- type: custom:slider-entity-row
entity: light.office_lamp_floor
full_row: true
- type: entities
title: Büro
show_header_toggle: false
entities:
- entity: light.office_light
- type: custom:fold-entity-row
head:
type: section
label: Lampen
items:
# office_lamp_bookshelf
- entity: light.office_lamp_bookshelf
- type: custom:slider-entity-row
entity: light.office_lamp_bookshelf
full_row: true
# office_lamp_floor
- entity: light.office_lamp_floor
- type: custom:slider-entity-row
entity: light.office_lamp_floor
full_row: true
- type: entities
title: Schlafzimmer
id: bedroom
show_header_toggle: false
entities:
- entity: light.bedroom_light
- type: custom:fold-entity-row
head:
type: section
label: Lampen
items:
# bedroom_lamp_nightstand_right
- entity: light.bedroom_lamp_nightstand_right
- type: custom:slider-entity-row
entity: light.bedroom_lamp_nightstand_right
full_row: true
# bedroom_lamp_nightstand_left
- entity: light.bedroom_lamp_nightstand_left
- type: custom:slider-entity-row
entity: light.bedroom_lamp_nightstand_left
full_row: true
- type: entities
title: Schlafzimmer
show_header_toggle: false
entities:
- entity: light.bedroom_light
- type: custom:fold-entity-row
head:
type: section
label: Lampen
items:
# bedroom_lamp_nightstand_right
- entity: light.bedroom_lamp_nightstand_right
- type: custom:slider-entity-row
entity: light.bedroom_lamp_nightstand_right
full_row: true
# bedroom_lamp_nightstand_left
- entity: light.bedroom_lamp_nightstand_left
- type: custom:slider-entity-row
entity: light.bedroom_lamp_nightstand_left
full_row: true
- type: entities
title: Flur
id: hall
show_header_toggle: false
entities:
- entity: light.hall_light
- type: custom:fold-entity-row
head:
type: section
label: Lampen
items:
# hall_lamp_sideboard
- entity: light.hall_lamp_sideboard
- type: custom:slider-entity-row
entity: light.hall_lamp_sideboard
full_row: true
- type: entities
title: Flur
show_header_toggle: false
entities:
- entity: light.hall_light
- type: custom:fold-entity-row
head:
type: section
label: Lampen
items:
# hall_lamp_sideboard
- entity: light.hall_lamp_sideboard
- type: custom:slider-entity-row
entity: light.hall_lamp_sideboard
full_row: true
- type: entities
title: Bad
id: bath
show_header_toggle: false
entities:
- entity: light.bath_light
- type: custom:fold-entity-row
head:
type: section
label: Lampen
items:
# hall_lamp_sideboard
- entity: light.bath_lamp_sideboard
- type: custom:slider-entity-row
entity: light.bath_lamp_sideboard
full_row: true
- type: entities
title: Bad
show_header_toggle: false
entities:
- entity: light.bath_light
- type: custom:fold-entity-row
head:
type: section
label: Lampen
items:
# hall_lamp_sideboard
- entity: light.bath_lamp_sideboard
- type: custom:slider-entity-row
entity: light.bath_lamp_sideboard
full_row: true

View File

@ -1,47 +1,46 @@
- title: Staubsauger
id: vacuum
icon: mdi:robot-vacuum
cards:
- type: custom:valetudo-map-card
vacuum: "valetudo_rockrobo"
map_scale: 1.3
min_height: 300
rotate: 0
crop:
top: 0
bottom: 0
left: 0
right: 0
floor_color: "#03a9f4"
wall_color: "#263238"
no_go_area_color: "#d84315"
show_dock: 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
show_status: false
vacuum_color: "#FFFFFF"
- type: custom:vacuum-card
entity: vacuum.valetudo_rockrobo
compact_view: false
image: /local/icons/robot.svg
stats:
cleaning:
- attribute: cleanArea
subtitle: Cleaning area
unit: m2
- attribute: cleanTime
subtitle: Cleaning time
unit: minutes
default:
- entity_id: sensor.valetudo_rockrobo_main_filter_duration
subtitle: Filter
- entity_id: sensor.valetudo_rockrobo_right_brush_duration
subtitle: Seitenbürste
- entity_id: sensor.valetudo_rockrobo_main_brush_duration
subtitle: Hauptbürste
- entity_id: sensor.valetudo_rockrobo_sensor_duration
subtitle: Sensors
title: Staubsauger
icon: mdi:robot-vacuum
cards:
- type: custom:valetudo-map-card
vacuum: "valetudo_rockrobo"
map_scale: 1.3
min_height: 300
rotate: 0
crop:
top: 0
bottom: 0
left: 0
right: 0
floor_color: "#03a9f4"
wall_color: "#263238"
no_go_area_color: "#d84315"
show_dock: 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
show_status: false
vacuum_color: "#FFFFFF"
- type: custom:vacuum-card
entity: vacuum.valetudo_rockrobo
compact_view: false
image: /local/icons/robot.svg
stats:
cleaning:
- attribute: cleanArea
subtitle: Cleaning area
unit: m2
- attribute: cleanTime
subtitle: Cleaning time
unit: minutes
default:
- entity_id: sensor.valetudo_rockrobo_main_filter_duration
subtitle: Filter
- entity_id: sensor.valetudo_rockrobo_right_brush_duration
subtitle: Seitenbürste
- entity_id: sensor.valetudo_rockrobo_main_brush_duration
subtitle: Hauptbürste
- entity_id: sensor.valetudo_rockrobo_sensor_duration
subtitle: Sensors

View File

@ -1,62 +1,61 @@
- title: Wartung
id: maintenance
icon: mdi:tools
cards:
- type: custom:auto-entities
card:
type: entities
title: Batteriewarnung
filter:
include:
- entity_id: "sensor.*_battery"
state: "<= 10"
sort:
method: attribute
attribute: "battery"
reverse: false
show_empty: false
title: Wartung
icon: mdi:tools
cards:
- type: custom:auto-entities
card:
type: entities
title: Batteriewarnung
filter:
include:
- entity_id: "sensor.*_battery"
state: "<= 10"
sort:
method: attribute
attribute: "battery"
reverse: false
show_empty: false
- type: custom:auto-entities
card:
type: entities
title: Firmware Updates
filter:
include:
- entity_id: "update.*"
attributes:
update:state: available
options:
icon: mdi:update
state_color: false
- entity_id: "update.*"
attributes:
update:state: updating
options:
icon: mdi:progress-wrench
state_color: false
sort:
method: attribute
attribute: "battery"
reverse: false
show_empty: false
- type: custom:auto-entities
card:
type: entities
title: Firmware Updates
filter:
include:
- entity_id: "update.*"
attributes:
update:state: available
options:
icon: mdi:update
state_color: false
- entity_id: "update.*"
attributes:
update:state: updating
options:
icon: mdi:progress-wrench
state_color: false
sort:
method: attribute
attribute: "battery"
reverse: false
show_empty: false
- type: entities
title: Zigbee2MQTT
show_header_toggle: False
entities:
- entity: sensor.zigbee2mqtt_bridge_state
- entity: sensor.zigbee2mqtt_version
- entity: sensor.zigbee2mqtt_coordinator_version
- entity: input_select.zigbee2mqtt_log_level
- type: divider
- entity: switch.zigbee2mqtt_main_join
- entity: input_number.zigbee2mqtt_join_minutes
- entity: timer.zigbee_permit_join
- type: divider
- entity: input_text.zigbee2mqtt_old_name
- entity: input_text.zigbee2mqtt_new_name
- entity: script.zigbee2mqtt_rename
- type: divider
- entity: input_text.zigbee2mqtt_remove
- entity: input_boolean.zigbee2mqtt_force_remove
- entity: script.zigbee2mqtt_remove
- type: entities
title: Zigbee2MQTT
show_header_toggle: False
entities:
- entity: sensor.zigbee2mqtt_bridge_state
- entity: sensor.zigbee2mqtt_version
- entity: sensor.zigbee2mqtt_coordinator_version
- entity: input_select.zigbee2mqtt_log_level
- type: divider
- entity: switch.zigbee2mqtt_main_join
- entity: input_number.zigbee2mqtt_join_minutes
- entity: timer.zigbee_permit_join
- type: divider
- entity: input_text.zigbee2mqtt_old_name
- entity: input_text.zigbee2mqtt_new_name
- entity: script.zigbee2mqtt_rename
- type: divider
- entity: input_text.zigbee2mqtt_remove
- entity: input_boolean.zigbee2mqtt_force_remove
- entity: script.zigbee2mqtt_remove

View File

@ -48,7 +48,7 @@ zigbee2mqtt:
service: mqtt.publish
data_template:
topic: zigbee2mqtt/bridge/request/device/rename
payload_template: >-
payload: >-
{
"from": "{{ states.input_text.zigbee2mqtt_old_name.state | string }}",
"to": "{{ states.input_text.zigbee2mqtt_new_name.state | string }}"
@ -59,7 +59,7 @@ zigbee2mqtt:
service: mqtt.publish
data_template:
topic: zigbee2mqtt/bridge/request/device/remove
payload_template: >-
payload: >-
{
"id": "{{ states.input_text.zigbee2mqtt_remove.state | string }}",
"force": {% if states.input_boolean.zigbee2mqtt_force_remove.state == "off" %}false{% else %}true{% endif %}
@ -119,8 +119,8 @@ zigbee2mqtt:
action:
- service: mqtt.publish
data:
payload_template: "{{ states('input_select.zigbee2mqtt_log_level') }}"
topic: zigbee2mqtt/bridge/request/config/log_level
payload: "{{ states('input_select.zigbee2mqtt_log_level') }}"
# Automation to start timer when enable join is turned on
- id: zigbee_join_enabled
alias: Zigbee Join Enabled