ci: fix yamllint issues
This commit is contained in:
parent
46cae63c1c
commit
fd89469dfa
28
.yamllint
Normal file
28
.yamllint
Normal 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
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- id: bf5457c9-3494-49e7-b504-cab0587be871
|
- id: bf5457c9-3494-49e7-b504-cab0587be871
|
||||||
alias: Starte Staubsauger
|
alias: Starte Staubsauger
|
||||||
triggers:
|
triggers:
|
||||||
|
@ -66,4 +66,4 @@ automation: !include automations.yaml
|
|||||||
script: !include scripts.yaml
|
script: !include scripts.yaml
|
||||||
scene: !include scenes.yaml
|
scene: !include scenes.yaml
|
||||||
|
|
||||||
template: !include_dir_merge_list templates/
|
template: !include_dir_list templates/
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
"light.bath_light":
|
"light.bath_light":
|
||||||
friendly_name: Alle Lampen
|
friendly_name: Alle Lampen
|
||||||
"*.bath_lamp_sideboard":
|
"*.bath_lamp_sideboard":
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
"light.bedroom_light":
|
"light.bedroom_light":
|
||||||
friendly_name: Alle Lampen
|
friendly_name: Alle Lampen
|
||||||
"*.bedroom_lamp_nightstand_left":
|
"*.bedroom_lamp_nightstand_left":
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
---
|
||||||
"light.all":
|
"light.all":
|
||||||
friendly_name: Alle Lampen
|
friendly_name: Alle Lampen
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
"light.hall_light":
|
"light.hall_light":
|
||||||
friendly_name: Alle Lampen
|
friendly_name: Alle Lampen
|
||||||
"*.hall_lamp_sideboard":
|
"*.hall_lamp_sideboard":
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
"*.kitchen_lamp_cupboard":
|
"*.kitchen_lamp_cupboard":
|
||||||
friendly_name: Küchenzeile
|
friendly_name: Küchenzeile
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
"light.livingroom_light":
|
"light.livingroom_light":
|
||||||
friendly_name: Alle Lampen
|
friendly_name: Alle Lampen
|
||||||
"*.livingroom_lamp_bookshelf":
|
"*.livingroom_lamp_bookshelf":
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
"light.office_light":
|
"light.office_light":
|
||||||
friendly_name: Alle Lampen
|
friendly_name: Alle Lampen
|
||||||
"*.office_lamp_bookshelf":
|
"*.office_lamp_bookshelf":
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
|
---
|
||||||
title: Home
|
title: Home
|
||||||
path: home
|
path: home
|
||||||
icon: mdi:home
|
icon: mdi:home
|
||||||
cards:
|
cards:
|
||||||
- type: custom:weather-card
|
- type: custom:weather-card
|
||||||
entity: weather.forecast_home
|
entity: weather.forecast_home
|
||||||
current: true
|
current: True
|
||||||
details: false
|
details: False
|
||||||
forecast: true
|
forecast: True
|
||||||
hourly_forecast: false
|
hourly_forecast: False
|
||||||
number_of_forecasts: 5
|
number_of_forecasts: 5
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
@ -21,7 +22,7 @@ cards:
|
|||||||
- entity: sensor.livingroom_sensor_temperature_temperature
|
- entity: sensor.livingroom_sensor_temperature_temperature
|
||||||
name: Luft
|
name: Luft
|
||||||
icon: mdi:air-filter
|
icon: mdi:air-filter
|
||||||
show_state: false
|
show_state: False
|
||||||
type: custom:multiple-entity-row
|
type: custom:multiple-entity-row
|
||||||
entities:
|
entities:
|
||||||
- entity: sensor.livingroom_sensor_temperature_temperature
|
- entity: sensor.livingroom_sensor_temperature_temperature
|
||||||
@ -33,7 +34,7 @@ cards:
|
|||||||
label: Küche
|
label: Küche
|
||||||
- entity: binary_sensor.ki_fridge_door_sensor_contact_state
|
- entity: binary_sensor.ki_fridge_door_sensor_contact_state
|
||||||
name: Kühlschrank
|
name: Kühlschrank
|
||||||
show_state: false
|
show_state: False
|
||||||
type: custom:multiple-entity-row
|
type: custom:multiple-entity-row
|
||||||
entities:
|
entities:
|
||||||
- entity: sensor.kitchen_sensor_temperature_fridge_temperature
|
- entity: sensor.kitchen_sensor_temperature_fridge_temperature
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
|
---
|
||||||
title: Licht
|
title: Licht
|
||||||
path: light
|
path: light
|
||||||
icon: mdi:lightbulb-outline
|
icon: mdi:lightbulb-outline
|
||||||
cards:
|
cards:
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Wohnzimmer
|
title: Wohnzimmer
|
||||||
show_header_toggle: false
|
show_header_toggle: False
|
||||||
entities:
|
entities:
|
||||||
- entity: light.livingroom_light
|
- entity: light.livingroom_light
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
@ -16,26 +17,26 @@ cards:
|
|||||||
- entity: light.livingroom_lamp_bookshelf
|
- entity: light.livingroom_lamp_bookshelf
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.livingroom_lamp_bookshelf
|
entity: light.livingroom_lamp_bookshelf
|
||||||
full_row: true
|
full_row: True
|
||||||
# livingroom_lamp_floor
|
# livingroom_lamp_floor
|
||||||
- entity: light.livingroom_lamp_floor
|
- entity: light.livingroom_lamp_floor
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.livingroom_lamp_floor
|
entity: light.livingroom_lamp_floor
|
||||||
full_row: true
|
full_row: True
|
||||||
# livingroom_lamp_ambience
|
# livingroom_lamp_ambience
|
||||||
- entity: light.livingroom_lamp_ambience
|
- entity: light.livingroom_lamp_ambience
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.livingroom_lamp_ambience
|
entity: light.livingroom_lamp_ambience
|
||||||
full_row: true
|
full_row: True
|
||||||
# kitchen_lamp_cupboard
|
# kitchen_lamp_cupboard
|
||||||
- entity: light.kitchen_lamp_cupboard
|
- entity: light.kitchen_lamp_cupboard
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.kitchen_lamp_cupboard
|
entity: light.kitchen_lamp_cupboard
|
||||||
full_row: true
|
full_row: True
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Büro
|
title: Büro
|
||||||
show_header_toggle: false
|
show_header_toggle: False
|
||||||
entities:
|
entities:
|
||||||
- entity: light.office_light
|
- entity: light.office_light
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
@ -47,16 +48,16 @@ cards:
|
|||||||
- entity: light.office_lamp_bookshelf
|
- entity: light.office_lamp_bookshelf
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.office_lamp_bookshelf
|
entity: light.office_lamp_bookshelf
|
||||||
full_row: true
|
full_row: True
|
||||||
# office_lamp_floor
|
# office_lamp_floor
|
||||||
- entity: light.office_lamp_floor
|
- entity: light.office_lamp_floor
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.office_lamp_floor
|
entity: light.office_lamp_floor
|
||||||
full_row: true
|
full_row: True
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Schlafzimmer
|
title: Schlafzimmer
|
||||||
show_header_toggle: false
|
show_header_toggle: False
|
||||||
entities:
|
entities:
|
||||||
- entity: light.bedroom_light
|
- entity: light.bedroom_light
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
@ -68,16 +69,16 @@ cards:
|
|||||||
- entity: light.bedroom_lamp_nightstand_right
|
- entity: light.bedroom_lamp_nightstand_right
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.bedroom_lamp_nightstand_right
|
entity: light.bedroom_lamp_nightstand_right
|
||||||
full_row: true
|
full_row: True
|
||||||
# bedroom_lamp_nightstand_left
|
# bedroom_lamp_nightstand_left
|
||||||
- entity: light.bedroom_lamp_nightstand_left
|
- entity: light.bedroom_lamp_nightstand_left
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.bedroom_lamp_nightstand_left
|
entity: light.bedroom_lamp_nightstand_left
|
||||||
full_row: true
|
full_row: True
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Flur
|
title: Flur
|
||||||
show_header_toggle: false
|
show_header_toggle: False
|
||||||
entities:
|
entities:
|
||||||
- entity: light.hall_light
|
- entity: light.hall_light
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
@ -89,11 +90,11 @@ cards:
|
|||||||
- entity: light.hall_lamp_sideboard
|
- entity: light.hall_lamp_sideboard
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.hall_lamp_sideboard
|
entity: light.hall_lamp_sideboard
|
||||||
full_row: true
|
full_row: True
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Bad
|
title: Bad
|
||||||
show_header_toggle: false
|
show_header_toggle: False
|
||||||
entities:
|
entities:
|
||||||
- entity: light.bath_light
|
- entity: light.bath_light
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
@ -105,4 +106,4 @@ cards:
|
|||||||
- entity: light.bath_lamp_sideboard
|
- entity: light.bath_lamp_sideboard
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.bath_lamp_sideboard
|
entity: light.bath_lamp_sideboard
|
||||||
full_row: true
|
full_row: True
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
title: Staubsauger
|
title: Staubsauger
|
||||||
path: vacuum
|
path: vacuum
|
||||||
icon: mdi:robot-vacuum
|
icon: mdi:robot-vacuum
|
||||||
@ -15,18 +16,18 @@ cards:
|
|||||||
floor_color: "#03a9f4"
|
floor_color: "#03a9f4"
|
||||||
wall_color: "#263238"
|
wall_color: "#263238"
|
||||||
no_go_area_color: "#d84315"
|
no_go_area_color: "#d84315"
|
||||||
show_dock: false
|
show_dock: False
|
||||||
show_battery_level: false
|
show_battery_level: False
|
||||||
show_start_button: false
|
show_start_button: False
|
||||||
show_pause_button: false
|
show_pause_button: False
|
||||||
show_stop_button: false
|
show_stop_button: False
|
||||||
show_home_button: false
|
show_home_button: False
|
||||||
show_locate_button: false
|
show_locate_button: False
|
||||||
show_status: false
|
show_status: False
|
||||||
vacuum_color: "#FFFFFF"
|
vacuum_color: "#FFFFFF"
|
||||||
- type: custom:vacuum-card
|
- type: custom:vacuum-card
|
||||||
entity: vacuum.valetudo_rockrobo
|
entity: vacuum.valetudo_rockrobo
|
||||||
compact_view: false
|
compact_view: False
|
||||||
image: /local/icons/robot.svg
|
image: /local/icons/robot.svg
|
||||||
stats:
|
stats:
|
||||||
cleaning:
|
cleaning:
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
title: Wartung
|
title: Wartung
|
||||||
path: maintenance
|
path: maintenance
|
||||||
icon: mdi:tools
|
icon: mdi:tools
|
||||||
@ -13,8 +14,8 @@ cards:
|
|||||||
sort:
|
sort:
|
||||||
method: attribute
|
method: attribute
|
||||||
attribute: "battery"
|
attribute: "battery"
|
||||||
reverse: false
|
reverse: False
|
||||||
show_empty: false
|
show_empty: False
|
||||||
|
|
||||||
- type: custom:auto-entities
|
- type: custom:auto-entities
|
||||||
card:
|
card:
|
||||||
@ -27,18 +28,18 @@ cards:
|
|||||||
update:state: available
|
update:state: available
|
||||||
options:
|
options:
|
||||||
icon: mdi:update
|
icon: mdi:update
|
||||||
state_color: false
|
state_color: False
|
||||||
- entity_id: "update.*"
|
- entity_id: "update.*"
|
||||||
attributes:
|
attributes:
|
||||||
update:state: updating
|
update:state: updating
|
||||||
options:
|
options:
|
||||||
icon: mdi:progress-wrench
|
icon: mdi:progress-wrench
|
||||||
state_color: false
|
state_color: False
|
||||||
sort:
|
sort:
|
||||||
method: attribute
|
method: attribute
|
||||||
attribute: "battery"
|
attribute: "battery"
|
||||||
reverse: false
|
reverse: False
|
||||||
show_empty: false
|
show_empty: False
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Zigbee2MQTT
|
title: Zigbee2MQTT
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
zigbee2mqtt:
|
zigbee2mqtt:
|
||||||
# Input select for Zigbee2MQTT debug level
|
# Input select for Zigbee2MQTT debug level
|
||||||
input_select:
|
input_select:
|
||||||
@ -37,7 +38,7 @@ zigbee2mqtt:
|
|||||||
input_boolean:
|
input_boolean:
|
||||||
zigbee2mqtt_force_remove:
|
zigbee2mqtt_force_remove:
|
||||||
name: Zigbee2MQTT Force Remove
|
name: Zigbee2MQTT Force Remove
|
||||||
initial: false
|
initial: False
|
||||||
icon: mdi:alert-remove
|
icon: mdi:alert-remove
|
||||||
|
|
||||||
# Scripts for renaming & removing devices
|
# Scripts for renaming & removing devices
|
||||||
|
@ -1,22 +1,23 @@
|
|||||||
- sensor:
|
---
|
||||||
- name: bath_sensor_air_quality_rating
|
sensor:
|
||||||
unit_of_measurement: ppb
|
- name: bath_sensor_air_quality_rating
|
||||||
state: "{{ states('sensor.bath_sensor_air_quality_voc') | float(0) }}"
|
unit_of_measurement: ppb
|
||||||
icon: >
|
state: "{{ states('sensor.bath_sensor_air_quality_voc') | float(0) }}"
|
||||||
{% if states.sensor.bath_sensor_air_quality_voc.state is defined %}
|
icon: >
|
||||||
{% if not is_state('sensor.bath_sensor_air_quality_voc', ['unknown', 'unavailable']) %}
|
{% if states.sensor.bath_sensor_air_quality_voc.state is defined %}
|
||||||
{% if float(states('sensor.bath_sensor_air_quality_voc')) < 150 %}
|
{% if not is_state('sensor.bath_sensor_air_quality_voc', ['unknown', 'unavailable']) %}
|
||||||
mdi:star-circle
|
{% if float(states('sensor.bath_sensor_air_quality_voc')) < 150 %}
|
||||||
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 150 and float(states('sensor.bath_sensor_air_quality_voc')) < 400 %}
|
mdi:star-circle
|
||||||
mdi:star-circle-outline
|
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 150 and float(states('sensor.bath_sensor_air_quality_voc')) < 400 %}
|
||||||
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 400 and float(states('sensor.bath_sensor_air_quality_voc')) < 1300 %}
|
mdi:star-circle-outline
|
||||||
mdi:check-circle-outline
|
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 400 and float(states('sensor.bath_sensor_air_quality_voc')) < 1300 %}
|
||||||
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 1300 and float(states('sensor.bath_sensor_air_quality_voc')) < 4000 %}
|
mdi:check-circle-outline
|
||||||
mdi:alert-circle-outline
|
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 1300 and float(states('sensor.bath_sensor_air_quality_voc')) < 4000 %}
|
||||||
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 4000 %}
|
mdi:alert-circle-outline
|
||||||
mdi:radioactive-circle-outline
|
{% elif float(states('sensor.bath_sensor_air_quality_voc')) >= 4000 %}
|
||||||
{% endif %}
|
mdi:radioactive-circle-outline
|
||||||
{% else %}
|
|
||||||
mdi:circle-off-outline
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
mdi:circle-off-outline
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
- binary_sensor:
|
---
|
||||||
- name: ki_fridge_door_sensor_contact_state
|
binary_sensor:
|
||||||
state: "{{ states('binary_sensor.ki_fridge_door_sensor_contact') }}"
|
- name: ki_fridge_door_sensor_contact_state
|
||||||
device_class: door
|
state: "{{ states('binary_sensor.ki_fridge_door_sensor_contact') }}"
|
||||||
icon: >
|
device_class: door
|
||||||
{% if states.binary_sensor.ki_fridge_door_sensor_contact.state is defined %}
|
icon: >
|
||||||
{% if is_state('binary_sensor.ki_fridge_door_sensor_contact', 'off') %}
|
{% if states.binary_sensor.ki_fridge_door_sensor_contact.state is defined %}
|
||||||
mdi:fridge-industrial
|
{% if is_state('binary_sensor.ki_fridge_door_sensor_contact', 'off') %}
|
||||||
{% else %}
|
mdi:fridge-industrial
|
||||||
mdi:fridge-industrial-alert-outline
|
{% else %}
|
||||||
{% endif %}
|
mdi:fridge-industrial-alert-outline
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
@ -1,22 +1,23 @@
|
|||||||
- sensor:
|
---
|
||||||
- name: office_sensor_air_quality_rating
|
sensor:
|
||||||
unit_of_measurement: ppb
|
- name: office_sensor_air_quality_rating
|
||||||
state: "{{ states('sensor.office_sensor_air_quality_voc') | float(0) }}"
|
unit_of_measurement: ppb
|
||||||
icon: >
|
state: "{{ states('sensor.office_sensor_air_quality_voc') | float(0) }}"
|
||||||
{% if states.sensor.office_sensor_air_quality_voc.state is defined %}
|
icon: >
|
||||||
{% if not is_state('sensor.office_sensor_air_quality_voc', ['unknown', 'unavailable']) %}
|
{% if states.sensor.office_sensor_air_quality_voc.state is defined %}
|
||||||
{% if float(states('sensor.office_sensor_air_quality_voc')) < 150 %}
|
{% if not is_state('sensor.office_sensor_air_quality_voc', ['unknown', 'unavailable']) %}
|
||||||
mdi:star-circle
|
{% if float(states('sensor.office_sensor_air_quality_voc')) < 150 %}
|
||||||
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 150 and float(states('sensor.office_sensor_air_quality_voc')) < 400 %}
|
mdi:star-circle
|
||||||
mdi:star-circle-outline
|
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 150 and float(states('sensor.office_sensor_air_quality_voc')) < 400 %}
|
||||||
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 400 and float(states('sensor.office_sensor_air_quality_voc')) < 1300 %}
|
mdi:star-circle-outline
|
||||||
mdi:check-circle-outline
|
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 400 and float(states('sensor.office_sensor_air_quality_voc')) < 1300 %}
|
||||||
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 1300 and float(states('sensor.office_sensor_air_quality_voc')) < 4000 %}
|
mdi:check-circle-outline
|
||||||
mdi:alert-circle-outline
|
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 1300 and float(states('sensor.office_sensor_air_quality_voc')) < 4000 %}
|
||||||
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 4000 %}
|
mdi:alert-circle-outline
|
||||||
mdi:radioactive-circle-outline
|
{% elif float(states('sensor.office_sensor_air_quality_voc')) >= 4000 %}
|
||||||
{% endif %}
|
mdi:radioactive-circle-outline
|
||||||
{% else %}
|
|
||||||
mdi:circle-off-outline
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
mdi:circle-off-outline
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
@ -1,53 +1,57 @@
|
|||||||
- sensor:
|
---
|
||||||
- name: valetudo_rockrobo_main_filter_duration
|
sensor:
|
||||||
state: >-
|
- name: valetudo_rockrobo_main_filter_duration
|
||||||
{% set minutes = states("sensor.valetudo_rockrobo_main_filter") | int(0) %}
|
state: >-
|
||||||
{% set hours = ((minutes % 1440) / 60) | int %}
|
{% set minutes = states("sensor.valetudo_rockrobo_main_filter") | int(0) %}
|
||||||
{% set days = (minutes / 1440) | int %}
|
{% set hours = ((minutes % 1440) / 60) | int %}
|
||||||
{%- if minutes >= 60 -%}
|
{% set days = (minutes / 1440) | int %}
|
||||||
{%- if days > 0 %}{{ days }}d{% endif -%}
|
{%- if minutes >= 60 -%}
|
||||||
{%- if hours > 0 -%}
|
{%- if days > 0 %}{{ days }}d{% endif -%}
|
||||||
{{ ' ' + hours | string if days > 0 else hours }}h
|
{%- if hours > 0 -%}
|
||||||
{%- endif -%}
|
{{ ' ' + hours | string if days > 0 else hours }}h
|
||||||
{%- else -%}
|
|
||||||
{{ minutes }}min
|
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
- name: valetudo_rockrobo_right_brush_duration
|
{%- else -%}
|
||||||
state: >-
|
{{ minutes }}min
|
||||||
{% set minutes = states("sensor.valetudo_rockrobo_right_brush") | int(0) %}
|
{%- endif -%}
|
||||||
{% set hours = ((minutes % 1440) / 60) | int %}
|
|
||||||
{% set days = (minutes / 1440) | int %}
|
- name: valetudo_rockrobo_right_brush_duration
|
||||||
{%- if minutes >= 60 -%}
|
state: >-
|
||||||
{%- if days > 0 %}{{ days }}d{% endif -%}
|
{% set minutes = states("sensor.valetudo_rockrobo_right_brush") | int(0) %}
|
||||||
{%- if hours > 0 -%}
|
{% set hours = ((minutes % 1440) / 60) | int %}
|
||||||
{{ ' ' + hours | string if days > 0 else hours }}h
|
{% set days = (minutes / 1440) | int %}
|
||||||
{%- endif -%}
|
{%- if minutes >= 60 -%}
|
||||||
{%- else -%}
|
{%- if days > 0 %}{{ days }}d{% endif -%}
|
||||||
{{ minutes }}min
|
{%- if hours > 0 -%}
|
||||||
|
{{ ' ' + hours | string if days > 0 else hours }}h
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
- name: valetudo_rockrobo_main_brush_duration
|
{%- else -%}
|
||||||
state: >-
|
{{ minutes }}min
|
||||||
{% set minutes = states("sensor.valetudo_rockrobo_main_brush") | int(0) %}
|
{%- endif -%}
|
||||||
{% set hours = ((minutes % 1440) / 60) | int %}
|
|
||||||
{% set days = (minutes / 1440) | int %}
|
- name: valetudo_rockrobo_main_brush_duration
|
||||||
{%- if minutes >= 60 -%}
|
state: >-
|
||||||
{%- if days > 0 %}{{ days }}d{% endif -%}
|
{% set minutes = states("sensor.valetudo_rockrobo_main_brush") | int(0) %}
|
||||||
{%- if hours > 0 -%}
|
{% set hours = ((minutes % 1440) / 60) | int %}
|
||||||
{{ ' ' + hours | string if days > 0 else hours }}h
|
{% set days = (minutes / 1440) | int %}
|
||||||
{%- endif -%}
|
{%- if minutes >= 60 -%}
|
||||||
{%- else -%}
|
{%- if days > 0 %}{{ days }}d{% endif -%}
|
||||||
{{ minutes }}min
|
{%- if hours > 0 -%}
|
||||||
|
{{ ' ' + hours | string if days > 0 else hours }}h
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
- name: valetudo_rockrobo_sensor_duration
|
{%- else -%}
|
||||||
state: >-
|
{{ minutes }}min
|
||||||
{% set minutes = states("sensor.valetudo_rockrobo_sensor_cleaning") | int(0) %}
|
{%- endif -%}
|
||||||
{% set hours = ((minutes % 1440) / 60) | int %}
|
|
||||||
{% set days = (minutes / 1440) | int %}
|
- name: valetudo_rockrobo_sensor_duration
|
||||||
{%- if minutes >= 60 -%}
|
state: >-
|
||||||
{%- if days > 0 %}{{ days }}d{% endif -%}
|
{% set minutes = states("sensor.valetudo_rockrobo_sensor_cleaning") | int(0) %}
|
||||||
{%- if hours > 0 -%}
|
{% set hours = ((minutes % 1440) / 60) | int %}
|
||||||
{{ ' ' + hours | string if days > 0 else hours }}h
|
{% set days = (minutes / 1440) | int %}
|
||||||
{%- endif -%}
|
{%- if minutes >= 60 -%}
|
||||||
{%- else -%}
|
{%- if days > 0 %}{{ days }}d{% endif -%}
|
||||||
{{ minutes }}min
|
{%- if hours > 0 -%}
|
||||||
|
{{ ' ' + hours | string if days > 0 else hours }}h
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
{%- else -%}
|
||||||
|
{{ minutes }}min
|
||||||
|
{%- endif -%}
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
---
|
||||||
title: Apartment
|
title: Apartment
|
||||||
views: !include_dir_list lovelace/views/
|
views: !include_dir_list lovelace/views/
|
||||||
|
Loading…
Reference in New Issue
Block a user