Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the Traccar Server integration."""
2 
3 from logging import getLogger
4 
5 DOMAIN = "traccar_server"
6 LOGGER = getLogger(__package__)
7 
8 ATTR_ADDRESS = "address"
9 ATTR_ALTITUDE = "altitude"
10 ATTR_CATEGORY = "category"
11 ATTR_GEOFENCE = "geofence"
12 ATTR_MOTION = "motion"
13 ATTR_SPEED = "speed"
14 ATTR_STATUS = "status"
15 ATTR_TRACKER = "tracker"
16 ATTR_TRACCAR_ID = "traccar_id"
17 
18 CONF_MAX_ACCURACY = "max_accuracy"
19 CONF_CUSTOM_ATTRIBUTES = "custom_attributes"
20 CONF_EVENTS = "events"
21 CONF_SKIP_ACCURACY_FILTER_FOR = "skip_accuracy_filter_for"
22 
23 EVENTS = {
24  "deviceMoving": "device_moving",
25  "commandResult": "command_result",
26  "deviceFuelDrop": "device_fuel_drop",
27  "geofenceEnter": "geofence_enter",
28  "deviceOffline": "device_offline",
29  "driverChanged": "driver_changed",
30  "geofenceExit": "geofence_exit",
31  "deviceOverspeed": "device_overspeed",
32  "deviceOnline": "device_online",
33  "deviceStopped": "device_stopped",
34  "maintenance": "maintenance",
35  "alarm": "alarm",
36  "textMessage": "text_message",
37  "deviceUnknown": "device_unknown",
38  "ignitionOff": "ignition_off",
39  "ignitionOn": "ignition_on",
40 }