Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homebridge-syntex-dynamic-platform

Package Overview
Dependencies
Maintainers
1
Versions
348
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-b43 to 1.0.8-b44

2

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

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

@@ -10,16 +10,20 @@ const BaseService = require('../base');

this.value = super.getValue('value', true);
this.target = super.getValue('target');
this.mode = super.getValue('mode');
this.target = super.getValue('target');
this.state = super.getValue('state');
this.mode = super.getValue('mode');
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.CurrentTemperature).on('get', this.getState.bind(this));
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.TargetTemperature).on('get', this.getTargetTemperature.bind(this)).on('set', this.setTargetTemperature.bind(this));
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.TargetHeatingCoolingState).on('get', this.getTargetHeatingCoolingState.bind(this)).on('set', this.setTargetHeatingCoolingState.bind(this));
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.TargetTemperature).on('get', this.getTargetTemperature.bind(this)).on('set', this.setTargetTemperature.bind(this));
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.CurrentHeatingCoolingState).on('get', this.getCurrentHeatingCoolingState.bind(this));
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.TargetHeatingCoolingState).on('get', this.getTargetHeatingCoolingState.bind(this)).on('set', this.setTargetHeatingCoolingState.bind(this));
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.CurrentTemperature).setProps({ minValue : -270, maxValue : 100 });
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.TargetTemperature).setProps({ minValue : 4, maxValue : 36 });
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.TargetHeatingCoolingState).setProps({ validValues : [0, 1, 2, 3] });
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.CurrentTemperature).setProps({ minValue : -270, maxValue : 100 });
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.TargetTemperature).setProps({ minValue : 4, maxValue : 36 });
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.CurrentHeatingCoolingState).setProps({ validValues : [0, 1, 2] });
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.TargetHeatingCoolingState).setProps({ validValues : [0, 1, 2, 3] });
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.CurrentTemperature).updateValue(this.value);
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.TargetTemperature).updateValue(this.target);
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.TargetHeatingCoolingState).updateValue(this.mode);
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.TargetTemperature).updateValue(this.target);
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.CurrentHeatingCoolingState).updateValue(this.state);
homebridgeAccessory.getServiceById(this.Service.Thermostat, serviceConfig.subtype).getCharacteristic(this.Characteristic.TargetHeatingCoolingState).updateValue(this.mode);

@@ -33,3 +37,4 @@ this.changeHandler = (state) => {

{ type : 'target', Characteristic : this.Characteristic.TargetTemperature },
{ type : 'mode', Characteristic : this.Characteristic.TargetHeatingCoolingState }
{ type : 'state', Characteristic : this.Characteristic.CurrentHeatingCoolingState },
{ type : 'mode', Characteristic : this.Characteristic.TargetHeatingCoolingState }
];

@@ -56,3 +61,3 @@

getTargetTemperature(callback, verbose)
getTargetTemperature(callback, verbose)
{

@@ -69,9 +74,21 @@ callback(super.getValue('target', verbose));

getTargetHeatingCoolingState(callback, verbose)
{
callback(super.getValue('mode', verbose));
}
getCurrentHeatingCoolingState(callback, verbose)
{
callback(super.getValue('state', verbose));
}
setTargetHeatingCoolingState(level, callback, verbose)
setCurrentHeatingCoolingState(level, callback, verbose)
{
super.setValue('state', level, verbose);
callback();
}
getTargetHeatingCoolingState(callback, verbose)
{
callback(super.getValue('mode', verbose));
}
setTargetHeatingCoolingState(level, callback, verbose)
{
super.setValue('mode', level, verbose);

@@ -78,0 +95,0 @@

@@ -178,2 +178,7 @@ module.exports = class BaseService

if(characteristics.state != null)
{
stateText += ', state: ' + characteristics.state;
}
if(characteristics.mode != null)

@@ -243,2 +248,7 @@ {

}
if(characteristics.state != null)
{
stateText += ', state: ' + characteristics.state;
}

@@ -319,2 +329,7 @@ if(characteristics.mode != null)

if(state.state != null)
{
stateText += ', state: ' + state.state;
}
if(state.mode != null)

@@ -321,0 +336,0 @@ {

@@ -120,2 +120,3 @@ module.exports = class TypeManager

target : { format : 'number', default : 4, min : 4, max : 36 },
state : { format : 'number', default : 0, min : 0, max : 2 },
mode : { format : 'number', default : 0, min : 0, max : 3 }

@@ -122,0 +123,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