Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
BooosesThaSnipper committed Jan 28, 2024
1 parent 8b27c96 commit ec72d89
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/datapoints.js
Expand Up @@ -58,6 +58,9 @@ const shellypmmini = require('./devices/gen2/shellypmmini').shellypmmini;
const shelly1mini = require('./devices/gen2/shelly1mini').shelly1mini;
const shelly1pmmini = require('./devices/gen2/shelly1pmmini').shelly1pmmini;
const shellywalldisplay = require('./devices/gen2/shellywalldisplay').shellywalldisplay;
const shellypmminig3 = require('./devices/gen2/shellypmminig3').shellypmminig3;
const shelly1minig3 = require('./devices/gen2/shelly1minig3').shelly1minig3;
const shelly1pmminig3 = require('./devices/gen2/shelly1pmminig3').shelly1pmminig3;

const devices = {
// Gen 1
Expand Down Expand Up @@ -113,6 +116,9 @@ const devices = {
shelly1mini,
shelly1pmmini,
shellywalldisplay,
shellypmminig3,
shelly1minig3,
shelly1pmminig3,
};

const deviceTypes = {
Expand Down Expand Up @@ -170,6 +176,9 @@ const deviceTypes = {
shelly1mini: ['shelly1mini'],
shelly1pmmini: ['shelly1pmmini'],
shellywalldisplay: ['ShellyWallDisplay'],
shellypmminig3: ['shellypmminig3'],
shelly1minig3: ['shelly1minig3'],
shelly1pmminig3: ['shelly1pmminig3']};
};

const deviceGen = {
Expand Down Expand Up @@ -226,6 +235,9 @@ const deviceGen = {
shelly1mini: 2,
shelly1pmmini: 2,
shellywalldisplay: 2,
shellypmminig3: 2,
shelly1minig3: 2,
shelly1pmminig3: 2,
};

// https://shelly.cloud/knowledge-base/devices/
Expand Down Expand Up @@ -283,6 +295,9 @@ const deviceKnowledgeBase = {
shelly1mini: 'https://kb.shelly.cloud/knowledge-base/shelly-plus-1-mini',
shelly1pmmini: 'https://kb.shelly.cloud/knowledge-base/shelly-plus-1pm-mini',
shellywalldisplay: 'https://kb.shelly.cloud/knowledge-base/shelly-wall-display',
shellypmminig3: 'https://kb.shelly.cloud/knowledge-base/shelly-pm-mini-gen3',
shelly1minig3: 'https://kb.shelly.cloud/knowledge-base/shelly-1-mini-gen3',
shelly1pmminig3: 'https://kb.shelly.cloud/knowledge-base/shelly-1pm-mini-gen3',
};

/**
Expand Down
20 changes: 20 additions & 0 deletions lib/devices/gen2/shelly1minig3.js
@@ -0,0 +1,20 @@
'use strict';

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

/**
* Shelly 1 Mini (Gen 3) / shelly1mini1g3
*
* https://shelly-api-docs.shelly.cloud/gen2/Devices/Gen3/ShellyMini1G3
*/
const shelly1minig3 = {

};

shellyHelperGen2.addSwitchToGen2Device(shelly1minig3, 0, false);

shellyHelperGen2.addInputToGen2Device(shelly1minig3, 0);

module.exports = {
shelly1minig3,
};
20 changes: 20 additions & 0 deletions lib/devices/gen2/shelly1pmminig3.js
@@ -0,0 +1,20 @@
'use strict';

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

/**
* Shelly 1 PM Mini (Gen 3) / shellyplus1pmmini
*
* https://shelly-api-docs.shelly.cloud/gen2/Devices/Gen3/ShellyMini1PMG3/
*/
const shelly1pmminig3 = {

};

shellyHelperGen2.addSwitchToGen2Device(shelly1pmminig3, 0, true);

shellyHelperGen2.addInputToGen2Device(shelly1pmminig3, 0);

module.exports = {
shelly1pmminig3,
};
19 changes: 19 additions & 0 deletions lib/devices/gen2/shellypmminig3.js
@@ -0,0 +1,19 @@
'use strict';

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

/**
* Shelly Plus PM Mini / shellypluspmmini
*
* https://shelly-api-docs.shelly.cloud/gen2/Devices/Gen3/ShellyMiniPMG3
*/
const shellypmminig3 = {

};

shellyHelperGen2.addPM1ToGen2Device(shellypmminig3, 0, true);


module.exports = {
shellypmminig3,
};

0 comments on commit ec72d89

Please sign in to comment.