Skip to content

Commit

Permalink
Added Shelly 0/1-10V PM Gen3 support (#1066)
Browse files Browse the repository at this point in the history
* Added Shelly 0/1-10V PM Gen3 support

* Update shelly0110dimg3.js

Corrected Link

* Update README.md

Typo in version required corrected
  • Loading branch information
kalledausb authored Oct 20, 2024
1 parent fae6ef1 commit 03611d0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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

Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions lib/datapoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -144,6 +145,7 @@ const devices = {
shelly1pmg3,
shelly1g3,
shelly2pmg3,
shelly0110dimg3,
};

const deviceTypes = {
Expand Down Expand Up @@ -215,6 +217,7 @@ const deviceTypes = {
shelly1pmg3: ['shelly1pmg3'],
shelly1g3: ['shelly1g3'],
shelly2pmg3: ['shelly2pmg3'],
shelly0110dimg3: ['shelly0110dimg3'],
};

const deviceGen = {
Expand Down Expand Up @@ -285,6 +288,7 @@ const deviceGen = {
shelly1pmg3: 3,
shelly1g3: 3,
shelly2pmg3: 3,
shelly0110dimg3: 3,
};

// https://shelly.cloud/knowledge-base/devices/
Expand Down Expand Up @@ -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',
};

/**
Expand Down
22 changes: 22 additions & 0 deletions lib/devices/gen3/shelly0110dimg3.js
Original file line number Diff line number Diff line change
@@ -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,
};

0 comments on commit 03611d0

Please sign in to comment.