|
98 | 98 | reverse: false |
99 | 99 | ``` |
100 | 100 |
|
| 101 | +Or, use the [custom:bar-card](https://github.com/custom-cards/bar-card) integration to display a nice graph: |
| 102 | +
|
| 103 | +```yaml |
| 104 | +type: custom:stack-in-card |
| 105 | +cards: |
| 106 | + - type: custom:mushroom-template-card |
| 107 | + primary: Preços Combustíveis |
| 108 | + secondary: Gasóleo Aditivado |
| 109 | + icon: mdi:gas-station |
| 110 | + icon_color: orange |
| 111 | + - type: custom:bar-card |
| 112 | + entities: |
| 113 | + - entity: sensor.galp_garagem_parque_de_barcelos_lda_gasoleo_especial |
| 114 | + name: Galp Manhente |
| 115 | + color: '#FA551E' |
| 116 | + - entity: sensor.galp_garagem_parque_de_barcelos_lda_gasoleo_especial_2 |
| 117 | + name: Galp Garagem Parque |
| 118 | + color: '#FA551E' |
| 119 | + - entity: sensor.alves_bandeira_ab_de_tamel_gasoleo_especial |
| 120 | + name: Alves Bandeira |
| 121 | + color: '#002262' |
| 122 | + - entity: >- |
| 123 | + sensor.freitas_casp_area_de_servico_portas_do_cavado_lda_gasoleo_especial |
| 124 | + name: CASP |
| 125 | + color: '#E75938' |
| 126 | + - entity: sensor.generico_aparicio_carvalho_araujo_lda_gasoleo_especial |
| 127 | + name: Galo Gamil |
| 128 | + color: '#E75938' |
| 129 | + - entity: sensor.repsol_e_s_barcelos_ii_gasoleo_especial |
| 130 | + name: Repsol (escola) |
| 131 | + color: '#FF8200' |
| 132 | + - entity: sensor.leclerc_e_leclerc_barcelos_gasoleo_especial |
| 133 | + name: E Leclerc |
| 134 | + color: '#005ABB' |
| 135 | + - entity: sensor.bp_bp_barcelos_frescainha_gasoleo_especial |
| 136 | + name: BP Vila Frescainha |
| 137 | + color: '#00AD5E' |
| 138 | + height: 25px |
| 139 | + decimal: 3 |
| 140 | + min: 0.5 |
| 141 | + max: 2.5 |
| 142 | + positions: |
| 143 | + name: inside |
| 144 | + value: inside |
| 145 | + icon: outside |
| 146 | + indicator: 'off' |
| 147 | + minmax: 'off' |
| 148 | + style: | |
| 149 | + bar-card-name{ |
| 150 | + margin-right: 10px !important; |
| 151 | + font-size: var(--paper-font-body1_-_font-size); |
| 152 | + white-space: nowrap; |
| 153 | + } |
| 154 | + bar-card-background{ |
| 155 | + margin: 4px 0 4px 0 !important; |
| 156 | + } |
| 157 | + ha-card{ |
| 158 | + --bar-card-border-radius: 5px; |
| 159 | + } |
| 160 | + #states{ |
| 161 | + padding: 0 16px; |
| 162 | + } |
| 163 | + #states > * { |
| 164 | + margin-bottom: 0px; |
| 165 | + } |
| 166 | +``` |
| 167 | +
|
| 168 | +Which will result in the following card: |
| 169 | +
|
| 170 | + |
| 171 | +
|
| 172 | +## Map Card |
| 173 | +
|
| 174 | +Since version v1.4.0 you can also add these entities to your map card, to show them in your map |
| 175 | +
|
| 176 | +```yaml |
| 177 | +type: map |
| 178 | +entities: |
| 179 | + - entity: zone.home |
| 180 | + - entity: zone.other |
| 181 | + - entity: person.one |
| 182 | + - entity: person.two |
| 183 | + - entity: person.three |
| 184 | + - entity: sensor.galp_garagem_parque_de_barcelos_lda_gasoleo_especial |
| 185 | + name: GALP |
| 186 | + - entity: sensor.bp_bp_barcelos_frescainha_gasoleo_especial |
| 187 | + name: BP |
| 188 | +hours_to_show: 12 |
| 189 | +default_zoom: 12 |
| 190 | +dark_mode: true |
| 191 | +``` |
101 | 192 |
|
102 | 193 | # Legal notice |
103 | 194 | This is a personal project and isn't in any way affiliated with, sponsored or endorsed by [DGEG](https://www.dgeg.gov.pt/). |
|
0 commit comments