Bonsoir,
Avec custom:button-card et des custom_fields (une custom:button-card par bouton), c’est relativement simple à faire.
Voici ce que j’avais commencé à faire pour mes climatiseurs Daikin :
J’ai supprimé les scripts allant avec mais tu devrais pouvoir t’en sortir sans.
Le code de la carte :
type: custom:mod-card
card:
type: custom:layout-card
layout_type: vertical
cards:
- type: custom:button-card
aspect_ratio: 1/2
custom_fields:
fond:
card:
type: custom:button-card
styles:
card:
- background-color: rgba(255,255,255,0.0)
- border: none
tap_action:
action: none
hold_action:
action: none
logo:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/daikin_logo.svg
aspect_ratio: 4/1
border_radius: 0%
size: 80%
show_icon: false
show_entity_picture: true
show_name: false
styles:
card:
- background-color: rgba(255,255,255,1.0)
- border: none
tap_action:
action: none
hold_action:
action: none
ecran:
card:
type: custom:button-card
aspect_ratio: 2/1.5
styles:
card:
- background-image: url(/local/images/climatiseur/ecran/fond.png)
- background-size: cover
- background-picture: center
- box-shadow: 6px 6px 6px 0px inset rgba(32,32,32,0.7)
- border-radius: 6%
tap_action:
action: none
hold_action:
action: none
clim_on:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/ecran/mode/clim_on.png
entity: input_boolean.salle_a_manger_interrupteur_climatiseur
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 2/1
width: 100%
styles:
card:
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
state:
- value: 'off'
styles:
card:
- opacity: 0
- border: none
- value: 'on'
styles:
card:
- opacity: 0.7
- border: none
tap_action:
action: none
hold_action:
action: none
mode_auto:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/ecran/mode/mode_auto.png
entity: counter.salle_a_manger_mode_climatiseur
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 1/1
width: 100%
styles:
card:
- border: none
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
- opacity: |
[[[
if (states['counter.salle_a_manger_mode_climatiseur'].state == '0')
return '0.7';
else
return '0.0';
]]]
tap_action:
action: none
hold_action:
action: none
mode_deshumidification:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/ecran/mode/mode_deshumidification.png
entity: counter.salle_a_manger_mode_climatiseur
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 1/1
width: 100%
styles:
card:
- border: none
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
- opacity: |
[[[
if (states['counter.salle_a_manger_mode_climatiseur'].state == '1')
return '0.7';
else
return '0.0';
]]]
tap_action:
action: none
hold_action:
action: none
mode_rafraichissement:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/ecran/mode/mode_rafraichissement.png
entity: counter.salle_a_manger_mode_climatiseur
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 1/1
width: 100%
styles:
card:
- border: none
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
- opacity: |
[[[
if (states['counter.salle_a_manger_mode_climatiseur'].state == '2')
return '0.7';
else
return '0.0';
]]]
tap_action:
action: none
hold_action:
action: none
mode_chaleur:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/ecran/mode/mode_chaleur.png
entity: counter.salle_a_manger_mode_climatiseur
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 1/1
width: 100%
styles:
card:
- border: none
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
- opacity: |
[[[
if (states['counter.salle_a_manger_mode_climatiseur'].state == '3')
return '0.7';
else
return '0.0';
]]]
tap_action:
action: none
hold_action:
action: none
mode_ventilateur:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/ecran/mode/mode_ventilateur.png
entity: counter.salle_a_manger_mode_climatiseur
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 1/1
width: 100%
styles:
card:
- border: none
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
- opacity: |
[[[
if (states['counter.salle_a_manger_mode_climatiseur'].state == '4')
return '0.7';
else
return '0.0';
]]]
tap_action:
action: none
hold_action:
action: none
mode_puissant:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/ecran/mode/mode_puissant.png
entity: input_boolean.salle_a_manger_mode_puissant_climatiseur
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 1/1
width: 100%
styles:
card:
- border: none
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
- opacity: |
[[[
if (states['input_boolean.salle_a_manger_mode_puissant_climatiseur'].state == 'on')
return '0.7';
else
return '0.0';
]]]
tap_action:
action: none
hold_action:
action: none
mode_bruit_reduit_exterieur:
card:
type: custom:button-card
entity_picture: >-
/local/images/climatiseur/ecran/mode/mode_bruit_reduit_exterieur.png
entity: counter.salle_a_manger_mode_climatiseur
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 1/1
width: 100%
styles:
card:
- border: none
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
- opacity: |
[[[
if (states['counter.salle_a_manger_mode_climatiseur'].state == '0')
return '0.7';
else
return '0.0';
]]]
tap_action:
action: none
hold_action:
action: none
mode_econo:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/ecran/mode/mode_econo.png
entity: counter.salle_a_manger_mode_climatiseur
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 1/1
width: 100%
styles:
card:
- border: none
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
- opacity: |
[[[
if (states['counter.salle_a_manger_mode_climatiseur'].state == '0')
return '0.7';
else
return '0.0';
]]]
tap_action:
action: none
hold_action:
action: none
debit:
card:
type: custom:button-card
entity_picture: |
[[[
if (states['counter.salle_a_manger_debit_d_air_climatiseur'].state == '0')
return '/local/images/climatiseur/ecran/debit/debit_auto.png';
else if (states['counter.salle_a_manger_debit_d_air_climatiseur'].state == '1')
return '/local/images/climatiseur/ecran/debit/debit_silence_interieur.png';
else if (states['counter.salle_a_manger_debit_d_air_climatiseur'].state == '2')
return '/local/images/climatiseur/ecran/debit/debit_bas.png';
else if (states['counter.salle_a_manger_debit_d_air_climatiseur'].state == '3')
return '/local/images/climatiseur/ecran/debit/debit_faible.png';
else if (states['counter.salle_a_manger_debit_d_air_climatiseur'].state == '4')
return '/local/images/climatiseur/ecran/debit/debit_moyen.png';
else if (states['counter.salle_a_manger_debit_d_air_climatiseur'].state == '5')
return '/local/images/climatiseur/ecran/debit/debit_moyen_haut.png';
else if (states['counter.salle_a_manger_debit_d_air_climatiseur'].state == '6')
return '/local/images/climatiseur/ecran/debit/debit_haut.png';
]]]
show_entity_picture: true
aspect_ratio: 3.85/2.79
show_icon: false
show_name: false
styles:
card:
- border-radius: 0%
- border: none
- background-color: rgba(0,0,0,0.0)
entity_picture:
- opacity: 0.7
tap_action:
action: none
hold_action:
action: none
indicateur_courant_confortable:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/ecran/mode/courant_confortable.png
entity: >-
input_number.salle_a_manger_courant_confortable_et_oeil_intelligent
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 1/1
width: 100%
styles:
card:
- border: none
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
- opacity: |
[[[
if (states['input_number.salle_a_manger_courant_confortable_et_oeil_intelligent'].state == '1.0')
return '0.7';
else if (states['input_number.salle_a_manger_courant_confortable_et_oeil_intelligent'].state == '3.0')
return '0.7';
else
return '0.0';
]]]
tap_action:
action: none
hold_action:
action: none
indicateur_oeil_intelligent:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/ecran/mode/oeil_intelligent.png
entity: >-
input_number.salle_a_manger_courant_confortable_et_oeil_intelligent
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 1/1
width: 100%
styles:
card:
- border: none
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
- opacity: |
[[[
if (states['input_number.salle_a_manger_courant_confortable_et_oeil_intelligent'].state == '2.0')
return '0.7';
else if (states['input_number.salle_a_manger_courant_confortable_et_oeil_intelligent'].state == '3.0')
return '0.7';
else
return '0.0';
]]]
tap_action:
action: none
hold_action:
action: none
indicateur_flux_vertical:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/ecran/mode/flux_vertical.png
entity: ''
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 1/1
width: 100%
styles:
card:
- border: none
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
- opacity: 0.7
tap_action:
action: none
hold_action:
action: none
indicateur_clean:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/ecran/mode/clean.png
entity: input_boolean.salle_a_manger_mode_purification_climatiseur
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 1/1
width: 100%
styles:
card:
- border: none
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
- opacity: |
[[[
if (states['input_boolean.salle_a_manger_mode_purification_climatiseur'].state == 'on')
return '0.7';
else
return '0.0';
]]]
tap_action:
action: none
hold_action:
action: none
indicateur_flux_horizontal:
card:
type: custom:button-card
entity_picture: /local/images/climatiseur/ecran/mode/flux_horizontal.png
entity: ''
show_entity_picture: true
show_name: false
show_icon: false
aspect_ratio: 2/1
width: 100%
styles:
card:
- border: none
- border-radius: 0%
- background-color: rgba(255,255,255,0.0)
- opacity: 0.7
tap_action:
action: none
hold_action:
action: none
power_text:
card:
type: custom:button-card
name: On/Off
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)
- border: none
- border-radius: 0%
power:
card:
type: custom:button-card
entity: input_boolean.salle_a_manger_interrupteur_climatiseur
size: 80%
icon: mdi:power
show_name: false
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- border-radius: 50%
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- width: 60px
- height: 60px
state:
- value: 'off'
styles:
icon:
- color: red
- value: 'on'
styles:
icon:
- color: green
tap_action:
action: call-service
service: script.climatiseur_sejour_on_off
fan_text:
card:
type: custom:button-card
name: Fan
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
- justify-self: start
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
fan:
card:
type: custom:button-card
size: 50%
entity_picture: /local/images/climatiseur/boutons/bouton_fan.png
show_entity_picture: true
show_name: false
styles:
entity_picture:
- opacity: 0.7
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- width: 60px
- height: 40px
tap_action:
action: call-service
service: script.climatiseur_sejour_fan
powerful_text:
card:
type: custom:button-card
name: Powerful
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
- justify-self: start
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
powerful:
card:
type: custom:button-card
size: 60%
entity_picture: /local/images/climatiseur/boutons/bouton_puissant.png
show_entity_picture: true
show_name: false
styles:
entity_picture:
- opacity: 0.7
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- width: 60px
- height: 40px
tap_action:
action: call-service
service: script.climatiseur_sejour_mode_puissant
temp_text:
card:
type: custom:button-card
name: Temp
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
- justify-self: start
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
temp_down:
card:
type: custom:button-card
size: 100%
icon: mdi:menu-down
show_name: false
styles:
icon:
- color: black
- opacity: 0.7
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- width: 50px
- height: 40px
tap_action:
action: call-service
service: ' '
temp_up:
card:
type: custom:button-card
size: 100%
icon: mdi:menu-up
show_name: false
styles:
icon:
- color: black
- opacity: 0.7
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- width: 50px
- height: 40px
tap_action:
action: call-service
service: ' '
clapet:
card:
type: custom:button-card
aspect_ratio: 1/1.1
styles:
card:
- background-color: rgba(242,242,242,0.8)
- border: 2px rgba(32,32,32,0.5) inset
tap_action:
action: none
hold_action:
action: none
mode:
card:
type: custom:button-card
size: 100%
name: Mode
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 100px
- height: 30px
name:
- font-size: 0.9em
- font-weight: bold
- color: rgba(0,0,0,0.7)
tap_action:
action: call-service
service: ' '
econo_quiet_text:
card:
type: custom:button-card
name: Econo / Quiet
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
- justify-self: start
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
econo_quiet:
card:
type: custom:button-card
size: 80%
entity_picture: /local/images/climatiseur/boutons/bouton_econo_et_quiet.png
show_entity_picture: true
styles:
card:
- padding: 0px
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 100px
- height: 30px
entity_picture:
- opacity: 0.7
tap_action:
action: call-service
service: ' '
flux_vertical:
card:
type: custom:button-card
size: 25%
entity_picture: /local/images/climatiseur/boutons/bouton_flux_vertical.png
show_entity_picture: true
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 100px
- height: 30px
entity_picture:
- opacity: 0.7
tap_action:
action: call-service
service: ' '
clean_text:
card:
type: custom:button-card
name: Clean
size: 100%
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
- width: 100px
comfort_sensor_text:
card:
type: custom:button-card
name: Comfort / Sensor
size: 100%
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
- width: 100px
swing_text:
card:
type: custom:button-card
name: Swing
size: 100%
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
- width: 100px
clean:
card:
type: custom:button-card
size: 50%
entity_picture: /local/images/climatiseur/boutons/bouton_clean.png
show_entity_picture: true
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 100px
- height: 30px
entity_picture:
- opacity: 0.7
tap_action:
action: call-service
service: script.climatiseur_sejour_mode_purification
courant_oeil:
card:
type: custom:button-card
size: 80%
entity_picture: /local/images/climatiseur/boutons/bouton_courant_et_oeil.png
show_entity_picture: true
styles:
card:
- padding: 0px
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 100px
- height: 30px
entity_picture:
- opacity: 0.7
tap_action:
action: call-service
service: >-
script.climatiseur_sejour_courant_confortable_et_oeil_intelligent
flux_horizontal:
card:
type: custom:button-card
size: 40%
entity_picture: /local/images/climatiseur/boutons/bouton_flux_horizontal.png
show_entity_picture: true
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 100px
- height: 30px
entity_picture:
- opacity: 0.7
tap_action:
action: call-service
service: ' '
weekly_text:
card:
type: custom:button-card
name: Weekly
size: 100%
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
- width: 100px
programmation_text:
card:
type: custom:button-card
size: 40%
entity_picture: /local/images/climatiseur/boutons/bouton_programmation.png
show_entity_picture: true
styles:
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
- width: 60px
entity_picture:
- opacity: 0.7
copy_text:
card:
type: custom:button-card
name: Copy
size: 100%
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
- width: 100px
weekly:
card:
type: custom:button-card
size: 50%
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 100px
- height: 25px
tap_action:
action: call-service
service: ' '
programmation:
card:
type: custom:button-card
size: 70%
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 60px
- height: 25px
tap_action:
action: call-service
service: ' '
copy:
card:
type: custom:button-card
size: 40%
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 100px
- height: 25px
tap_action:
action: call-service
service: ' '
back_text:
card:
type: custom:button-card
name: Back
size: 100%
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
- width: 100px
next_text:
card:
type: custom:button-card
name: Next
size: 100%
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
- width: 100px
back:
card:
type: custom:button-card
size: 50%
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 100px
- height: 25px
tap_action:
action: call-service
service: ' '
next:
card:
type: custom:button-card
size: 40%
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 100px
- height: 25px
tap_action:
action: call-service
service: ' '
select:
card:
type: custom:button-card
size: 70%
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 10px
- width: 60px
- height: 100px
select_up:
card:
type: custom:button-card
size: 30%
entity_picture: /local/images/climatiseur/boutons/bouton_up.png
show_entity_picture: true
show_name: false
styles:
card:
- box-shadow: none
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 5px
- width: 60px
- height: 35px
entity_picture:
- opacity: 0.7
tap_action:
action: call-service
service: ' '
select_text:
card:
type: custom:button-card
name: Select
size: 100%
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
- width: 60px
- height: 30px
select_down:
card:
type: custom:button-card
size: 30%
entity_picture: /local/images/climatiseur/boutons/bouton_down.png
show_entity_picture: true
show_name: false
styles:
card:
- box-shadow: none
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 5px
- width: 60px
- height: 35px
entity_picture:
- opacity: 0.7
tap_action:
action: call-service
service: ' '
off_text:
card:
type: custom:button-card
name: 'Off'
size: 100%
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
- width: 100px
on_text:
card:
type: custom:button-card
name: 'On'
size: 100%
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
- width: 100px
off_btn:
card:
type: custom:button-card
size: 50%
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 100px
- height: 25px
tap_action:
action: call-service
service: ' '
on_btn:
card:
type: custom:button-card
size: 40%
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 100px
- height: 25px
tap_action:
action: call-service
service: ' '
cancel_text:
card:
type: custom:button-card
name: Cancel
size: 100%
styles:
name:
- font-size: 0.7em
- font-weight: bold
- color: rgba(0,0,0,0.6)
card:
- background-color: rgba(255,255,255,0.0)
- border: none
- border-radius: 0%
- width: 100px
cancel:
card:
type: custom:button-card
size: 40%
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 5px
- width: 100px
- height: 25px
tap_action:
action: call-service
service: ' '
timer:
card:
type: custom:button-card
size: 70%
entity_picture: /local/images/climatiseur/boutons/bouton_timer.png
show_entity_picture: true
styles:
card:
- box-shadow: 2px 2px 4px 0px rgba(32,32,32,0.5)
- background-color: rgba(255,255,255,1.0)
- border: 2px rgba(32,32,32,0.5) outset
- border-radius: 50%
- width: 40px
- height: 40px
entity_picture:
- opacity: 0.7
tap_action:
action: call-service
service: ' '
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
logo:
- position: absolute
- left: 20%
- top: 1%
- width: 60%
ecran:
- position: absolute
- left: 15%
- top: 8%
- width: 70%
clim_on:
- position: absolute
- width: 48%
- left: 2%
- top: 4.5%
mode_auto:
- position: absolute
- width: 22%
- left: 11%
- top: 8.5%
mode_deshumidification:
- position: absolute
- width: 22%
- left: 19%
- top: 8.5%
mode_rafraichissement:
- position: absolute
- width: 22%
- left: 11%
- top: 12.2%
mode_chaleur:
- position: absolute
- width: 22%
- left: 19%
- top: 12.2%
mode_ventilateur:
- position: absolute
- width: 22%
- left: 11%
- top: 15.8%
mode_puissant:
- position: absolute
- width: 22%
- left: 19%
- top: 15.8%
mode_bruit_reduit_exterieur:
- position: absolute
- width: 22%
- left: 11%
- top: 19.2%
mode_econo:
- position: absolute
- width: 22%
- left: 19%
- top: 19.2%
debit:
- position: absolute
- width: 250px
- left: 17%
- top: 9.5%
indicateur_courant_confortable:
- position: absolute
- width: 22%
- left: 59%
- top: 5%
indicateur_oeil_intelligent:
- position: absolute
- width: 22%
- left: 68%
- top: 5%
indicateur_flux_vertical:
- position: absolute
- width: 21%
- left: 59%
- top: 15.4%
indicateur_clean:
- position: absolute
- width: 35%
- left: 61.2%
- top: 12%
indicateur_flux_horizontal:
- position: absolute
- width: 35%
- left: 55%
- top: 20.5%
power_text:
- position: absolute
- left: 44.5%
- top: 35%
power:
- position: absolute
- left: 43%
- top: 38%
fan_text:
- position: absolute
- left: 13%
- top: 36.5%
fan:
- position: absolute
- left: 8.5%
- top: 39%
powerful_text:
- position: absolute
- left: 26.2%
- top: 36.5%
powerful:
- position: absolute
- left: 24.8%
- top: 39%
temp_text:
- position: absolute
- left: 72%
- top: 36.5%
temp_down:
- position: absolute
- left: 62%
- top: 39%
temp_up:
- position: absolute
- left: 77%
- top: 39%
clapet:
- position: absolute
- left: 5%
- top: 48%
- width: 90%
mode:
- position: absolute
- left: 8%
- top: 52%
econo_quiet_text:
- position: absolute
- left: 40%
- top: 49%
econo_quiet:
- position: absolute
- left: 37%
- top: 52%
flux_vertical:
- position: absolute
- left: 66%
- top: 52%
clean_text:
- position: absolute
- left: 8%
- top: 57.5%
comfort_sensor_text:
- position: absolute
- left: 37%
- top: 57.5%
swing_text:
- position: absolute
- left: 66%
- top: 57.5%
clean:
- position: absolute
- left: 8%
- top: 60.5%
courant_oeil:
- position: absolute
- left: 37%
- top: 60.5%
flux_horizontal:
- position: absolute
- left: 66%
- top: 60.5%
weekly_text:
- position: absolute
- left: 8%
- top: 65.5%
programmation_text:
- position: absolute
- left: 42%
- top: 65%
copy_text:
- position: absolute
- left: 66%
- top: 65.5%
weekly:
- position: absolute
- left: 8%
- top: 68.5%
programmation:
- position: absolute
- left: 42%
- top: 68.5%
copy:
- position: absolute
- left: 66%
- top: 68.5%
back_text:
- position: absolute
- left: 8%
- top: 72.5%
next_text:
- position: absolute
- left: 66%
- top: 72.5%
back:
- position: absolute
- left: 8%
- top: 75.5%
next:
- position: absolute
- left: 66%
- top: 75.5%
select:
- position: absolute
- left: 42%
- top: 72.5%
select_up:
- position: absolute
- left: 42%
- top: 73%
select_text:
- position: absolute
- left: 42%
- top: 77%
select_down:
- position: absolute
- left: 42%
- top: 80.6%
off_text:
- position: absolute
- left: 8%
- top: 79.5%
on_text:
- position: absolute
- left: 66%
- top: 79.5%
off_btn:
- position: absolute
- left: 8%
- top: 82.5%
on_btn:
- position: absolute
- left: 66%
- top: 82.5%
cancel_text:
- position: absolute
- left: 8%
- top: 86.5%
cancel:
- position: absolute
- left: 8%
- top: 89.5%
timer:
- position: absolute
- left: 73%
- top: 88.5%
Regarde uniquements les lignes des custom_fields avec un tap_action.