diff --git a/README.md b/README.md index 42df0d0c..829583e3 100755 --- a/README.md +++ b/README.md @@ -113,6 +113,7 @@ It uses the default Shelly firmware (no flashing of firmware needed!). You will | Shelly 1 PM Gen3 (shelly1pmg3) | ❌ | >= v8.0.0 | | Shelly 1 Gen3 (shelly1g3) | ❌ | >= v8.0.0 | | Shelly 2 PM Gen3 (shelly2pmg3) | ❌ | >= v8.3.0 | +| Shelly 0/1-10V PM Gen3 (shelly0110dimg3) | ❌ | >= v8.4.0 | ### Bluetooth Low Energy (BLU) @@ -136,7 +137,6 @@ Adapter version >= v8.2.0 required for: - Shelly Plus Plug US - USB powered UVC LED strip - Shelly i4 Gen3 (shellyi4g3) -- Shelly Dimmer Gen3 (shelly0110dimg3) - Shelly Plug S Gen3 - Shelly DALI Dimmer Gen3 @@ -153,6 +153,7 @@ Adapter version >= v8.2.0 required for: ### **WORK IN PROGRESS** * (@klein0r) Added AddOn support for Gen3 devices +* (@kalledausb) Added Shelly 0/1-10V PM Gen3 Integration ### 8.3.0 (2024-10-10) * (@rockflopp) Added Shelly 2 PM gen 3 Integration diff --git a/lib/datapoints.js b/lib/datapoints.js index d1d5d7d7..6124cba6 100644 --- a/lib/datapoints.js +++ b/lib/datapoints.js @@ -74,6 +74,7 @@ const shellyhtg3 = require('./devices/gen3/shellyhtg3').shellyhtg3; const shelly1pmg3 = require('./devices/gen3/shelly1pmg3').shelly1pmg3; const shelly1g3 = require('./devices/gen3/shelly1g3').shelly1g3; const shelly2pmg3 = require('./devices/gen3/shelly2pmg3').shelly2pmg3; +const shelly0110dimg3 = require('./devices/gen3/shelly0110dimg3').shelly0110dimg3; const devices = { @@ -144,6 +145,7 @@ const devices = { shelly1pmg3, shelly1g3, shelly2pmg3, + shelly0110dimg3, }; const deviceTypes = { @@ -215,6 +217,7 @@ const deviceTypes = { shelly1pmg3: ['shelly1pmg3'], shelly1g3: ['shelly1g3'], shelly2pmg3: ['shelly2pmg3'], + shelly0110dimg3: ['shelly0110dimg3'], }; const deviceGen = { @@ -285,6 +288,7 @@ const deviceGen = { shelly1pmg3: 3, shelly1g3: 3, shelly2pmg3: 3, + shelly0110dimg3: 3, }; // https://shelly.cloud/knowledge-base/devices/ @@ -356,6 +360,7 @@ const deviceKnowledgeBase = { shelly1pmg3: 'https://kb.shelly.cloud/knowledge-base/shelly-1pm-gen3', shelly1g3: 'https://kb.shelly.cloud/knowledge-base/shelly-1-gen3', shelly2pmg3: 'https://kb.shelly.cloud/knowledge-base/shelly-2pm-gen3', + shelly0110dimg3: 'https://kb.shelly.cloud/knowledge-base/shelly-dimmer-0-1-10v-pm-gen3', }; /** diff --git a/lib/devices/gen3/shelly0110dimg3.js b/lib/devices/gen3/shelly0110dimg3.js new file mode 100644 index 00000000..13971212 --- /dev/null +++ b/lib/devices/gen3/shelly0110dimg3.js @@ -0,0 +1,22 @@ +'use strict'; + +const shellyHelperGen2 = require('../gen2-helper'); + +/** + * Shelly Plus 0-10V Dimmer Gen 3 / shelly0110dimg3 + * + * https://shelly-api-docs.shelly.cloud/gen2/Devices/Gen3/ShellyDimmer0110VPMG3/ + */ +const shelly0110dimg3 = {}; + +shellyHelperGen2.addLight(shelly0110dimg3, 0); + +shellyHelperGen2.addInput(shelly0110dimg3, 0); +shellyHelperGen2.addInput(shelly0110dimg3, 1); + +shellyHelperGen2.addPlusAddon(shelly0110dimg3); + +module.exports = { + shelly0110dimg3: shelly0110dimg3, +}; +