From 8a30eb963945e011d3bf0d0b99cf85efbc6d44a7 Mon Sep 17 00:00:00 2001 From: Markus Thierolf <77847348+thierolm@users.noreply.github.com> Date: Wed, 20 Mar 2024 12:09:41 +0100 Subject: [PATCH] Shelly: enable gen3 devices (#13057) --- meter/shelly/connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meter/shelly/connection.go b/meter/shelly/connection.go index 32ebeb1f51..9fafe41539 100644 --- a/meter/shelly/connection.go +++ b/meter/shelly/connection.go @@ -63,8 +63,8 @@ func NewConnection(uri, user, password string, channel int) (*Connection, error) conn.Client.Transport = transport.BasicAuth(user, password, conn.Client.Transport) } - case 2: - // Shelly GEN 2 API + case 2, 3: + // Shelly GEN 2+ API // https://shelly-api-docs.shelly.cloud/gen2/ conn.uri = fmt.Sprintf("%s/rpc", util.DefaultScheme(uri, "http")) if user != "" {