ci: fix yamllint issues
Some checks failed
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/notify Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-10-18 12:08:04 +02:00
parent 46cae63c1c
commit fd89469dfa
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
20 changed files with 190 additions and 141 deletions

28
.yamllint Normal file
View File

@ -0,0 +1,28 @@
---
extends: default
ignore: |
*.sops.*
flux/clusters/**/flux-system/gotk-*.yaml
terraform/
ansible/
rules:
truthy:
allowed-values: ["True", "False"]
comments:
min-spaces-from-content: 1
ignore: |
user-data.yaml
line-length: disable
braces:
min-spaces-inside: 0
max-spaces-inside: 1
brackets:
min-spaces-inside: 0
max-spaces-inside: 0
indentation: enable
document-start:
ignore: |
secret.yaml
user-data.yaml

View File

@ -1,3 +1,4 @@
---
- id: bf5457c9-3494-49e7-b504-cab0587be871
alias: Starte Staubsauger
triggers:

View File

@ -66,4 +66,4 @@ automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
template: !include_dir_merge_list templates/
template: !include_dir_list templates/

View File

@ -1,3 +1,4 @@
---
"light.bath_light":
friendly_name: Alle Lampen
"*.bath_lamp_sideboard":

View File

@ -1,3 +1,4 @@
---
"light.bedroom_light":
friendly_name: Alle Lampen
"*.bedroom_lamp_nightstand_left":

View File

@ -1,2 +1,3 @@
---
"light.all":
friendly_name: Alle Lampen

View File

@ -1,3 +1,4 @@
---
"light.hall_light":
friendly_name: Alle Lampen
"*.hall_lamp_sideboard":

View File

@ -1,3 +1,4 @@
---
"*.kitchen_lamp_cupboard":
friendly_name: Küchenzeile

View File

@ -1,3 +1,4 @@
---
"light.livingroom_light":
friendly_name: Alle Lampen
"*.livingroom_lamp_bookshelf":

View File

@ -1,3 +1,4 @@
---
"light.office_light":
friendly_name: Alle Lampen
"*.office_lamp_bookshelf":

View File

@ -1,13 +1,14 @@
---
title: Home
path: home
icon: mdi:home
cards:
- type: custom:weather-card
entity: weather.forecast_home
current: true
details: false
forecast: true
hourly_forecast: false
current: True
details: False
forecast: True
hourly_forecast: False
number_of_forecasts: 5
- type: entities
@ -21,7 +22,7 @@ cards:
- entity: sensor.livingroom_sensor_temperature_temperature
name: Luft
icon: mdi:air-filter
show_state: false
show_state: False
type: custom:multiple-entity-row
entities:
- entity: sensor.livingroom_sensor_temperature_temperature
@ -33,7 +34,7 @@ cards:
label: Küche
- entity: binary_sensor.ki_fridge_door_sensor_contact_state
name: Kühlschrank
show_state: false
show_state: False
type: custom:multiple-entity-row
entities:
- entity: sensor.kitchen_sensor_temperature_fridge_temperature

View File

@ -1,10 +1,11 @@
---
title: Licht
path: light
icon: mdi:lightbulb-outline
cards:
- type: entities
title: Wohnzimmer
show_header_toggle: false
show_header_toggle: False
entities:
- entity: light.livingroom_light
- type: custom:fold-entity-row
@ -16,26 +17,26 @@ cards:
- entity: light.livingroom_lamp_bookshelf
- type: custom:slider-entity-row
entity: light.livingroom_lamp_bookshelf
full_row: true
full_row: True
# livingroom_lamp_floor
- entity: light.livingroom_lamp_floor
- type: custom:slider-entity-row
entity: light.livingroom_lamp_floor
full_row: true
full_row: True
# livingroom_lamp_ambience
- entity: light.livingroom_lamp_ambience
- type: custom:slider-entity-row
entity: light.livingroom_lamp_ambience
full_row: true
full_row: True
# kitchen_lamp_cupboard
- entity: light.kitchen_lamp_cupboard
- type: custom:slider-entity-row
entity: light.kitchen_lamp_cupboard
full_row: true
full_row: True
- type: entities
title: Büro
show_header_toggle: false
show_header_toggle: False
entities:
- entity: light.office_light
- type: custom:fold-entity-row
@ -47,16 +48,16 @@ cards:
- entity: light.office_lamp_bookshelf
- type: custom:slider-entity-row
entity: light.office_lamp_bookshelf
full_row: true
full_row: True
# office_lamp_floor
- entity: light.office_lamp_floor
- type: custom:slider-entity-row
entity: light.office_lamp_floor
full_row: true
full_row: True
- type: entities
title: Schlafzimmer
show_header_toggle: false
show_header_toggle: False
entities:
- entity: light.bedroom_light
- type: custom:fold-entity-row
@ -68,16 +69,16 @@ cards:
- entity: light.bedroom_lamp_nightstand_right
- type: custom:slider-entity-row
entity: light.bedroom_lamp_nightstand_right
full_row: true
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
full_row: True
- type: entities
title: Flur
show_header_toggle: false
show_header_toggle: False
entities:
- entity: light.hall_light
- type: custom:fold-entity-row
@ -89,11 +90,11 @@ cards:
- entity: light.hall_lamp_sideboard
- type: custom:slider-entity-row
entity: light.hall_lamp_sideboard
full_row: true
full_row: True
- type: entities
title: Bad
show_header_toggle: false
show_header_toggle: False
entities:
- entity: light.bath_light
- type: custom:fold-entity-row
@ -105,4 +106,4 @@ cards:
- entity: light.bath_lamp_sideboard
- type: custom:slider-entity-row
entity: light.bath_lamp_sideboard
full_row: true
full_row: True

View File

@ -1,3 +1,4 @@
---
title: Staubsauger
path: vacuum
icon: mdi:robot-vacuum
@ -15,18 +16,18 @@ cards:
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
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
compact_view: False
image: /local/icons/robot.svg
stats:
cleaning:

View File

@ -1,3 +1,4 @@
---
title: Wartung
path: maintenance
icon: mdi:tools
@ -13,8 +14,8 @@ cards:
sort:
method: attribute
attribute: "battery"
reverse: false
show_empty: false
reverse: False
show_empty: False
- type: custom:auto-entities
card:
@ -27,18 +28,18 @@ cards:
update:state: available
options:
icon: mdi:update
state_color: false
state_color: False
- entity_id: "update.*"
attributes:
update:state: updating
options:
icon: mdi:progress-wrench
state_color: false
state_color: False
sort:
method: attribute
attribute: "battery"
reverse: false
show_empty: false
reverse: False
show_empty: False
- type: entities
title: Zigbee2MQTT

View File

@ -1,3 +1,4 @@
---
zigbee2mqtt:
# Input select for Zigbee2MQTT debug level
input_select:
@ -37,7 +38,7 @@ zigbee2mqtt:
input_boolean:
zigbee2mqtt_force_remove:
name: Zigbee2MQTT Force Remove
initial: false
initial: False
icon: mdi:alert-remove
# Scripts for renaming & removing devices

View File

@ -1,22 +1,23 @@
- sensor:
- name: bath_sensor_air_quality_rating
unit_of_measurement: ppb
state: "{{ states('sensor.bath_sensor_air_quality_voc') | float(0) }}"
icon: >
{% if states.sensor.bath_sensor_air_quality_voc.state is defined %}
{% if not is_state('sensor.bath_sensor_air_quality_voc', ['unknown', 'unavailable']) %}
{% if float(states('sensor.bath_sensor_air_quality_voc')) < 150 %}
mdi:star-circle
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 150 and float(states('sensor.bath_sensor_air_quality_voc')) < 400 %}
mdi:star-circle-outline
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 400 and float(states('sensor.bath_sensor_air_quality_voc')) < 1300 %}
mdi:check-circle-outline
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 1300 and float(states('sensor.bath_sensor_air_quality_voc')) < 4000 %}
mdi:alert-circle-outline
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 4000 %}
mdi:radioactive-circle-outline
{% endif %}
{% else %}
mdi:circle-off-outline
{% endif %}
---
sensor:
- name: bath_sensor_air_quality_rating
unit_of_measurement: ppb
state: "{{ states('sensor.bath_sensor_air_quality_voc') | float(0) }}"
icon: >
{% if states.sensor.bath_sensor_air_quality_voc.state is defined %}
{% if not is_state('sensor.bath_sensor_air_quality_voc', ['unknown', 'unavailable']) %}
{% if float(states('sensor.bath_sensor_air_quality_voc')) < 150 %}
mdi:star-circle
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 150 and float(states('sensor.bath_sensor_air_quality_voc')) < 400 %}
mdi:star-circle-outline
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 400 and float(states('sensor.bath_sensor_air_quality_voc')) < 1300 %}
mdi:check-circle-outline
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 1300 and float(states('sensor.bath_sensor_air_quality_voc')) < 4000 %}
mdi:alert-circle-outline
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 4000 %}
mdi:radioactive-circle-outline
{% endif %}
{% else %}
mdi:circle-off-outline
{% endif %}
{% endif %}

View File

@ -1,12 +1,13 @@
- binary_sensor:
- name: ki_fridge_door_sensor_contact_state
state: "{{ states('binary_sensor.ki_fridge_door_sensor_contact') }}"
device_class: door
icon: >
{% if states.binary_sensor.ki_fridge_door_sensor_contact.state is defined %}
{% if is_state('binary_sensor.ki_fridge_door_sensor_contact', 'off') %}
mdi:fridge-industrial
{% else %}
mdi:fridge-industrial-alert-outline
{% endif %}
{% endif %}
---
binary_sensor:
- name: ki_fridge_door_sensor_contact_state
state: "{{ states('binary_sensor.ki_fridge_door_sensor_contact') }}"
device_class: door
icon: >
{% if states.binary_sensor.ki_fridge_door_sensor_contact.state is defined %}
{% if is_state('binary_sensor.ki_fridge_door_sensor_contact', 'off') %}
mdi:fridge-industrial
{% else %}
mdi:fridge-industrial-alert-outline
{% endif %}
{% endif %}

View File

@ -1,22 +1,23 @@
- sensor:
- name: office_sensor_air_quality_rating
unit_of_measurement: ppb
state: "{{ states('sensor.office_sensor_air_quality_voc') | float(0) }}"
icon: >
{% if states.sensor.office_sensor_air_quality_voc.state is defined %}
{% if not is_state('sensor.office_sensor_air_quality_voc', ['unknown', 'unavailable']) %}
{% if float(states('sensor.office_sensor_air_quality_voc')) < 150 %}
mdi:star-circle
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 150 and float(states('sensor.office_sensor_air_quality_voc')) < 400 %}
mdi:star-circle-outline
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 400 and float(states('sensor.office_sensor_air_quality_voc')) < 1300 %}
mdi:check-circle-outline
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 1300 and float(states('sensor.office_sensor_air_quality_voc')) < 4000 %}
mdi:alert-circle-outline
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 4000 %}
mdi:radioactive-circle-outline
{% endif %}
{% else %}
mdi:circle-off-outline
{% endif %}
---
sensor:
- name: office_sensor_air_quality_rating
unit_of_measurement: ppb
state: "{{ states('sensor.office_sensor_air_quality_voc') | float(0) }}"
icon: >
{% if states.sensor.office_sensor_air_quality_voc.state is defined %}
{% if not is_state('sensor.office_sensor_air_quality_voc', ['unknown', 'unavailable']) %}
{% if float(states('sensor.office_sensor_air_quality_voc')) < 150 %}
mdi:star-circle
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 150 and float(states('sensor.office_sensor_air_quality_voc')) < 400 %}
mdi:star-circle-outline
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 400 and float(states('sensor.office_sensor_air_quality_voc')) < 1300 %}
mdi:check-circle-outline
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 1300 and float(states('sensor.office_sensor_air_quality_voc')) < 4000 %}
mdi:alert-circle-outline
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 4000 %}
mdi:radioactive-circle-outline
{% endif %}
{% else %}
mdi:circle-off-outline
{% endif %}
{% endif %}

View File

@ -1,53 +1,57 @@
- sensor:
- name: valetudo_rockrobo_main_filter_duration
state: >-
{% set minutes = states("sensor.valetudo_rockrobo_main_filter") | int(0) %}
{% set hours = ((minutes % 1440) / 60) | int %}
{% set days = (minutes / 1440) | int %}
{%- if minutes >= 60 -%}
{%- if days > 0 %}{{ days }}d{% endif -%}
{%- if hours > 0 -%}
{{ ' ' + hours | string if days > 0 else hours }}h
{%- endif -%}
{%- else -%}
{{ minutes }}min
---
sensor:
- name: valetudo_rockrobo_main_filter_duration
state: >-
{% set minutes = states("sensor.valetudo_rockrobo_main_filter") | int(0) %}
{% set hours = ((minutes % 1440) / 60) | int %}
{% set days = (minutes / 1440) | int %}
{%- if minutes >= 60 -%}
{%- if days > 0 %}{{ days }}d{% endif -%}
{%- if hours > 0 -%}
{{ ' ' + hours | string if days > 0 else hours }}h
{%- endif -%}
- name: valetudo_rockrobo_right_brush_duration
state: >-
{% set minutes = states("sensor.valetudo_rockrobo_right_brush") | int(0) %}
{% set hours = ((minutes % 1440) / 60) | int %}
{% set days = (minutes / 1440) | int %}
{%- if minutes >= 60 -%}
{%- if days > 0 %}{{ days }}d{% endif -%}
{%- if hours > 0 -%}
{{ ' ' + hours | string if days > 0 else hours }}h
{%- endif -%}
{%- else -%}
{{ minutes }}min
{%- else -%}
{{ minutes }}min
{%- endif -%}
- name: valetudo_rockrobo_right_brush_duration
state: >-
{% set minutes = states("sensor.valetudo_rockrobo_right_brush") | int(0) %}
{% set hours = ((minutes % 1440) / 60) | int %}
{% set days = (minutes / 1440) | int %}
{%- if minutes >= 60 -%}
{%- if days > 0 %}{{ days }}d{% endif -%}
{%- if hours > 0 -%}
{{ ' ' + hours | string if days > 0 else hours }}h
{%- endif -%}
- name: valetudo_rockrobo_main_brush_duration
state: >-
{% set minutes = states("sensor.valetudo_rockrobo_main_brush") | int(0) %}
{% set hours = ((minutes % 1440) / 60) | int %}
{% set days = (minutes / 1440) | int %}
{%- if minutes >= 60 -%}
{%- if days > 0 %}{{ days }}d{% endif -%}
{%- if hours > 0 -%}
{{ ' ' + hours | string if days > 0 else hours }}h
{%- endif -%}
{%- else -%}
{{ minutes }}min
{%- else -%}
{{ minutes }}min
{%- endif -%}
- name: valetudo_rockrobo_main_brush_duration
state: >-
{% set minutes = states("sensor.valetudo_rockrobo_main_brush") | int(0) %}
{% set hours = ((minutes % 1440) / 60) | int %}
{% set days = (minutes / 1440) | int %}
{%- if minutes >= 60 -%}
{%- if days > 0 %}{{ days }}d{% endif -%}
{%- if hours > 0 -%}
{{ ' ' + hours | string if days > 0 else hours }}h
{%- endif -%}
- name: valetudo_rockrobo_sensor_duration
state: >-
{% set minutes = states("sensor.valetudo_rockrobo_sensor_cleaning") | int(0) %}
{% set hours = ((minutes % 1440) / 60) | int %}
{% set days = (minutes / 1440) | int %}
{%- if minutes >= 60 -%}
{%- if days > 0 %}{{ days }}d{% endif -%}
{%- if hours > 0 -%}
{{ ' ' + hours | string if days > 0 else hours }}h
{%- endif -%}
{%- else -%}
{{ minutes }}min
{%- else -%}
{{ minutes }}min
{%- endif -%}
- name: valetudo_rockrobo_sensor_duration
state: >-
{% set minutes = states("sensor.valetudo_rockrobo_sensor_cleaning") | int(0) %}
{% set hours = ((minutes % 1440) / 60) | int %}
{% set days = (minutes / 1440) | int %}
{%- if minutes >= 60 -%}
{%- if days > 0 %}{{ days }}d{% endif -%}
{%- if hours > 0 -%}
{{ ' ' + hours | string if days > 0 else hours }}h
{%- endif -%}
{%- else -%}
{{ minutes }}min
{%- endif -%}

View File

@ -1,2 +1,3 @@
---
title: Apartment
views: !include_dir_list lovelace/views/