Hi, I am new to HA, a couple of days ago I got a Teltonica TMT250 tracker for my cat and I was looking for a convenient way to pull the data from it and discovered HA. I managed to set up an MQTT broker with flespi and I can get JSON payload in HA from the tracker.
For example, here is some working battery sensor
- name: "Cat Battery"
state_topic: "flespi/message/gw/channels/id/ch"
value_template: "{{ value_json['battery.level'] }}"
unit_of_measurement: "%"
object_id: "cat_tracker_battery"
unique_id: "cat_tracker_battery_sensor"
But I would like to have something I could track on the map (as some dashboard card probably) and define some zones when the cat gets out of some action would be triggered.
Also, it would be nice to organize it as some device.
This is the example of a payload I receive from flespi
{
"battery.current": 0,
"battery.level": 37,
"battery.voltage": 3.663,
"channel.id": 1111111111,
"event.enum": 156,
"event.priority.enum": 1,
"geofence.status.2": false,
"gnss.state.enum": 1,
"gnss.status": true,
"gsm.mcc": 255,
"gsm.mnc": 6,
"gsm.operator.code": "25307",
"gsm.signal.level": 100,
"ident": "000000000000",
"movement.status": true,
"peer": "255.255.255.255:8000",
"position.altitude": 100,
"position.direction": 340,
"position.fix.age": 0,
"position.hdop": 0.6,
"position.latitude": 00.00000,
"position.longitude": 00.00000,
"position.pdop": 0.7,
"position.satellites": 5,
"position.speed": 4,
"position.valid": true,
"protocol.id": 14,
"server.timestamp": 1663275476.993571,
"timestamp": 1663275475
}
Could you please give some suggestions on how to achieve that and where to start and\or direct me to some resources?