Skip to content

Commit

Permalink
add dashboard example
Browse files Browse the repository at this point in the history
  • Loading branch information
Aohzan committed May 12, 2022
1 parent e44eabe commit 37ab1f9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Copier le dossier `prix_carburant` dans le dossier `config/custom_components` de

Récupérer l'ID des stations voulues sur https://www.prix-carburants.gouv.fr/. Pour cela chercher la station, cliquer sur le logo station sur la carte, passer le curseur sur `Voir plan` et noter le numéro qui apparait en bas de votre navigateur. Exemple avec Firefox :

![Récupération d'ID avec Firefox](firefox_id.png)
![Récupération d'ID avec Firefox](readme_firefoxid.png)

Puis dans le fichier configuration.yaml, mettre par exemple :

Expand All @@ -23,6 +23,26 @@ sensor:
- 59000080
```
## Dashboard
Exemple de configuration avec [multiple-entity-row](https://github.com/benct/lovelace-multiple-entity-row):
![multiple-entity-row](readme_multipleentityrow.png)
```yaml
type: entities
entities:
- entity: sensor.station_mastation_sp98
type: custom:multiple-entity-row
name: Ma Station
show_state: false
entities:
- entity: sensor.station_mastation_e10
name: E10
- entity: sensor.station_mastation_sp98
name: SP98
```
## TODO
- Ajouter la récupération automatique des stations via la localisation configurée dans Home-Assistant
Expand Down
File renamed without changes
Binary file added readme_multipleentityrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 37ab1f9

Please sign in to comment.