Enfin, merci beaucoup en suivant votre schéma de code, j’ai correctement défini l’onglet et maintenant cela fonctionne …
Quoi qu’il en soit voici le code jusqu’à l’image jointe, je continue avec les composants restants…
Merci encore pour votre disponibilité, une fois terminé je posterai tout le code
type: vertical-stack
cards:
################################################################################################
# prima intestazione lato SX
################################################################################################
- type: custom:slider-entity-row
entity: input_number.gg_intervallo_c1
name: Intervallo giorni fra cicli
full_row: false
max: 6
step: 1
style:
name:
- font-size: 25px
icon: mdi:toggle-switch-outline
- type: custom:slider-entity-row
entity: input_number.irr_ripetizioni_c1
name: N° di ripetizioni giorno
full_row: false
max: 10
step: 1
card_mod:
################################################################################################
# prima intestazione lato SX
################################################################################################
### crea uno spazio fra una fila di pulsanti e l'altra ####################################
## BUTTON CARD ##
- type: 'custom:button-card'
template: row_space_5
### crea uno spazio fra una fila di pulsanti e l'altra ####################################
################################################################################################
# prima intestazione lato SX
################################################################################################
- type: custom:slider-entity-row
entity: input_number.gg_intervallo_c1
name: Intervallo giorni fra cicli
full_row: false
max: 6
step: 1
style:
name:
- font-size: 25px
icon: mdi:toggle-switch-outline
- type: custom:slider-entity-row
entity: input_number.irr_ripetizioni_c1
name: N° di ripetizioni giorno
full_row: false
max: 10
step: 1
card_mod:
- type: 'custom:button-card'
#name: SCENE
template: label_left
- type: horizontal-stack
cards:
- type: 'custom:button-card'
entity: scene.salotto_brillante
icon: 'phu:roomsLiving'
template:
- button_icon_label
- action_turn_scene
#name: GIORNO
label: Sala
styles:
card:
- height: 180px
################################################################################################
# prima intestazione lato SX
################################################################################################
elements:
- entity: sensor.vide
prefix: Réveil 1
style:
color: var(--primary-color)
font-size: 20px
font-variant: small-caps
left: 13%
pointer-events: none
top: 70%
tap_action:
action: none
type: state-label
- entity: input_boolean.wakestatus_1
style:
'--paper-item-icon-color': var(--primary-color)
left: 13%
top: 35%
tap_action:
action: toggle
type: state-icon
- entity: input_datetime.wake_time_1
hide:
name: true
hour_step: 1
layout:
align_controls: center
name: inside
link_values: true
minute_step: 1
name: ''
style:
.: |
ha-card {
box-shadow: none;
background-color: rgba(0,0,0,0);
opacity: {% if is_state('input_boolean.wakestatus_1', 'off') %} 0.3 {% endif %};
pointer-events: {% if is_state('input_boolean.wakestatus_1', 'off') %} none {% endif %};
}
.time-picker-row{
margin-left: 5px !important;
}
.time-picker-row:
.time-picker-content:
.: |
.time-separator {
display: none;
}
time-unit:
$: |
.time-unit {
padding: 2px !important;
}
.time-input {
border: 2px solid var(--primary-color) !important;
background-color: rgba(0,0,0,0) !important;
color: black !important;
border-radius: 5px;
}
.time-picker-icon {
color: var(--primary-color) !important;
z-index: 100;
}
left: 45%
top: 50%
color: var(--primary-color)
font-size: 28px
type: custom:time-picker-card
- entity: input_boolean.wakeweekday_mon_1
icon: mdi:alpha-l-circle
show_label: false
show_name: false
show_state: false
style:
'--paper-item-icon-color': var(--primary-color)
right: 17%
top: 20%
styles:
card:
- width: 35px
- height: 35px
- border-radius: 999px
- background-color: rgba(0, 0, 0, 0)
- box-shadow: none
- opacity: |
[[[ if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return '0.3'; else return '1'; ]]]
- pointer-events: |
[[[ if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return 'none'; else return 'auto'; ]]]
icon:
- transform: scale(2.1)
type: custom:button-card
- entity: input_boolean.wakeweekday_tue_1
icon: mdi:alpha-m-circle
show_label: false
show_name: false
show_state: false
style:
'--paper-item-icon-color': var(--primary-color)
right: 7%
top: 20%
styles:
card:
- width: 35px
- height: 35px
- border-radius: 999px
- background-color: rgba(0, 0, 0, 0)
- box-shadow: none
- opacity: |
[[[ if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return '0.3'; else return '1'; ]]]
- pointer-events: |
[[[ if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return 'none'; else return 'auto'; ]]]
icon:
- transform: scale(2.1)
type: custom:button-card
- entity: input_boolean.wakeweekday_wed_1
icon: mdi:alpha-m-circle
show_label: false
show_name: false
show_state: false
style:
'--paper-item-icon-color': var(--primary-color)
right: 22%
top: 50%
styles:
card:
- width: 35px
- height: 35px
- border-radius: 999px
- background-color: rgba(0, 0, 0, 0)
- box-shadow: none
- opacity: |
[[[ if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return '0.3'; else return '1'; ]]]
- pointer-events: |
[[[ if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return 'none'; else return 'auto'; ]]]
icon:
- transform: scale(2.1)
type: custom:button-card
- entity: input_boolean.wakeweekday_thu_1
icon: mdi:alpha-g-circle
show_label: false
show_name: false
show_state: false
style:
'--paper-item-icon-color': var(--primary-color)
right: 12%
top: 50%
styles:
card:
- width: 35px
- height: 35px
- border-radius: 999px
- background-color: rgba(0, 0, 0, 0)
- box-shadow: none
- opacity: |
[[[ if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return '0.3'; else return '1'; ]]]
- pointer-events: |
[[[ if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return 'none'; else return 'auto'; ]]]
icon:
- transform: scale(2.1)
type: custom:button-card
- entity: input_boolean.wakeweekday_fri_1
icon: mdi:alpha-v-circle
show_label: false
show_name: false
show_state: false
style:
'--paper-item-icon-color': var(--primary-color)
right: 2%
top: 50%
styles:
card:
- width: 35px
- height: 35px
- border-radius: 999px
- background-color: rgba(0, 0, 0, 0)
- box-shadow: none
- opacity: |
[[[ if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return '0.3'; else return '1'; ]]]
- pointer-events: |
[[[ if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return 'none'; else return 'auto'; ]]]
icon:
- transform: scale(2.1)
type: custom:button-card
- entity: input_boolean.wakeweekday_sat_1
icon: mdi:alpha-s-circle
show_label: false
show_name: false
show_state: false
style:
'--paper-item-icon-color': var(--primary-color)
right: 17%
top: 80%
styles:
card:
- width: 35px
- height: 35px
- border-radius: 999px
- background-color: rgba(0, 0, 0, 0)
- box-shadow: none
- opacity: |
[[[if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return '0.3'; else return '1'; ]]]
- pointer-events: |
[[[
if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return 'none';
else return 'auto';
]]]
icon:
- transform: scale(2.1)
type: custom:button-card
- entity: input_boolean.wakeweekday_sun_1
icon: mdi:alpha-d-circle
show_label: false
show_name: false
show_state: false
style:
'--paper-item-icon-color': var(--primary-color)
right: 7%
top: 80%
styles:
card:
- width: 35px
- height: 35px
- border-radius: 999px
- background-color: rgba(0, 0, 0, 0)
- box-shadow: none
- opacity: |
[[[ if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return '0.3'; else return '1'; ]]]
- pointer-events: |
[[[ if ( (states['input_boolean.wakestatus_1'].state == 'off') ) return 'none'; else return 'auto'; ]]]
icon:
- transform: scale(2.1)
type: custom:button-card
type: picture-elements
image: /local/transparent.png
################################################################################################
# inserire ora di inizio irrigazione
################################################################################################
show_header_toggle: true # questa riga va lasciata per ultima,....