Socket
Socket
Sign inDemoInstall

homebridge-syntex-dynamic-platform

Package Overview
Dependencies
Maintainers
1
Versions
345
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-syntex-dynamic-platform - npm Package Compare versions

Comparing version 1.0.8-b65 to 1.0.8-b66

2

package.json
{
"name": "homebridge-syntex-dynamic-platform",
"version": "1.0.8-b65",
"version": "1.0.8-b66",
"description": "A Dynamic Platform Accessory",

@@ -5,0 +5,0 @@ "main": "main.js",

@@ -22,9 +22,24 @@ const BaseService = require('../base');

this.service.getCharacteristic(this.Characteristic.On).on('get', this.getState.bind(this)).on('set', this.setState.bind(this));
this.service.getCharacteristic(this.Characteristic.RotationSpeed).on('get', this.getRotationSpeed.bind(this)).on('set', this.setRotationSpeed.bind(this));
this.service.getCharacteristic(this.Characteristic.RotationDirection).on('get', this.getRotationDirection.bind(this)).on('set', this.setRotationDirection.bind(this));
this.service.getCharacteristic(this.Characteristic.On).updateValue(this.value);
this.service.getCharacteristic(this.Characteristic.RotationSpeed).updateValue(this.speed);
this.service.getCharacteristic(this.Characteristic.RotationDirection).updateValue(this.direction);
if(this.options.characteristics.speed != false)
{
this.service.getCharacteristic(this.Characteristic.RotationSpeed).on('get', this.getRotationSpeed.bind(this)).on('set', this.setRotationSpeed.bind(this));
this.service.getCharacteristic(this.Characteristic.RotationSpeed).updateValue(this.speed);
}
else
{
this.service.removeCharacteristic(this.service.getCharacteristic(this.Characteristic.RotationSpeed));
}
if(this.options.characteristics.direction != false)
{
this.service.getCharacteristic(this.Characteristic.RotationDirection).on('get', this.getRotationDirection.bind(this)).on('set', this.setRotationDirection.bind(this));
this.service.getCharacteristic(this.Characteristic.RotationDirection).updateValue(this.direction);
}
else
{
this.service.removeCharacteristic(this.service.getCharacteristic(this.Characteristic.RotationDirection));
}
this.changeHandler = (state) => {

@@ -31,0 +46,0 @@

@@ -37,2 +37,3 @@ module.exports = class BaseService

this.options.requests = serviceConfig.requests || [];
this.options.characteristics = serviceConfig.characteristics || {};

@@ -39,0 +40,0 @@ this.service = this.createService(serviceType, serviceConfig.type, serviceConfig.subtype);

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