Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- title: Home
- resources:
- - url: /local/button-card.js
- type: module
- custom_updater:
- card_urls:
- - https://raw.githubusercontent.com/kuuji/button-card/master/tracker.json
- # TELECOMANDO LOVELACE
- - type: "custom:button-card"
- entity: group.home_lights
- show_state: true
- - type: vertical-stack ### definisce un riquadro verticale che conterrà l'intero telecomando ###
- cards:
- - type: "custom:button-card" ### definisce la prima card sotto vertical-stack che fara da titolo ###
- name: HT SONY ### definisce il nome della card ###
- style: ### definisce lo stile visuale della carta ###
- - background-color: rgb(28, 128, 199) ### definisce il colore di sfondo della carta ###
- - color: white ### definisce il colore del testo ###
- - type: horizontal-stack
- cards:
- - type: "custom:button-card"
- color_off: green # NON RIESCO A FAR DIVENTARE QUESTO PULSANTE ROSSO O VERDE
- entity: switch.accendi_sony # QUINDI PER PROVARE HO FISSATO IL VERDE
- size: 20%
- icon: mdi:power
- style:
- - font-size: 10px
- show_state: true
- # state: # QUESTO IL CODICE CHE DOVREBBE FAR VARIARE COLORE
- # - value: 'off'
- # color: red
- # - value: 'on'
- # color: green
- - type: "custom:button-card"
- name: AV
- color_off: rgb(219, 239, 255)
- icon: mdi:video-input-hdmi
- size: 20%
- entity: switch.sony_function
- style:
- - font-size: 10px
- tap_action:
- action: call-service
- service: switch.turn_on
- service_data:
- entity_id: switch.sony_function
- - type: horizontal-stack
- cards:
- - type: "custom:button-card"
- color_off: rgb(219, 239, 255)
- icon: mdi:volume-minus
- size: 25%
- entity: switch.sony_vol_meno
- tap_action:
- action: call-service
- service: switch.turn_on
- service_data:
- entity_id: switch.sony_vol_meno
- - type: "custom:button-card"
- color_off: rgb(219, 239, 255)
- icon: mdi:volume-off
- size: 25%
- entity: switch.sony_mute
- tap_action:
- action: call-service
- service: switch.turn_on
- service_data:
- entity_id: switch.sony_mute
- - type: "custom:button-card"
- color_off: rgb(219, 239, 255)
- icon: mdi:volume-plus
- size: 25%
- entity: switch.sony_volume_piu
- tap_action:
- action: call-service
- service: switch.turn_on
- service_data:
- entity_id: switch.sony_volume_piu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement