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

node-red-contrib-virtual-smart-home

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-virtual-smart-home - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

img/examples.png

23

device-types.js

@@ -713,2 +713,25 @@ const convert = require('color-convert')

},
THERMOSTAT_2: {
defaultState: {
temperature: 0,
scale: 'CELSIUS',
lowerSetpoint: 0,
upperSetpoint: 0,
lowerSetpointScale: 'CELSIUS',
upperSetpointScale: 'CELSIUS',
thermostatMode: 'OFF',
powerState: 'OFF',
},
validators: {
temperature: temperatureValue,
scale: temperatureScale,
thermostatMode,
lowerSetpoint: wrapValidator(temperatureValue, 'lowerSetpoint'),
upperSetpoint: wrapValidator(temperatureValue, 'upperSetpoint'),
lowerSetpointScale: wrapValidator(temperatureScale, 'lowerSetpointScale'),
upperSetpointScale: wrapValidator(temperatureScale, 'upperSetpointScale'),
powerState,
},
decorator: defaultDecorator,
},
}

@@ -715,0 +738,0 @@

43

directives.js

@@ -175,7 +175,22 @@ 'use strict'

}),
SetTargetTemperature: (request, _currentState) => ({
targetTemperature: request.directive.payload.targetSetpoint.value,
targetScale: request.directive.payload.targetSetpoint.scale,
powerState: 'ON',
}),
SetTargetTemperature: (request, currentState) => {
const newState = {
powerState: 'ON',
}
if (currentState.template === 'THERMOSTAT') {
newState['targetTemperature'] =
request.directive.payload.targetSetpoint.value
newState['targetScale'] = request.directive.payload.targetSetpoint.scale
} else if (currentState.template === 'THERMOSTAT_2') {
newState['lowerSetpoint'] = request.directive.payload.lowerSetpoint.value
newState['lowerSetpointScale'] =
request.directive.payload.lowerSetpoint.scale
newState['upperSetpoint'] = request.directive.payload.upperSetpoint.value
newState['upperSetpointScale'] =
request.directive.payload.upperSetpoint.scale
}
return newState
},
SetThermostatMode: (request, _currentState) => {

@@ -422,2 +437,20 @@ const newState = {

if (state.hasOwnProperty('lowerSetpoint')) {
properties.push(
makeProperty('Alexa.ThermostatController', 'lowerSetpoint', {
value: state.lowerSetpoint,
scale: state.lowerSetpointScale,
})
)
}
if (state.hasOwnProperty('upperSetpoint')) {
properties.push(
makeProperty('Alexa.ThermostatController', 'upperSetpoint', {
value: state.upperSetpoint,
scale: state.upperSetpointScale,
})
)
}
if (state.hasOwnProperty('temperature')) {

@@ -424,0 +457,0 @@ properties.push(

2

icons/version.txt

@@ -1,1 +0,1 @@

4.2.0
4.3.0
{
"name": "node-red-contrib-virtual-smart-home",
"version": "4.2.0",
"version": "4.3.0",
"lockfileVersion": 3,

@@ -9,3 +9,3 @@ "requires": true,

"name": "node-red-contrib-virtual-smart-home",
"version": "4.2.0",
"version": "4.3.0",
"license": "MIT",

@@ -12,0 +12,0 @@ "dependencies": {

{
"name": "node-red-contrib-virtual-smart-home",
"version": "4.2.0",
"version": "4.3.0",
"type": "commonjs",

@@ -12,3 +12,3 @@ "description": "A Node-RED node that represents a 'virtual device' which can be controlled via Alexa. Requires the virtual smart home skill to be enabled for your Amazon account.",

"type": "git",
"url": "https://github.com/csuermann/node-red-contrib-virtual-smart-home"
"url": "git+https://github.com/csuermann/node-red-contrib-virtual-smart-home.git"
},

@@ -15,0 +15,0 @@ "keywords": [

# Virtual Smart Home (VSH)
A Node-RED node that represents a virtual device which can be controlled via
A Node-RED node that represents a virtual smart home device which can be controlled via
Amazon Alexa. Requires the '_virtual smart home_' skill to be enabled for your
Amazon account.
## Availability
![Examples](./img/examples.png)
The _virtual smart home_ skill is available in the Amazon skill stores in the following locales:
- [English (AU)](https://www.amazon.com.au/dp/B08JV9RT7H)
- [English (CA)](https://www.amazon.ca/dp/B08JV9RT7H)
- [English (GB)](https://www.amazon.co.uk/dp/B08JV9RT7H)
- [English (IN)](https://www.amazon.in/dp/B08JV9RT7H)
- [English (US)](https://www.amazon.com/dp/B08JV9RT7H)
- [French (FR)](https://www.amazon.fr/dp/B08JV9RT7H)
- [German (DE)](https://www.amazon.de/dp/B08JV9RT7H)
- [Italian (IT)](https://www.amazon.it/dp/B08JV9RT7H)
- [Portuguese (BR)](https://www.amazon.com.br/dp/B08JV9RT7H)
- [Spanish (ES)](https://www.amazon.es/dp/B08JV9RT7H)
## Highlights

@@ -30,2 +17,3 @@

- Dimmer Switch
- Doorbell Event Source
- Entertainment Device

@@ -37,6 +25,7 @@ - Fan

- Plug
- Scene
- Switch
- Scene
- Temperature Sensor
- Thermostat
- Thermostat (Single-setpoint)
- Thermostat (Dual-setpoint)
- no separate account needed. Just link your existing Amazon account.

@@ -82,2 +71,17 @@ - new virtual devices can simply be dragged onto the Node-RED canvas and will

## Availability
The _virtual smart home_ skill is available in the Amazon skill stores in the following locales:
- [English (AU)](https://www.amazon.com.au/dp/B08JV9RT7H)
- [English (CA)](https://www.amazon.ca/dp/B08JV9RT7H)
- [English (GB)](https://www.amazon.co.uk/dp/B08JV9RT7H)
- [English (IN)](https://www.amazon.in/dp/B08JV9RT7H)
- [English (US)](https://www.amazon.com/dp/B08JV9RT7H)
- [French (FR)](https://www.amazon.fr/dp/B08JV9RT7H)
- [German (DE)](https://www.amazon.de/dp/B08JV9RT7H)
- [Italian (IT)](https://www.amazon.it/dp/B08JV9RT7H)
- [Portuguese (BR)](https://www.amazon.com.br/dp/B08JV9RT7H)
- [Spanish (ES)](https://www.amazon.es/dp/B08JV9RT7H)
## Setup Instructions

@@ -84,0 +88,0 @@

@@ -1,1 +0,1 @@

module.exports = '4.2.0'
module.exports = '4.3.0'

Sorry, the diff of this file is not supported yet

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