1 """Constants for the Traccar Server integration."""
3 from logging
import getLogger
5 DOMAIN =
"traccar_server"
6 LOGGER = getLogger(__package__)
8 ATTR_ADDRESS =
"address"
9 ATTR_ALTITUDE =
"altitude"
10 ATTR_CATEGORY =
"category"
11 ATTR_GEOFENCE =
"geofence"
12 ATTR_MOTION =
"motion"
14 ATTR_STATUS =
"status"
15 ATTR_TRACKER =
"tracker"
16 ATTR_TRACCAR_ID =
"traccar_id"
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"
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",
36 "textMessage":
"text_message",
37 "deviceUnknown":
"device_unknown",
38 "ignitionOff":
"ignition_off",
39 "ignitionOn":
"ignition_on",