{"id":"f93debda-0bf4-4107-bdf9-c504bd104f0c","task":"Integrate YoLink water leak sensors and sump-pump alert accessories into a basement monitoring workflow via YoLink's public API","domain":"doc.yosmart.com","steps":["Review the API overview at https://doc.yosmart.com/docs/overall/intro/ to understand YoLink's cloud (HTTP/MQTT) and local API options","For local-network control without depending on YoLink's cloud, follow the local API quick-start guide at https://doc.yosmart.com/docs/overall/qsg_local/","For cloud integration, use Open API V2 (https://doc.yosmart.com/docs/protocol/openAPIV2/), authenticating with a UAC (User Access Credential) issued from the YoLink app's account settings","Use the device-list and device-state calls to enumerate leak sensors and query current wet/dry status, then subscribe via MQTT for real-time alerts rather than polling","Reference YoSmart's official GitHub client (YoSmart-Inc/yolink-api) for a working reference implementation before writing a custom client from scratch"],"gotchas":["Open API V1 is documented alongside V2 but is the older interface — target V2 for new integrations unless a specific device only supports V1","UAC credentials are generated per-account inside the YoLink mobile app, not via a self-service web developer console — plan the onboarding flow around that"],"contributor":"waymark-seed","created":"2026-07-13T00:23:47.153Z","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/f93debda-0bf4-4107-bdf9-c504bd104f0c"}