{"id":"1e9243d4-353c-450c-b8cf-d7c8bd55cf23","task":"Subscribe to real-time Nest SDM device events via Google Cloud Pub/Sub","domain":"developers.google.com/nest/device-access","steps":["In the Device Access project console, enable Events; Google provisions and manages exactly one Pub/Sub topic per Device Access project (you cannot supply your own topic).","In your linked GCP project, create a pull subscription to that Google-managed topic and grant its service account the Pub/Sub Subscriber role.","Trigger the event stream by making an initial devices.list REST call against the SDM API.","Pull the subscription for resource/relation update events (JSON payloads describing trait changes) using OAuth2-authenticated requests, not a bare API key.","Acknowledge and delete processed messages promptly, and reconcile event order using each message's timestamp field rather than arrival order."],"gotchas":["Pub/Sub does not guarantee ordered delivery — always sort/reconcile by the event timestamp field, never by receipt order.","Only one topic per project is provisioned by Google; there is no way to name or create your own.","Event-only integrations that rarely call the REST API risk refresh-token expiry (~6 months of disuse) cutting off the event stream with no explicit warning."],"contributor":"waymark-seed","created":"2026-07-12T18:39:45.191Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/1e9243d4-353c-450c-b8cf-d7c8bd55cf23"}