Skip to content

Commit

Permalink
Added Shelly Plug S Gen3 - fixes #1068
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Nov 24, 2024
1 parent 1a3ed2b commit ea66ea7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ It uses the default Shelly firmware (no flashing of firmware needed!). You will
| 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 |
| Shelly Plug S Gen3 (shellyplugsg3) || >= v8.5.0 |

### Bluetooth Low Energy (BLU)

Expand Down Expand Up @@ -150,6 +151,10 @@ Adapter version >= v8.2.0 required for:
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### **WORK IN PROGRESS**

* (@klein0r) Added Shelly Plug S Gen3

### 8.4.0 (2024-10-20)

* (@klein0r) Added AddOn support for Gen3 devices
Expand Down
6 changes: 5 additions & 1 deletion lib/datapoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ 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 shellyplugsg3 = require('./devices/gen3/shellyplugsg3').shellyplugsg3;

const devices = {
// Gen 1
Expand Down Expand Up @@ -146,6 +146,7 @@ const devices = {
shelly1g3,
shelly2pmg3,
shelly0110dimg3,
shellyplugsg3,
};

const deviceTypes = {
Expand Down Expand Up @@ -218,6 +219,7 @@ const deviceTypes = {
shelly1g3: ['shelly1g3'],
shelly2pmg3: ['shelly2pmg3'],
shelly0110dimg3: ['shelly0110dimg3'],
shellyplugsg3: ['shellyplugsg3'],
};

const deviceGen = {
Expand Down Expand Up @@ -289,6 +291,7 @@ const deviceGen = {
shelly1g3: 3,
shelly2pmg3: 3,
shelly0110dimg3: 3,
shellyplugsg3: 3,
};

// https://shelly.cloud/knowledge-base/devices/
Expand Down Expand Up @@ -361,6 +364,7 @@ const deviceKnowledgeBase = {
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',
shellyplugsg3: 'https://kb.shelly.cloud/knowledge-base/shelly-plug-s-mtr-gen3',
};

/**
Expand Down
16 changes: 16 additions & 0 deletions lib/devices/gen3/shellyplugsg3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict';

const shellyHelperGen2 = require('../gen2-helper');

/**
* Shelly Plug S Gen3 / shellyplugsg3
*
* https://shelly-api-docs.shelly.cloud/gen2/Devices/Gen3/ShellyPlugSG3
*/
const shellyplugsg3 = {};

shellyHelperGen2.addSwitch(shellyplugsg3, 0, true);

module.exports = {
shellyplugsg3,
};

0 comments on commit ea66ea7

Please sign in to comment.