Et sinon (j’ai toujours la même réponse) : button-card…

type: custom:mod-card
card:
type: custom:layout-card
layout_type: vertical
cards:
- type: custom:button-card
aspect_ratio: 1/1
custom_fields:
fond:
card:
type: custom:button-card
styles:
card:
- background-color: rgba(255,255,255,0.0)
tap_action:
action: none
hold_action:
action: none
style: |
ha-card {
box-shadow: none;
border: none;
}
rad:
card:
type: custom:button-card
name: Chauffage électrique
styles:
name:
- font-size: 1.6em
- font-weight: bold
- justify-self: start
- color: rgba(0,0,0,0.6)
card:
- background-color: rgba(255,255,255,0.0)
tap_action:
action: none
hold_action:
action: none
style: |
ha-card {
box-shadow: none;
border: none;
}
radsdb:
card:
type: custom:button-card
name: 'Radiateur SdB bas :'
styles:
name:
- font-size: 0.9em
- font-weight: bold
- color: rgba(0,0,0,0.6)
- justify-self: start
card:
- background-color: rgba(255,255,255,0.0)
style: |
ha-card {
box-shadow: none;
border: none;
}
power_radsdb:
card:
type: custom:button-card
size: 80%
icon: mdi:power
show_name: false
styles:
icon:
- color: red
card:
- box-shadow: none
- border-radius: 50%
- background-color: rgba(255,255,255,1.0)
- width: 36px
- height: 36px
tap_action:
action: call-service
service: ' '
style: |
ha-card {
box-shadow: none;
border: none;
}
leaf_radsdb:
card:
type: custom:button-card
size: 80%
icon: mdi:leaf
show_name: false
styles:
icon:
- color: dimgray
card:
- box-shadow: none
- border-radius: 50%
- background-color: rgba(255,255,255,1.0)
- width: 36px
- height: 36px
tap_action:
action: call-service
service: ' '
style: |
ha-card {
box-shadow: none;
border: none;
}
snow_radsdb:
card:
type: custom:button-card
size: 70%
icon: mdi:snowflake
show_name: false
styles:
icon:
- color: dimgray
card:
- box-shadow: none
- border-radius: 50%
- background-color: rgba(255,255,255,1.0)
- width: 36px
- height: 36px
tap_action:
action: call-service
service: ' '
style: |
ha-card {
box-shadow: none;
border: none;
}
sun_radsdb:
card:
type: custom:button-card
size: 70%
icon: mdi:weather-sunny
show_name: false
styles:
icon:
- color: dimgray
card:
- box-shadow: none
- border-radius: 50%
- background-color: rgba(255,255,255,1.0)
- width: 38px
- height: 38px
tap_action:
action: call-service
service: ' '
style: |
ha-card {
box-shadow: none;
border: none;
}
radgael_pri:
card:
type: custom:button-card
name: 'Radiateur Ch Gael principal :'
styles:
name:
- font-size: 0.9em
- font-weight: bold
- color: rgba(0,0,0,0.6)
- justify-self: start
card:
- background-color: rgba(255,255,255,0.0)
style: |
ha-card {
box-shadow: none;
border: none;
}
power_gael_pri:
card:
type: custom:button-card
size: 80%
icon: mdi:power
show_name: false
styles:
icon:
- color: red
card:
- box-shadow: none
- border-radius: 50%
- background-color: rgba(255,255,255,1.0)
- width: 36px
- height: 36px
tap_action:
action: call-service
service: ' '
style: |
ha-card {
box-shadow: none;
border: none;
}
leaf_gael_pri:
card:
type: custom:button-card
size: 80%
icon: mdi:leaf
show_name: false
styles:
icon:
- color: dimgray
card:
- box-shadow: none
- border-radius: 50%
- background-color: rgba(255,255,255,1.0)
- width: 36px
- height: 36px
tap_action:
action: call-service
service: ' '
style: |
ha-card {
box-shadow: none;
border: none;
}
snow_gael_pri:
card:
type: custom:button-card
size: 70%
icon: mdi:snowflake
show_name: false
styles:
icon:
- color: dimgray
card:
- box-shadow: none
- border-radius: 50%
- background-color: rgba(255,255,255,1.0)
- width: 36px
- height: 36px
tap_action:
action: call-service
service: ' '
style: |
ha-card {
box-shadow: none;
border: none;
}
sun_gael_pri:
card:
type: custom:button-card
size: 70%
icon: mdi:weather-sunny
show_name: false
styles:
icon:
- color: dimgray
card:
- box-shadow: none
- border-radius: 50%
- background-color: rgba(255,255,255,1.0)
- width: 38px
- height: 38px
tap_action:
action: call-service
service: ' '
style: |
ha-card {
box-shadow: none;
border: none;
}
clim:
card:
type: custom:button-card
name: Climatisations réversibles
styles:
name:
- font-size: 1.6em
- font-weight: bold
- justify-self: start
- color: rgba(0,0,0,0.6)
card:
- background-color: rgba(255,255,255,0.0)
tap_action:
action: none
hold_action:
action: none
style: |
ha-card {
box-shadow: none;
border: none;
}
clim_parent:
card:
type: custom:button-card
name: 'Climatisation parents :'
styles:
name:
- font-size: 0.9em
- font-weight: bold
- color: rgba(0,0,0,0.6)
- justify-self: start
card:
- background-color: rgba(255,255,255,0.0)
style: |
ha-card {
box-shadow: none;
border: none;
}
power_clim_parent:
card:
type: custom:button-card
size: 80%
icon: mdi:power
show_name: false
styles:
icon:
- color: red
card:
- box-shadow: none
- border-radius: 50%
- background-color: rgba(255,255,255,1.0)
- width: 36px
- height: 36px
tap_action:
action: call-service
service: ' '
style: |
ha-card {
box-shadow: none;
border: none;
}
froid_clim_parent:
card:
type: custom:button-card
size: 70%
icon: mdi:snowflake
show_name: false
styles:
icon:
- color: dimgray
card:
- box-shadow: none
- border-radius: 50%
- background-color: rgba(255,255,255,1.0)
- width: 36px
- height: 36px
tap_action:
action: call-service
service: ' '
style: |
ha-card {
box-shadow: none;
border: none;
}
chaud_clim_parent:
card:
type: custom:button-card
size: 70%
icon: mdi:weather-sunny
show_name: false
styles:
icon:
- color: dimgray
card:
- box-shadow: none
- border-radius: 50%
- background-color: rgba(255,255,255,1.0)
- width: 38px
- height: 38px
tap_action:
action: call-service
service: ' '
style: |
ha-card {
box-shadow: none;
border: none;
}
styles:
custom_fields:
fond:
- background-image: ''
- position: absolute
- left: 0
- top: 0
- width: 100%
- height: 100%
- background-size: cover
- background-position: center
- opacity: 0.5
rad:
- position: absolute
- left: 6%
- top: 4%
radsdb:
- position: absolute
- left: 6%
- top: 20%
power_radsdb:
- position: absolute
- left: 50%
- top: 19%
leaf_radsdb:
- position: absolute
- left: 58%
- top: 19%
snow_radsdb:
- position: absolute
- left: 66%
- top: 19%
sun_radsdb:
- position: absolute
- left: 74%
- top: 19%
radgael_pri:
- position: absolute
- left: 6%
- top: 29%
power_gael_pri:
- position: absolute
- left: 50%
- top: 29%
leaf_gael_pri:
- position: absolute
- left: 58%
- top: 29%
snow_gael_pri:
- position: absolute
- left: 66%
- top: 29%
sun_gael_pri:
- position: absolute
- left: 74%
- top: 29%
clim:
- position: absolute
- left: 6%
- top: 44%
clim_parent:
- position: absolute
- left: 6%
- top: 62%
power_clim_parent:
- position: absolute
- left: 50%
- top: 62%
froid_clim_parent:
- position: absolute
- left: 62%
- top: 62%
chaud_clim_parent:
- position: absolute
- left: 74%
- top: 62%
Il te suffit de mettre tes entités pour les fils pilotes et tes scripts pour les climatiseurs