New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

iobroker.shelly

Package Overview
Dependencies
Maintainers
2
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iobroker.shelly - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

lib/devices/shellydimmer.js

3

.vscode/launch.json

@@ -15,3 +15,4 @@ {

"--debug", "--force", "--logs", "--trace-warnings"
]
],
"console": "integratedTerminal"
},

@@ -18,0 +19,0 @@ {

@@ -25,3 +25,3 @@ ![Logo](../../admin/shelly.png)

### MQTT
For using MQTT you have to activate MQTT on your Shelly device. Open in your webbrowser (not Shelly App) your Shelly device and activate the MQTT support. For that, go to the internet & security settings -> advanced - developer settings. Activate MQTT and enter a username, password the IP address of ioBroker and the port 1882 for example like 192.168.20.242:1882.
For using MQTT you have to activate MQTT on your Shelly device. Open in your webbrowser (not Shelly App) your Shelly device and activate the MQTT support. For that, go to the internet & security settings -> advanced - developer settings. Activate MQTT and enter a username, password the IP address of ioBroker and the port 1882 for example like 192.168.20.242:1882. It is very important that you do not change tge "custom MQTT prefix". The Adapter will not work if you change the prefix, because the prefix is needed to identify the Shelly device type.

@@ -28,0 +28,0 @@ ![shelly_mqtt1](../shelly_mqtt1.png)

{
"common": {
"name": "shelly",
"version": "3.1.0",
"version": "3.1.1",
"news": {
"3.1.1": {
"en": "Add device Shelly Dimmer",
"de": "Gerät hinzufügen Shelly Dimmer",
"ru": "Добавить устройство Шелли Диммер",
"pt": "Adicionar dispositivo Shelly Dimmer",
"nl": "Apparaat toevoegen Shelly Dimmer",
"fr": "Ajouter l'appareil Shelly Dimmer",
"it": "Aggiungi dispositivo Shelly Dimmer",
"es": "Añadir dispositivo Shelly Dimmer",
"pl": "Dodaj urządzenie Shelly Dimmer",
"zh-cn": "添加设备Shelly Dimmer"
},
"3.1.0": {

@@ -7,0 +19,0 @@ "en": "Add device Shelly Flood. Bugfixing and new features",

@@ -371,3 +371,4 @@ /* jshint -W097 */

let value = payload;
this.adapter.log.debug('Create State : ' + stateid + ', Payload: ' + JSON.stringify(payload) + 'for ' + this.getDeviceName());
this.adapter.log.debug('Create State : ' + stateid + ', Payload: ' + JSON.stringify(payload) + ' for ' + this.getDeviceName());
this.adapter.log.debug('Create State : ' + stateid + ', Payload: ' + payload.toString() + ' for ' + this.getDeviceName());
try {

@@ -497,10 +498,10 @@ if (dp.coap && dp.coap.coap_publish_funct) {

this.adapter.log.info('Shelly device ' + this.getName() + ' with CoAP connected!');
this.deleteOldStates();
this.createObjects();
this.httpIoBrokerState();
if (payload) this.createIoBrokerState(payload);
this.listener();
} else {
this.adapter.log.error('Configuratin for Shelly device ' + this.getName() + ' for CoAP does not exist!');
}
this.deleteOldStates();
this.createObjects();
this.httpIoBrokerState();
if (payload) this.createIoBrokerState(payload);
this.listener();
}

@@ -507,0 +508,0 @@

@@ -25,2 +25,3 @@ /* jshint -W097 */

const shellyflood = require(__dirname + '/devices/shellyflood').shellyflood;
const shellydimmer = require(__dirname + '/devices/shellydimmer').shellydimmer;

@@ -44,2 +45,3 @@ let devices = {

shellyflood: shellyflood,
shellydimmer: shellydimmer,
};

@@ -63,3 +65,4 @@

shellyem: 'SHEM',
shellyflood: 'SHWT-1'
shellyflood: 'SHWT-1',
shellydimmer: 'SHDM-1'
};

@@ -66,0 +69,0 @@

@@ -481,3 +481,3 @@ /* jshint -W097 */

}
this.adapter.log.debug('Call url ' + JSON.stringify(params) + ' for ' + this.getName());
this.adapter.log.debug('Call url ' + JSON.stringify(params) + ' for ' + this.getName());
body = await requestAsync(params);

@@ -534,3 +534,4 @@ // this.adapter.log.debug('Create Object body : ' + body);

let value = payload.toString();
this.adapter.log.debug('Create State : ' + stateid + ', Payload: ' + JSON.stringify(payload) + 'for ' + this.getId());
this.adapter.log.debug('Create State : ' + stateid + ', Payload: ' + JSON.stringify(payload) + ' for ' + this.getId());
this.adapter.log.debug('Create State : ' + stateid + ', Payload: ' + payload.toString() + ' for ' + this.getId());
try {

@@ -754,4 +755,2 @@ if (dp.mqtt && dp.mqtt.mqtt_publish === topic) {

});
// response for QoS2

@@ -758,0 +757,0 @@ this.client.on('pubrel', (packet) => {

{
"name": "iobroker.shelly",
"version": "3.1.0",
"version": "3.1.1",
"description": "Shelly",

@@ -5,0 +5,0 @@ "author": {

@@ -40,5 +40,9 @@ ![Logo](admin/shelly.png)

|Shelly Flood (SHWT-1)|verified|verified|
|Shelly Dimmer (SHDM-1)|verified|verified|
## Changelog
### 3.1.1 (14.09.2019)
* (Stübi) - Add device Shelly Dimmer
### 3.1.0 (03.09.2019)

@@ -45,0 +49,0 @@ * (Stübi) - Add device Shelly flood

@@ -49,2 +49,3 @@ /* jshint -W097 */

adapter.log.debug('stateChange ' + id + ' ' + JSON.stringify(state));
adapter.log.debug('stateChange ' + id + ' = ' + state.val);
objectHelper.handleStateChange(id, state);

@@ -51,0 +52,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc