Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. title: Home
  2. resources:
  3. - url: /local/button-card.js
  4. type: module
  5. custom_updater:
  6. card_urls:
  7. - https://raw.githubusercontent.com/kuuji/button-card/master/tracker.json
  8.  
  9.  
  10.  
  11.  
  12. # TELECOMANDO LOVELACE
  13.  
  14. - type: "custom:button-card"
  15. entity: group.home_lights
  16. show_state: true
  17. - type: vertical-stack ### definisce un riquadro verticale che conterrà l'intero telecomando ###
  18. cards:
  19. - type: "custom:button-card" ### definisce la prima card sotto vertical-stack che fara da titolo ###
  20. name: HT SONY ### definisce il nome della card ###
  21. style: ### definisce lo stile visuale della carta ###
  22. - background-color: rgb(28, 128, 199) ### definisce il colore di sfondo della carta ###
  23. - color: white ### definisce il colore del testo ###
  24.  
  25.  
  26. - type: horizontal-stack
  27. cards:
  28. - type: "custom:button-card"
  29. color_off: green # NON RIESCO A FAR DIVENTARE QUESTO PULSANTE ROSSO O VERDE
  30. entity: switch.accendi_sony # QUINDI PER PROVARE HO FISSATO IL VERDE
  31. size: 20%
  32. icon: mdi:power
  33. style:
  34. - font-size: 10px
  35. show_state: true
  36. # state: # QUESTO IL CODICE CHE DOVREBBE FAR VARIARE COLORE
  37. # - value: 'off'
  38. # color: red
  39. # - value: 'on'
  40. # color: green
  41.  
  42. - type: "custom:button-card"
  43. name: AV
  44. color_off: rgb(219, 239, 255)
  45. icon: mdi:video-input-hdmi
  46. size: 20%
  47. entity: switch.sony_function
  48. style:
  49. - font-size: 10px
  50. tap_action:
  51. action: call-service
  52. service: switch.turn_on
  53. service_data:
  54. entity_id: switch.sony_function
  55.  
  56. - type: horizontal-stack
  57. cards:
  58. - type: "custom:button-card"
  59. color_off: rgb(219, 239, 255)
  60. icon: mdi:volume-minus
  61. size: 25%
  62. entity: switch.sony_vol_meno
  63. tap_action:
  64. action: call-service
  65. service: switch.turn_on
  66. service_data:
  67. entity_id: switch.sony_vol_meno
  68.  
  69. - type: "custom:button-card"
  70. color_off: rgb(219, 239, 255)
  71. icon: mdi:volume-off
  72. size: 25%
  73. entity: switch.sony_mute
  74. tap_action:
  75. action: call-service
  76. service: switch.turn_on
  77. service_data:
  78. entity_id: switch.sony_mute
  79.  
  80. - type: "custom:button-card"
  81. color_off: rgb(219, 239, 255)
  82. icon: mdi:volume-plus
  83. size: 25%
  84. entity: switch.sony_volume_piu
  85. tap_action:
  86. action: call-service
  87. service: switch.turn_on
  88. service_data:
  89. entity_id: switch.sony_volume_piu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement