From 7bbc14cb7fb34bd6940706d2443f56603a64357b Mon Sep 17 00:00:00 2001 From: Matthias Kleine Date: Sun, 24 Nov 2024 13:55:45 +0100 Subject: [PATCH] Added Shelly BLU Gateway Gen3 - fixes #1090 --- README.md | 3 ++- lib/datapoints.js | 5 +++++ lib/devices/gen3/shellyblugwg3.js | 12 ++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 lib/devices/gen3/shellyblugwg3.js diff --git a/README.md b/README.md index 105dafbe..039b369e 100755 --- a/README.md +++ b/README.md @@ -115,6 +115,7 @@ It uses the default Shelly firmware (no flashing of firmware needed!). You will | Shelly 2 PM Gen3 (shelly2pmg3) | ❌ | >= v8.3.0 | | Shelly 0/1-10V PM Gen3 (shelly0110dimg3) | ❌ | >= v8.4.0 | | Shelly Plug S Gen3 (shellyplugsg3) | ❌ | >= v8.5.0 | +| Shelly BLU Gateway Gen3 (shellyblugwg3) | ❌ | >= v8.5.0 | ### Bluetooth Low Energy (BLU) @@ -138,7 +139,6 @@ Adapter version >= v8.2.0 required for: - Shelly Plus Plug US - USB powered UVC LED strip - Shelly i4 Gen3 (shellyi4g3) -- Shelly Plug S Gen3 - Shelly DALI Dimmer Gen3 ## Sentry @@ -154,6 +154,7 @@ Adapter version >= v8.2.0 required for: ### **WORK IN PROGRESS** * (@klein0r) Added Shelly Plug S Gen3 +* (@klein0r) Added Shelly BLU Gateway Gen3 ### 8.4.0 (2024-10-20) diff --git a/lib/datapoints.js b/lib/datapoints.js index 8b8f0930..3e4f49d1 100644 --- a/lib/datapoints.js +++ b/lib/datapoints.js @@ -76,6 +76,7 @@ const shelly1g3 = require('./devices/gen3/shelly1g3').shelly1g3; const shelly2pmg3 = require('./devices/gen3/shelly2pmg3').shelly2pmg3; const shelly0110dimg3 = require('./devices/gen3/shelly0110dimg3').shelly0110dimg3; const shellyplugsg3 = require('./devices/gen3/shellyplugsg3').shellyplugsg3; +const shellyblugwg3 = require('./devices/gen3/shellyblugwg3').shellyblugwg3; const devices = { // Gen 1 @@ -147,6 +148,7 @@ const devices = { shelly2pmg3, shelly0110dimg3, shellyplugsg3, + shellyblugwg3, }; const deviceTypes = { @@ -220,6 +222,7 @@ const deviceTypes = { shelly2pmg3: ['shelly2pmg3'], shelly0110dimg3: ['shelly0110dimg3'], shellyplugsg3: ['shellyplugsg3'], + shellyblugwg3: ['shellyblugwg3'], }; const deviceGen = { @@ -292,6 +295,7 @@ const deviceGen = { shelly2pmg3: 3, shelly0110dimg3: 3, shellyplugsg3: 3, + shellyblugwg3: 3, }; // https://shelly.cloud/knowledge-base/devices/ @@ -365,6 +369,7 @@ const deviceKnowledgeBase = { shelly2pmg3: 'https://kb.shelly.cloud/knowledge-base/shelly-2pm-gen3', shelly0110dimg3: 'https://kb.shelly.cloud/knowledge-base/shelly-dimmer-0-1-10v-pm-gen3', shellyplugsg3: 'https://kb.shelly.cloud/knowledge-base/shelly-plug-s-mtr-gen3', + shellyblugwg3: 'https://kb.shelly.cloud/knowledge-base/shelly-blu-gateway-gen3', }; /** diff --git a/lib/devices/gen3/shellyblugwg3.js b/lib/devices/gen3/shellyblugwg3.js new file mode 100644 index 00000000..14377452 --- /dev/null +++ b/lib/devices/gen3/shellyblugwg3.js @@ -0,0 +1,12 @@ +'use strict'; + +/** + * Shelly BLU Gateway Gen3 / shellyblugwg3 + * + * https://shelly-api-docs.shelly.cloud/gen2/Devices/Gen3/ShellyBluGwG3 + */ +const shellyblugwg3 = {}; + +module.exports = { + shellyblugwg3, +};