Site changes
Subscribe to site change events to trigger workflows when assets move between buildings or campuses.
New to the WebSocket API?Start with Realtime WebSocket Updates before diving into examples.
Filter
{ "filter": "tracking.location_estimate.site.site_name != @tracking.location_estimate.site.site_name" }The @ prefix on the second field checks the previous value, so this only fires when a device actually moves between sites rather than on every update.
Response
When a device changes sites, you'll receive a full device object:
{ "update": { .. device object .. } }Finding Site Names
You can look these up in the Luna Console, or query a known device at that site via the REST API and inspect tracking.location_estimate.site.site_name.
Updated 2 months ago
