Skip to content

Commit

Permalink
Added AddOn support for Gen3 devices - fixed #1062
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Oct 12, 2024
1 parent 9a8226a commit 76b8ad2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions lib/devices/gen3/shelly1g3.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ shellyHelperGen2.addSwitch(shelly1g3, 0, false);

shellyHelperGen2.addInput(shelly1g3, 0);

shellyHelperGen2.addPlusAddon(shelly1g3);

module.exports = {
shelly1g3: shelly1g3,
};
5 changes: 2 additions & 3 deletions lib/devices/gen3/shelly2pmg3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

0 comments on commit 76b8ad2

Please sign in to comment.