Shelly.CloudV1 (Shelly v0.1.0)

Copy Markdown View Source

The legacy Shelly Cloud v1 API (/device/status, /device/relay/control). Shelly has deprecated it and announced removal — prefer Shelly.CloudV2 (same auth key) or the OAuth Shelly.Account API. Kept as a fallback.

Takes the same conn map as Shelly.CloudV2.

Summary

Functions

Full status for one device. Parse with Shelly.Status.parse/4.

Switch a relay channel on or off.

Types

conn()

@type conn() :: %{server: String.t(), auth_key: String.t()}

Functions

get_status(conn, device_id)

Full status for one device. Parse with Shelly.Status.parse/4.

set_switch(conn, device_id, channel, on?)

Switch a relay channel on or off.