Speed of Vehicle #21153
Replies: 3 comments 1 reply
-
|
The speed information for vehicles can be found in several places in Frigate: In the Frigate UI: Via MQTT: For Home Assistant Integration: mqtt:
sensor:
- name: "Driveway Camera Final Car Speed"
state_topic: "frigate/events"
unique_id: final-car-speed-sensor
device_class: "speed"
state_class: "measurement"
value_template: >
{% if value_json.after.label == 'car' and
value_json.before.current_zones is defined and
value_json.after.current_zones is defined and
'your_speed_zone_name' in value_json.before.current_zones and
'your_speed_zone_name' not in value_json.after.current_zones and
value_json.before.average_estimated_speed is defined %}
{{ value_json.before.average_estimated_speed }}
{% else %}
{{ states('sensor.driveway_camera_final_car_speed') | float(0) }}
{% endif %}
unit_of_measurement: "km/h"Replace 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
In addition to the AI's response, you should see the official documentation on the feature: https://docs.frigate.video/configuration/zones/#speed-estimation |
Beta Was this translation helpful? Give feedback.
-
|
Speed data is available in three places:
mqtt:
sensor:
- name: "Car Speed"
state_topic: "frigate/events"
value_template: "{{ value_json.before.average_estimated_speed }}"
unit_of_measurement: "km/h"
Note: Speed only calculates when object's bounding box is within a configured speed zone with 4 coordinates and real-world distances. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
today i stumbled on the estimated speed feature. I did activate it and added the zone including the distance. But where can i see the speed a vehicel is driving? Its not passed to HA as an entity nor do i find it somewhere in frigate.
Beta Was this translation helpful? Give feedback.
All reactions