diff --git a/README.md b/README.md index cc63d700..0edb3bd8 100755 --- a/README.md +++ b/README.md @@ -158,6 +158,10 @@ execute Placeholder for the next version (at the beginning of the line): ### **WORK IN PROGRESS** --> +### **WORK IN PROGRESS** + +* (@klein0r) Added AddOn support for Gen3 devices + ### 8.3.0 (2024-10-10) * (@rockflopp) Added Shelly 2 PM gen 3 Integration diff --git a/lib/devices/gen3/shelly1g3.js b/lib/devices/gen3/shelly1g3.js index d2454613..b9a07c12 100644 --- a/lib/devices/gen3/shelly1g3.js +++ b/lib/devices/gen3/shelly1g3.js @@ -13,6 +13,8 @@ shellyHelperGen2.addSwitch(shelly1g3, 0, false); shellyHelperGen2.addInput(shelly1g3, 0); +shellyHelperGen2.addPlusAddon(shelly1g3); + module.exports = { shelly1g3: shelly1g3, }; diff --git a/lib/devices/gen3/shelly2pmg3.js b/lib/devices/gen3/shelly2pmg3.js index 74fbe0a4..683dd4ac 100644 --- a/lib/devices/gen3/shelly2pmg3.js +++ b/lib/devices/gen3/shelly2pmg3.js @@ -37,17 +37,16 @@ const shelly2pmg3 = { }, }; -// Add Switches (like Shelly Pro 2 PM) shellyHelperGen2.addSwitch(shelly2pmg3, 0, true); shellyHelperGen2.addSwitch(shelly2pmg3, 1, true); -// Add Inputs (like Shelly Pro 2 PM) shellyHelperGen2.addInput(shelly2pmg3, 0); shellyHelperGen2.addInput(shelly2pmg3, 1); -// Add cover functionality (optional) shellyHelperGen2.addCover(shelly2pmg3, 0); +shellyHelperGen2.addPlusAddon(shelly2pmg3); + module.exports = { shelly2pmg3: shelly2pmg3, };