Skip to content

Commit

Permalink
Shelly 3EM63 Gen3 added (#1135)
Browse files Browse the repository at this point in the history
* Update datapoints.js

* Add files via upload

* linter fix

---------

Co-authored-by: Martin M. <mcm57@gmx.at>
  • Loading branch information
lennycb and mcm1957 authored Mar 7, 2025
1 parent 45f3784 commit 1f790e3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/datapoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const shelly0110dimg3 = require('./devices/gen3/shelly0110dimg3').shelly0110dimg
const shellyplugsg3 = require('./devices/gen3/shellyplugsg3').shellyplugsg3;
const shellyblugwg3 = require('./devices/gen3/shellyblugwg3').shellyblugwg3;
const shellyi4g3 = require('./devices/gen3/shellyi4g3').shellyi4g3;
const shelly3em63g3 = require('./devices/gen3/shelly3em63g3').shelly3em63g3;

const devices = {
// Gen 1
Expand Down Expand Up @@ -153,6 +154,7 @@ const devices = {
shellyplugsg3,
shellyblugwg3,
shellyi4g3,
shelly3em63g3,
};

const deviceTypes = {
Expand Down Expand Up @@ -229,6 +231,7 @@ const deviceTypes = {
shellyplugsg3: ['shellyplugsg3'],
shellyblugwg3: ['shellyblugwg3'],
shellyi4g3: ['shellyi4g3'],
shelly3em63g3: ['shelly3em63g3'],
};

const deviceGen = {
Expand Down Expand Up @@ -304,6 +307,7 @@ const deviceGen = {
shellyplugsg3: 3,
shellyblugwg3: 3,
shellyi4g3: 3,
shelly3em63g3: 3,
};

// https://shelly.cloud/knowledge-base/devices/
Expand Down Expand Up @@ -380,6 +384,7 @@ const deviceKnowledgeBase = {
shellyplugsg3: 'https://kb.shelly.cloud/knowledge-base/shelly-plug-s-mtr-gen3',
shellyblugwg3: 'https://kb.shelly.cloud/knowledge-base/shelly-blu-gateway-gen3',
shellyi4g3: 'https://kb.shelly.cloud/knowledge-base/shelly-i4-gen3',
shelly3em63g3: 'https://kb.shelly.cloud/knowledge-base/shelly-3em-63-gen3',
};

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

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

/**
* Shelly 3EM / shelly3emg3
*
* https://shelly-api-docs.shelly.cloud/gen2/Devices/Gen3/Shelly3EMG3
*/
const shelly3em63g3 = {};

shellyHelperGen2.addEnergyMeter(shelly3em63g3, 0, ['a', 'b', 'c']);
shellyHelperGen2.addEnergyMeterData(shelly3em63g3, 0, ['a', 'b', 'c']);
shellyHelperGen2.addEMTemperatureSensor(shelly3em63g3);

module.exports = {
shelly3em63g3: shelly3em63g3,
};

0 comments on commit 1f790e3

Please sign in to comment.