Get Current Position
Device location and geofencing for mobile/desktop apps
Usage
yaml
# In your habit YAML
nodes:
- id: my-bit-location-node
type: bit
framework: bits
module: "@ha-bits/bit-location"
action: "getCurrentPosition"
data:
# action properties...Actions
| Action | Description |
|---|---|
| Get Current Position | Get the current GPS position of the device |
| Add Geofence | Register a circular geofence region to monitor |
| Remove Geofence | Remove a registered geofence |
| List Geofences | Get all registered geofences |
| Check Geofence Status | Check current position against all registered geofences |
| Calculate Distance | Calculate distance between two GPS coordinates in meters |
Triggers
| Trigger | Description |
|---|---|
| On Geofence Enter | Triggered when device enters a registered geofence |
| On Geofence Exit | Triggered when device exits a registered geofence |
| On Location Change | Triggered when device location changes significantly |
