From adde5fe23ef16ff3ccb50d0b5c6b7012b3c820ac Mon Sep 17 00:00:00 2001 From: myT Date: Mon, 17 Apr 2023 23:43:28 +0200 Subject: [PATCH] markdown cleanup --- README.md | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 7b4139f..19038a2 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ For electricity price expectations [this Entso-E HACS integration](https://githu | `quantity` | Quantity for which the price is expected. Main difference between below or above 2000l | -A service to get the lowest fuel price in the area of a postalcode is available. For a given fuel type and a distance in km, the lowest fuel price will be fetched and an event will be triggered with all the details found. +A **service `carbu_com.get_lowest_fuel_price`** to get the lowest fuel price in the area of a postalcode is available. For a given fuel type and a distance in km, the lowest fuel price will be fetched and an event will be triggered with all the details found. -
Even data returned @@ -132,38 +132,38 @@ A service to get the lowest fuel price in the area of a postalcode is available. -
Example service call -``` -service: carbu_com.get_lowest_fuel_price -data: - fuel_type: diesel - country: BE - postalcode: 3620 - town: Lanaken - max_distance: 20 - filter: Shell + ``` + service: carbu_com.get_lowest_fuel_price + data: + fuel_type: diesel + country: BE + postalcode: 3620 + town: Lanaken + max_distance: 20 + filter: Shell -``` + ```
-
Example automation triggered by event -``` -alias: Carbu event -description: "" -trigger: - - platform: event - event_type: carbu_com_lowest_fuel_price -condition: [] -action: - - service: notify.persistent_notification - data: - message: >- - {{ trigger.event.data.supplier_brand }}: {{ trigger.event.data.price }}€ - at {{ trigger.event.data.distance }}km, {{ trigger.event.data.address }} -mode: single - -``` + ``` + alias: Carbu event + description: "" + trigger: + - platform: event + event_type: carbu_com_lowest_fuel_price + condition: [] + action: + - service: notify.persistent_notification + data: + message: >- + {{ trigger.event.data.supplier_brand }}: {{ trigger.event.data.price }}€ + at {{ trigger.event.data.distance }}km, {{ trigger.event.data.address }} + mode: single + + ```