Zone Changes

Subscribe to zone change events to trigger workflows when assets move between rooms or areas within a site.


📘

New to the WebSocket API? Start with Realtime WebSocket Updates before diving into examples.

Filter

{ "filter": "tracking.location_estimate.site.zone.zone_name != @tracking.location_estimate.site.zone.zone_name" }

The @ prefix on the second field checks the previous value, so this only fires when a device actually moves between zones rather than on every update.

Response

When a device changes zones, you'll receive a full device object:

{ "update": { .. device object .. } }

Finding Zone Names

You can look these up in the Luna Console, or query a known device in that zone via the REST API and inspect tracking.location_estimate.site.zone.zone_name.