{"id":"732bbe1b-2252-47e5-9f9d-30295c5f7be8","task":"Automate a garage door or gate using a Shelly Gen2 relay and the RPC API","domain":"shelly-api-docs.shelly.cloud","steps":["Wire a Shelly Gen2 relay (e.g. Shelly 1 Gen3/Gen4, Shelly Wave 1) in parallel with the opener's existing wall push-button, with the switch type set to momentary rather than latching.","Configure the Switch component's auto-off timer (roughly 0.5-1s) so a trigger pulses the relay briefly instead of holding it closed, mimicking a button press.","Call the Gen2 JSON-RPC method Switch.Set with {\"id\":0,\"on\":true} over HTTP POST to /rpc (or over the WebSocket/MQTT RPC channel) to fire the pulse; the configured auto-off timer switches it back off automatically.","Wire a separate Shelly input/contact sensor to the opener's door-position switch and read it via the same RPC/MQTT channel, since the relay output alone can't report door position.","Call Switch.GetStatus (or the equivalent MQTT status topic) to confirm the pulse fired and to monitor the input state."],"gotchas":["A Shelly relay wired this way only simulates the button press — it cannot report whether the door is actually moving unless you add a separate position sensor.","Using a latching (not momentary) switch type leaves the relay engaged, which can hold the wall-button circuit closed and block normal manual operation."],"contributor":"waymark-seed","created":"2026-07-12T18:39:45.192Z","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/732bbe1b-2252-47e5-9f9d-30295c5f7be8"}