Webhook for Traccar (#24762)
* add initial traccar webhook support * remove unused import * add tests but disabled atm * remove translations * add timestamp parameter * use post for tests * rename config_flow * format using black * format tests using black * Use str instead of float * fix most comments * check id * add two device test * reformat * fix failuers * Update tests/components/traccar/test_init.py Co-Authored-By: Martin Hjelmare <marhje52@kth.se> * Update tests/components/traccar/test_init.py Co-Authored-By: Martin Hjelmare <marhje52@kth.se> * Update tests/components/traccar/test_init.py Co-Authored-By: Martin Hjelmare <marhje52@kth.se> * Update tests/components/traccar/test_init.py Co-Authored-By: Martin Hjelmare <marhje52@kth.se> * black
This commit is contained in:
parent
60dfa38717
commit
dc5c1783dc
8 changed files with 556 additions and 6 deletions
|
@ -1,16 +1,26 @@
|
|||
"""Constants for Traccar integration."""
|
||||
|
||||
DOMAIN = "traccar"
|
||||
|
||||
CONF_MAX_ACCURACY = "max_accuracy"
|
||||
CONF_SKIP_ACCURACY_ON = "skip_accuracy_filter_on"
|
||||
|
||||
ATTR_ACCURACY = "accuracy"
|
||||
ATTR_ADDRESS = "address"
|
||||
ATTR_ALTITUDE = "altitude"
|
||||
ATTR_BATTERY = "batt"
|
||||
ATTR_BEARING = "bearing"
|
||||
ATTR_CATEGORY = "category"
|
||||
ATTR_GEOFENCE = "geofence"
|
||||
ATTR_ID = "id"
|
||||
ATTR_LATITUDE = "lat"
|
||||
ATTR_LONGITUDE = "lon"
|
||||
ATTR_MOTION = "motion"
|
||||
ATTR_SPEED = "speed"
|
||||
ATTR_STATUS = "status"
|
||||
ATTR_TIMESTAMP = "timestamp"
|
||||
ATTR_TRACKER = "tracker"
|
||||
ATTR_TRACCAR_ID = "traccar_id"
|
||||
ATTR_STATUS = "status"
|
||||
|
||||
EVENT_DEVICE_MOVING = "device_moving"
|
||||
EVENT_COMMAND_RESULT = "command_result"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue