TBnt

01_home.yaml

Jul 16th, 2021 (edited)
4,296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 13.19 KB | None | 0 0
  1.  - title: Home
  2.     icon: 'mdi:home-variant'
  3.     path: home
  4.     cards:
  5.       - cards:
  6.           - cards:
  7.               - template: bordures
  8.                 type: 'custom:button-card'
  9.               - template: pilule_temperature
  10.                 type: 'custom:button-card'
  11.               - template: pilule_consommation
  12.                 type: 'custom:button-card'
  13.               - template: pilule_localisation_present
  14.                 type: 'custom:button-card'
  15.               - card:
  16.                   entity: input_boolean.invite_present
  17.                   template: pilule
  18.                   label : "😃"
  19.                   type: 'custom:button-card'
  20.                 conditions:
  21.                 - entity: input_boolean.invite_present
  22.                   state_not: 'off'
  23.                 type: conditional
  24.               - card:
  25.                   entity: input_boolean.mode_vacances
  26.                   template: pilule
  27.                   label : "⛱️"
  28.                   type: 'custom:button-card'
  29.                 conditions:
  30.                 - entity: input_boolean.mode_vacances
  31.                   state_not: 'off'
  32.                 type: conditional
  33.               - template: bordures
  34.                 type: 'custom:button-card'
  35.             type: horizontal-stack
  36.            
  37. ####################################################
  38. #                                                  #
  39. #                     SCENES                       #
  40. #                                                  #
  41. ####################################################
  42.           - type: custom:state-switch
  43.             entity: user
  44.             default: default
  45.             states:
  46.               Thomas:
  47.                 type: vertical-stack
  48.                 cards:
  49.                   - type: 'custom:button-card'
  50.                     name: Scènes
  51.                     template: titre
  52.                   - cards:
  53.                       - template: bordures
  54.                         type: 'custom:button-card'
  55.                       - entity: sensor.present
  56.                         template: scene
  57.                         type: 'custom:button-card'
  58.                       - entity: sensor.absent
  59.                         template: scene
  60.                         type: 'custom:button-card'
  61.                       - entity: sensor.travail
  62.                         template: scene
  63.                         type: 'custom:button-card'
  64.                       - entity: sensor.nuit
  65.                         template: scene
  66.                         tap_action:
  67.                           action: more-info
  68.                           entity: input_boolean.thomas_nuit
  69.                         type: 'custom:button-card'
  70.                       - template: bordures
  71.                         type: 'custom:button-card'
  72.                     type: horizontal-stack
  73.  
  74. ####################################################
  75. #                                                  #
  76. #                       PS4                        #
  77. #                                                  #
  78. ####################################################
  79.           - card:
  80.               cards:
  81.                 - type: 'custom:button-card'
  82.                   name: Media
  83.                   template: titre
  84.                 - cards:
  85.                     - template: bordures
  86.                       type: 'custom:button-card'
  87.                     - artwork: full-cover
  88.                       entity: media_player.playstation_4
  89.                       style: |
  90.                        :host {
  91.                           --ha-card-border-radius: 20px;
  92.                           --ha-card-box-shadow: var(--box-shadow);
  93.                           --mini-media-player-accent-color: var(--google-red-500)
  94.                         }
  95.                       type: 'custom:mini-media-player'
  96.                     - template: bordures
  97.                       type: 'custom:button-card'
  98.                   type: horizontal-stack
  99.               type: vertical-stack
  100.             conditions:
  101.               - entity: media_player.playstation_4
  102.                 state_not: 'unknown'
  103.             type: conditional
  104.  
  105. ####################################################
  106. #                                                  #
  107. #                      MEDIA                       #
  108. #                                                  #
  109. ####################################################
  110.           - card:
  111.               cards:
  112.                 - type: 'custom:button-card'
  113.                   name: Media
  114.                   template: titre
  115.                 - cards:
  116.                     - template: bordures
  117.                       type: 'custom:button-card'
  118.                      
  119.                      
  120.                     - artwork: full-cover
  121.                       entity: media_player.chromecast_audio_appartement
  122.                       style: |
  123.                        :host {
  124.                           --ha-card-border-radius: 20px;
  125.                           --ha-card-box-shadow: var(--box-shadow);
  126.                           --mini-media-player-accent-color: var(--google-red-500)
  127.                         }
  128.                       type: 'custom:mini-media-player'
  129.                     - template: bordures
  130.                       type: 'custom:button-card'
  131.                   type: horizontal-stack
  132.               type: vertical-stack
  133.             conditions:
  134.               - entity: media_player.chromecast_audio_appartement
  135.                 state_not: 'off'
  136.             type: conditional
  137.  
  138. ####################################################
  139. #                                                  #
  140. #                     CHAMBRE                      #
  141. #                                                  #
  142. ####################################################
  143.           - type: 'custom:button-card'
  144.             name: Chambre
  145.             label: '12 appareils'
  146.             template: titre
  147.           - cards:
  148.               - template: bordures
  149.                 type: 'custom:button-card'
  150.               - type: grid
  151.                 columns: 2
  152.                 square: false
  153.                 cards:
  154.                   - entity: light.principale
  155.                     template:
  156.                       - icon_info_bg
  157.                       - light
  158.                     type: 'custom:button-card'
  159.  
  160.                   - entity: light.hue_light_table
  161.                     name: Table
  162.                     template:
  163.                       - icon_info_bg
  164.                       - light
  165.                     type: 'custom:button-card'
  166.  
  167.                   - entity: light.hue_light_bureau
  168.                     name: Bureau
  169.                     template:
  170.                       - icon_info_bg
  171.                       - light
  172.                     type: 'custom:button-card'
  173.  
  174.                   - entity: switch.shelly_prise_salon
  175.                     name: Prise bureau
  176.                     template:
  177.                       - icon_info_bg
  178.                       - prise_conso
  179.                     tap_action:
  180.                       action: more-info
  181.                       entity: group.prise_shelly_detail
  182.                     type: 'custom:button-card'
  183.  
  184.                   - entity: climate.thermostat
  185.                     template:
  186.                       - icon_info_bg
  187.                       - thermostat
  188.                     type: 'custom:button-card'
  189.  
  190.                   - entity: switch.osram_prise_salon
  191.                     name: Prise lit
  192.                     template:
  193.                       - icon_info_bg
  194.                       - prise
  195.                     type: 'custom:button-card'
  196.  
  197.                   - type: 'custom:button-card'
  198.                     template: cover_buttons
  199.                     variables:
  200.                       entity: "cover.fibaro_cover_balcon"
  201.                       name: "Balcon"
  202.  
  203.                   - type: 'custom:button-card'
  204.                     template: cover_buttons
  205.                     variables:
  206.                       entity: "cover.fibaro_cover_fenetre"
  207.                       name: "Fenêtre"
  208.  
  209.                   - entity: media_player.chromecast_audio_bureau
  210.                     name: Enceintes
  211.                     template:
  212.                       - icon_info_bg
  213.                       - media
  214.                     type: 'custom:button-card'
  215.  
  216.                   - entity: group.fenetres_appartement
  217.                     name: Fenêtres
  218.                     tap_action:
  219.                       action: more-info
  220.                     template:
  221.                       - icon_info_bg
  222.                       - mouvement
  223.                     type: 'custom:button-card'
  224.  
  225.                   - entity: switch.nas
  226.                     name: NAS
  227.                     template:
  228.                       - icon_info_bg
  229.                       - nas
  230.                     type: 'custom:button-card'
  231.  
  232.                   - entity: media_player.playstation_4
  233.                     template:
  234.                       - icon_info_bg
  235.                       - ps4
  236.                     type: 'custom:button-card'
  237.  
  238.               - template: bordures
  239.                 type: 'custom:button-card'
  240.             type: horizontal-stack
  241.  
  242. ####################################################
  243. #                                                  #
  244. #                     COULOIR                      #
  245. #                                                  #
  246. ####################################################
  247.           - type: 'custom:button-card'
  248.             name: Couloir
  249.             label: '3 appareils'
  250.             template: titre
  251.           - cards:
  252.               - template: bordures
  253.                 type: 'custom:button-card'
  254.               - type: grid
  255.                 columns: 2
  256.                 square: false
  257.                 cards:
  258.                   - entity: light.fibaro_light_couloir
  259.                     name: Lumière
  260.                     template:
  261.                       - icon_info_bg
  262.                       - light
  263.                     type: 'custom:button-card'
  264.                   - entity: binary_sensor.fibaro_multisensor_couloir_mouvement
  265.                     name: Mouvement
  266.                     icon: 'mdi:run'
  267.                     template:
  268.                       - icon_info_bg
  269.                       - mouvement
  270.                     type: 'custom:button-card'
  271.                   - entity: switch.shelly_module_couloir
  272.                     name: Chauffe eau
  273.                     template:
  274.                       - icon_info_bg
  275.                       - chauffe-eau
  276.                     tap_action:
  277.                       action: more-info
  278.                       entity: sensor.shelly_module_couloir_current_consumption
  279.                     type: 'custom:button-card'
  280.               - template: bordures
  281.                 type: 'custom:button-card'
  282.             type: horizontal-stack
  283.            
  284. ####################################################
  285. #                                                  #
  286. #                 SALLE DE BAIN                    #
  287. #                                                  #
  288. ####################################################
  289.           - type: 'custom:button-card'
  290.             name: Salle de bain
  291.             label: '2 appareils'
  292.             template: titre
  293.           - cards:
  294.               - template: bordures
  295.                 type: 'custom:button-card'
  296.               - type: grid
  297.                 columns: 2
  298.                 square: false
  299.                 cards:
  300.                   - entity: light.hue_light_salle_de_bain
  301.                     name: Lumière
  302.                     template:
  303.                       - icon_info_bg
  304.                       - light
  305.                     type: 'custom:button-card'
  306.                   - entity: media_player.chromecast_audio_tangent_salle_de_bain
  307.                     name: Enceintes
  308.                     template:
  309.                       - icon_info_bg
  310.                       - media
  311.                     type: 'custom:button-card'
  312.               - template: bordures
  313.                 type: 'custom:button-card'
  314.             type: horizontal-stack
  315.            
  316. ####################################################
  317. #                                                  #
  318. #                     BALCON                       #
  319. #                                                  #
  320. ####################################################
  321.           - type: 'custom:button-card'
  322.             name: Balcon
  323.             label: '2 appareils'
  324.             template: titre
  325.           - cards:
  326.               - template: bordures
  327.                 type: 'custom:button-card'
  328.               - type: grid
  329.                 columns: 2
  330.                 square: false
  331.                 cards:
  332.                   - entity: light.hue_light_balcon
  333.                     name: Lumière
  334.                     template:
  335.                       - icon_info_bg
  336.                       - light
  337.                     type: 'custom:button-card'
  338.                   - entity: binary_sensor.fibaro_multisensor_balcon_mouvement
  339.                     name: Mouvement
  340.                     icon: 'mdi:run'
  341.                     template:
  342.                       - icon_info_bg
  343.                       - mouvement
  344.                     type: 'custom:button-card'
  345.               - template: bordures
  346.                 type: 'custom:button-card'
  347.             type: horizontal-stack
  348.         type: vertical-stack
  349.  
Add Comment
Please, Sign In to add comment