Skip to content

Commit d4378f2

Browse files
Update README (#11)
Update README with v1.4 changes
1 parent 39f8144 commit d4378f2

File tree

2 files changed

+91
-0
lines changed

2 files changed

+91
-0
lines changed

README.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,97 @@ sort:
9898
reverse: false
9999
```
100100
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+
![Sample Card](https://github.com/netsoft-ruidias/ha-custom-component-precoscombustiveis/blob/main/docs/bar-card.png?raw=true)
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+
```
101192
102193
# Legal notice
103194
This is a personal project and isn't in any way affiliated with, sponsored or endorsed by [DGEG](https://www.dgeg.gov.pt/).

docs/bar-card.png

53 KB
Loading

0 commit comments

Comments
 (0)