Fuel Prices in Portugal - Custom Component for Home Assistant
The data source for this integration is the DGEG - Direcção-Geral de Energia e Geologia.
The author of this project categorically rejects any and all responsibility for the fuels prices that were presented by the integration.
This is an official HACS integration and can be added via HACS.
Assuming you have already installed and configured HACS, follow these steps:
- Navigate to the HACS integrations page at http://:8123/hacs/integrations.
- Search for
DGEG - Preços dos Combustíveis
underIntegrations
in the HACS Store tab. - Click
Download this Repository with HACS
- Your done! Now continue with the configuration.
Manual installation is not recomended
- Navigate to
Settings > Devices & Services
and then clickAdd Integration
- Search for
Precos Combustiveis
- (Go to dgeg, search for the desired gas station and copy it's
Id
) - Enter the StationId you copied in the previous step
- Repeat the procedure as many times as desired to include other stations
Manual configuration through configuration.yaml is not recomended, please use the interface configuration as described above
One can use the standard entities card to display data in the UI:
type: entities
entities:
- entity: sensor.galp_irmaos_peres_lda_souto_gasoleo_simples_2
name: Gasóleo simples
- entity: sensor.galp_irmaos_peres_lda_souto_gasoleo_especial
name: Gasóleo especial
- entity: sensor.galp_irmaos_peres_lda_souto_gasoleo_colorido
name: Gasóleo colorido
- entity: sensor.galp_irmaos_peres_lda_souto_gasolina_especial_95
name: Gasolina especial 95
- entity: sensor.galp_irmaos_peres_lda_souto_gasoleo_simples
name: Gasolina especial 98
- entity: sensor.galp_irmaos_peres_lda_souto_gasolina_simples_95
name: Gasolina simples 95
- type: divider
- entity: sensor.galp_irmaos_peres_lda_souto_gasolina_simples_95
type: attribute
attribute: Name
name: Empresa
icon: mdi:greenhouse
- entity: sensor.galp_irmaos_peres_lda_souto_gasolina_simples_95
type: attribute
attribute: Brand
name: Marca
icon: mdi:widgets
- entity: sensor.galp_irmaos_peres_lda_souto_gasolina_simples_95
type: attribute
attribute: StationType
name: Tipo de Posto
- entity: sensor.galp_irmaos_peres_lda_souto_gasolina_simples_95
type: attribute
attribute: LastPriceUpdate
name: Ultima Actualização de Preço
icon: mdi:reload
title: GALP Irmãos Peres, Lda
Which will result in the following card:
Or, if you prefer, you can even use a custom:auto-entities card to auto display your prices:
type: custom:auto-entities
card:
type: entities
title: Diesel Prices
filter:
include:
- entity_id: /sensor\..*_gasoleo/
sort:
method: state
numeric: true
reverse: false
This is a personal project and isn't in any way affiliated with, sponsored or endorsed by DGEG.
All product names, trademarks and registered trademarks in (the images in) this repository, are property of their respective owners. All images in this repository are used by the project for identification purposes only.