Skip to content

Commit

Permalink
✨ Add more sensor matchers
Browse files Browse the repository at this point in the history
Also add one new sensor for "Navigation fluviale" since it did not fit
in any category

Fix #41
  • Loading branch information
kamaradclimber committed Jul 28, 2023
1 parent 91373c8 commit 2d70b8e
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions custom_components/vigieau/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,19 @@ class VigieEauSensorEntityDescription(
icon="mdi:road",
category="roads",
key="roads",
matchers=["trottoirs"],
matchers=["trottoirs", "voiries"],
),
VigieEauSensorEntityDescription(
name="Arrosage des pelouses",
icon="mdi:sprinkler-variant",
category="lawn",
key="lawn",
matchers=["pelouses", "jardins d'agrément", "massifs fleuris"],
matchers=[
"pelouses",
"jardins d'agrément",
"massifs fleuris",
"Arrosage des espaces verts",
],
),
VigieEauSensorEntityDescription(
name="Lavage des véhicules",
Expand Down Expand Up @@ -112,7 +117,7 @@ class VigieEauSensorEntityDescription(
icon="mdi:waves",
category="ponds",
key="ponds",
matchers=["remplissage.+plan.* d.eau", "vidanges.+plan.* d.eau"],
matchers=["remplissage.+plan.* d.eau", "vidange.+plan.* d.eau"],
),
VigieEauSensorEntityDescription(
name="Travaux sur cours d'eau",
Expand All @@ -123,8 +128,16 @@ class VigieEauSensorEntityDescription(
"ouvrage.+cours d.eau",
"travaux.+cours d.eau",
"manoeuvre.+vannes", # Manoeuvre de vannes des seuils et barrages
"Gestion des ouvrages", # FIXME: we should probably match with the category as well
],
),
VigieEauSensorEntityDescription(
name="Navigation fluviale",
icon="mdi:ferry",
category="river_movement",
key="river_movement",
matchers=["Navigation fluviale"],
),
VigieEauSensorEntityDescription(
name="Arrosage des golfs",
icon="mdi:golf",
Expand Down

0 comments on commit 2d70b8e

Please sign in to comment.