Salut,
Oui climate.salon c’est lié à une intégration Tado. C’est carrément dans une carte.
square: false
type: grid
cards:
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
primary: Lumières
secondary: |
{% set all = expand(entity)| list -%}
{% set ND1 = all | selectattr('state','eq','on')|list|count%}
{% set D1 = all | selectattr('state','eq','off')|list|count%}
Allumées : {{ND1}}
Eteintes : {{D1}}
icon: |
{% if is_state(entity, 'on') %}
mdi:lightbulb-group
{% else %}
mdi:lightbulb-group-off
{% endif %}
icon_color: |
{% if is_state(entity,'on') %}
orange
{% else %}
grey
{% endif %}
badge_icon: |-
{% set all = expand(entity)| list -%}
{% set open1 = all | selectattr('state','eq','on')|list|count%}
{% if open1 <= 9 %}
mdi:numeric-{{open1}}
{% elif open1 >= 10 %}
mdi:numeric-9-plus
{% else %}
none
{% endif %}
badge_color: |
{% set all = expand(entity)| list -%}
{% set open1 = all | selectattr('state','eq','on')|list|count%}
{% if open1 == 0 %}
grey
{% else %}
orange
{% endif %}
entity: light.toutes_les_lumieres
tap_action:
action: toggle
double_tap_action:
action: navigate
navigation_path: /lovelace/7
fill_container: true
layout: horizontal
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
entity: light.sejour
icon: mdi:sofa
icon_color: |
{% if is_state(entity, 'on') %}
orange
{% else %}
grey
{% endif %}
primary: Salon
secondary: '{{ states(''sensor.weather_station_temperature'') }}°C'
layout: horizontal
tap_action:
action: navigate
navigation_path: /lovelace/4
badge_icon: |
{% if is_state('binary_sensor.sejour_person_detected', 'on') %}
mdi:motion-sensor
{% else %}
mdi:motion-sensor-off
{% endif %}
badge_color: |
{% if is_state('binary_sensor.sejour_person_detected', 'on') %}
orange
{% else %}
grey
{% endif %}
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-chips-card
chips:
- type: template
entity: media_player.salon
icon: mdi:play-pause
icon_color: |-
{% if is_state(entity, 'playing') %}
green
{% else %}
grey
{% endif %}
tap_action:
action: more-info
- type: template
entity: light.sejour
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Lumières Salon
content:
type: vertical-stack
cards:
- type: custom:mushroom-light-card
entity: light.le_salon
use_light_color: false
show_brightness_control: true
show_color_temp_control: false
show_color_control: true
collapsible_controls: true
- type: custom:mushroom-light-card
entity: light.bibliotheque
use_light_color: false
show_brightness_control: true
show_color_temp_control: false
show_color_control: false
collapsible_controls: true
- type: custom:mushroom-light-card
entity: light.buffet
use_light_color: false
show_brightness_control: true
show_color_temp_control: false
show_color_control: false
collapsible_controls: true
- type: custom:mushroom-light-card
entity: light.govee_tv
use_light_color: false
show_brightness_control: true
show_color_temp_control: false
show_color_control: true
collapsible_controls: true
- type: custom:mushroom-light-card
entity: switch.la_grande_lampe
use_light_color: false
show_brightness_control: false
show_color_temp_control: false
show_color_control: false
collapsible_controls: true
icon: mdi:lightbulb
hold_action:
action: toggle
icon_color: |-
{% if is_state(entity, 'on') %}
orange
{% elif is_state(entity, 'off') %}
grey
{% else %}
grey
{% endif %}
alignment: end
- type: template
tap_action:
action: more-info
entity: climate.salon
icon: |-
{% if is_state(entity, 'off') %}
mdi:fire
{% elif is_state(entity, 'heat') %}
mdi:fire
{% elif is_state(entity, 'auto') %}
mdi:fire
{% endif %}
icon_color: |-
{% if is_state(entity, 'auto') %}
red
{% elif is_state(entity, 'heat') %}
blue
{% elif is_state(entity, 'off') %}
grey
{% else %}
grey
{% endif %}
- type: template
entity: vacuum.jimmy
icon: |-
{% if is_state(entity, 'cleaning') %}
mdi:robot-vacuum
{% elif is_state(entity, 'docked') %}
mdi:robot-vacuum
{% else %}
mdi:robot-vacuum-alert
{% endif %}
icon_color: |-
{% if is_state(entity, 'cleaning') %}
blue
{% elif is_state(entity, 'docked') %}
grey
{% else %}
orange
{% endif %}
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Jimmy
content:
type: vertical-stack
cards:
- type: custom:mushroom-vacuum-card
entity: vacuum.jimmy
commands:
- start_pause
- stop
- locate
- return_home
tap_action:
action: none
alignment: end
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
entity: light.bureau
icon: mdi:chair-rolling
icon_color: |
{% if is_state(entity, 'on') %}
orange
{% else %}
grey
{% endif %}
primary: Bureau
secondary: >-
{{ states('sensor.miaomiaoce_t2_d3da_temperature_humidity_sensor')
}}°C
layout: horizontal
tap_action:
action: navigate
navigation_path: /lovelace/3
hold_action:
action: none
double_tap_action:
action: none
badge_icon: ''
badge_color: ''
- type: custom:mushroom-chips-card
chips:
- type: template
entity: media_player.bureau
icon: mdi:play-pause
icon_color: |-
{% if is_state(entity, 'playing') %}
green
{% else %}
grey
{% endif %}
tap_action:
action: more-info
- type: template
entity: light.sejour
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Lumière Bureau
content:
type: vertical-stack
cards:
- type: custom:mushroom-light-card
entity: light.bureau
use_light_color: false
show_brightness_control: true
show_color_temp_control: false
show_color_control: true
collapsible_controls: true
icon: mdi:lightbulb
hold_action:
action: toggle
icon_color: |-
{% if is_state(entity, 'on') %}
orange
{% elif is_state(entity, 'off') %}
grey
{% else %}
grey
{% endif %}
alignment: end
- type: template
tap_action:
action: more-info
entity: climate.bureau
icon: |-
{% if is_state(entity, 'off') %}
mdi:fire
{% elif is_state(entity, 'heat') %}
mdi:fire
{% elif is_state(entity, 'auto') %}
mdi:fire
{% endif %}
icon_color: |-
{% if is_state(entity, 'auto') %}
red
{% elif is_state(entity, 'heat') %}
blue
{% elif is_state(entity, 'off') %}
grey
{% else %}
grey
{% endif %}
alignment: end
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
entity: light.chambre_mael
icon: mdi:bed
icon_color: |
{% if is_state(entity, 'on') %}
orange
{% else %}
grey
{% endif %}
primary: Chambre Maël
secondary: >-
{{ states('sensor.miaomiaoce_t2_d3c2_temperature_humidity_sensor')
}}°C
layout: horizontal
tap_action:
action: navigate
navigation_path: /lovelace/3
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-chips-card
chips:
- type: template
entity: light.chambre_mael
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Lumière Chambre Maël
content:
type: vertical-stack
cards:
- type: custom:mushroom-light-card
entity: light.chambre_mael
use_light_color: false
show_brightness_control: true
show_color_temp_control: true
show_color_control: true
collapsible_controls: true
icon: mdi:lightbulb
hold_action:
action: toggle
icon_color: |-
{% if is_state(entity, 'on') %}
orange
{% elif is_state(entity, 'off') %}
grey
{% else %}
grey
{% endif %}
alignment: end
- type: template
tap_action:
action: more-info
entity: climate.chambre_mael
icon: |-
{% if is_state(entity, 'off') %}
mdi:fire
{% elif is_state(entity, 'heat') %}
mdi:fire
{% elif is_state(entity, 'auto') %}
mdi:fire
{% endif %}
icon_color: |-
{% if is_state(entity, 'auto') %}
red
{% elif is_state(entity, 'heat') %}
blue
{% elif is_state(entity, 'off') %}
grey
{% else %}
grey
{% endif %}
alignment: end
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
icon: mdi:shower
primary: SDB
secondary: >-
{{ states('sensor.miaomiaoce_t2_64d8_temperature_humidity_sensor')
}}°C
layout: horizontal
tap_action:
action: navigate
navigation_path: /lovelace/3
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-chips-card
chips:
- type: template
entity: media_player.salle_de_bain
icon: mdi:play-pause
icon_color: |-
{% if is_state(entity, 'playing') %}
green
{% else %}
grey
{% endif %}
tap_action:
action: more-info
- type: template
tap_action:
action: more-info
entity: climate.seche_serviette
icon: |-
{% if is_state(entity, 'off') %}
mdi:fire
{% elif is_state(entity, 'heat') %}
mdi:fire
{% elif is_state(entity, 'auto') %}
mdi:fire
{% endif %}
icon_color: |-
{% if is_state(entity, 'auto') %}
red
{% elif is_state(entity, 'heat') %}
blue
{% elif is_state(entity, 'off') %}
grey
{% else %}
grey
{% endif %}
alignment: end
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
entity: light.couloir_2
icon: mdi:image-frame
icon_color: |
{% if is_state(entity, 'on') %}
orange
{% else %}
grey
{% endif %}
primary: Entrée et couloir
layout: horizontal
badge_icon: >
{% if is_state('binary_sensor.capteur_de_mouvement_couloir_occupancy',
'on') %}
mdi:motion-sensor
{% else %}
mdi:motion-sensor-off
{% endif %}
badge_color: >
{% if is_state('binary_sensor.capteur_de_mouvement_couloir_occupancy',
'on') %}
orange
{% else %}
grey
{% endif %}
tap_action:
action: navigate
navigation_path: /lovelace/4
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-chips-card
chips:
- type: template
entity: light.couloir_2
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Lumière Cuisine
content:
type: vertical-stack
cards:
- type: custom:mushroom-light-card
entity: light.couloir
use_light_color: false
show_brightness_control: true
show_color_temp_control: true
show_color_control: true
collapsible_controls: true
- type: custom:mushroom-light-card
entity: light.entree
use_light_color: false
show_brightness_control: true
show_color_temp_control: true
show_color_control: true
collapsible_controls: true
icon: mdi:lightbulb
hold_action:
action: toggle
icon_color: |-
{% if is_state(entity, 'on') %}
orange
{% elif is_state(entity, 'off') %}
grey
{% else %}
grey
{% endif %}
alignment: end
alignment: end
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
entity: light.chambre_thomas_marion
icon: mdi:bed
icon_color: |
{% if is_state(entity, 'on') %}
orange
{% else %}
grey
{% endif %}
primary: Chambre Thomas & Marion
secondary: >-
{{ states('sensor.miaomiaoce_t2_cc07_temperature_humidity_sensor')
}}°C
layout: horizontal
tap_action:
action: navigate
navigation_path: /lovelace/3
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-chips-card
chips:
- type: template
entity: media_player.chambre_t_m
icon: mdi:play-pause
icon_color: |-
{% if is_state(entity, 'playing') %}
green
{% else %}
grey
{% endif %}
tap_action:
action: more-info
- type: template
entity: light.chambre_thomas_marion
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Lumière Chambre T&M
content:
type: vertical-stack
cards:
- type: custom:mushroom-light-card
entity: light.chambre_thomas_marion
use_light_color: false
show_brightness_control: true
show_color_temp_control: true
show_color_control: false
collapsible_controls: true
icon: mdi:lightbulb
hold_action:
action: toggle
icon_color: |-
{% if is_state(entity, 'on') %}
orange
{% elif is_state(entity, 'off') %}
grey
{% else %}
grey
{% endif %}
alignment: end
- type: template
tap_action:
action: more-info
entity: climate.chambre_t_m
icon: |-
{% if is_state(entity, 'off') %}
mdi:fire
{% elif is_state(entity, 'heat') %}
mdi:fire
{% elif is_state(entity, 'auto') %}
mdi:fire
{% endif %}
icon_color: |-
{% if is_state(entity, 'auto') %}
red
{% elif is_state(entity, 'heat') %}
blue
{% elif is_state(entity, 'off') %}
grey
{% else %}
grey
{% endif %}
alignment: end
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
entity: light.cuisine_2
icon: mdi:cookie
icon_color: |
{% if is_state(entity, 'on') %}
orange
{% else %}
grey
{% endif %}
primary: Cuisine
secondary: '{{ states(''sensor.weather_station_temperature'') }}°C'
layout: horizontal
tap_action:
action: navigate
navigation_path: /lovelace/4
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-chips-card
chips:
- type: template
entity: media_player.ecran_cuisine
icon: mdi:play-pause
icon_color: |-
{% if is_state(entity, 'playing') %}
green
{% else %}
grey
{% endif %}
tap_action:
action: more-info
- type: template
entity: light.cuisine_2
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Lumière Cuisine
content:
type: vertical-stack
cards:
- type: custom:mushroom-light-card
entity: light.evier
use_light_color: false
show_brightness_control: true
show_color_temp_control: true
show_color_control: true
collapsible_controls: true
- type: custom:mushroom-light-card
entity: light.cuisine
use_light_color: false
show_brightness_control: true
show_color_temp_control: true
show_color_control: true
collapsible_controls: true
icon: mdi:lightbulb
hold_action:
action: toggle
icon_color: |-
{% if is_state(entity, 'on') %}
orange
{% elif is_state(entity, 'off') %}
grey
{% else %}
grey
{% endif %}
alignment: end
alignment: end
- type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
entity: light.exterieur
icon: mdi:flower
icon_color: |
{% if is_state(entity, 'on') %}
orange
{% else %}
grey
{% endif %}
primary: Extérieur
secondary: '{{ states(''sensor.weather_station_outdoor_module_temperature'') }}°C'
layout: horizontal
tap_action:
action: navigate
navigation_path: /lovelace/5
hold_action:
action: none
double_tap_action:
action: none
- type: custom:mushroom-chips-card
chips:
- type: template
entity: light.exterieur
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Lumière Extérieur
content:
type: vertical-stack
cards:
- type: custom:mushroom-light-card
entity: light.terrain_de_petanque_3
use_light_color: false
show_brightness_control: true
show_color_temp_control: true
show_color_control: true
collapsible_controls: true
- type: custom:mushroom-light-card
entity: light.terrasse_3
use_light_color: false
show_brightness_control: true
show_color_temp_control: true
show_color_control: true
collapsible_controls: true
- type: custom:mushroom-light-card
entity: switch.spot_piscine
use_light_color: false
show_brightness_control: false
show_color_temp_control: false
show_color_control: false
collapsible_controls: true
icon: mdi:lightbulb
hold_action:
action: toggle
icon_color: |-
{% if is_state(entity, 'on') %}
orange
{% elif is_state(entity, 'off') %}
grey
{% else %}
grey
{% endif %}
alignment: end
alignment: end
columns: 2