From 8004b65470bb26b300b3d01264086b196fdd84ec Mon Sep 17 00:00:00 2001 From: Fabrice Devaux Date: Mon, 23 Dec 2024 21:53:54 +0100 Subject: [PATCH] Doc: template sensor for vehicle_in_motion Fixes #471 --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c9dd969..6a73d1d 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,15 @@ If your desired language is not available, please [open an issue](https://github ### Device Tracker -Location of vehicles are exposed as device trackers. +Location of vehicles are exposed as device trackers. While the vehicle is moving the Skoda API does not return GPS coordinates and the device tracker will report the location `vehicle_in_motion`. + +If you need a binary sensor to report if the vehicle is in motion this can be achieve using a template binary sensor for e.g. + +``` +{% if states('device_tracker.skoda_enyaq_position') == 'vehicle_in_motion' %} +True +{% endif %} +``` ## Sending updates