From f97eaf0bd8f5d3ef6783679af7f0f25ebf2d6c19 Mon Sep 17 00:00:00 2001 From: windkh Date: Mon, 11 Nov 2024 23:18:24 +0100 Subject: [PATCH] fixed #189 #190 --- CHANGELOG.md | 4 ++++ README.md | 19 ++++++++++++++++++- package.json | 2 +- shelly/config/config.json | 12 +++++++----- 4 files changed, 30 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29374d2..4a74175 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog All notable changes to this project will be documented in this file. +## [11.5.2] - 2024-11-11 +### added Shelly 2PM Gen3 - [#190](https://github.com/windkh/node-red-contrib-shelly/issues/190) +### improved readme for RGBW - [#189](https://github.com/windkh/node-red-contrib-shelly/issues/189) + ## [11.5.1] - 2024-11-04 ### added Shelly Pro 1 UL - [#188](https://github.com/windkh/node-red-contrib-shelly/issues/188) diff --git a/README.md b/README.md index ee50776..8a7092d 100644 --- a/README.md +++ b/README.md @@ -718,7 +718,8 @@ For further rpc commands see the shelly documentation. ## RGBW PM (Plus RGBWr 12/24V) The node is able to turn on and turn off a shelly RGBW PM Plus. It outputs the status after every interaction with the shelly device. Turning on is done by sending the following payload into the input. The light number is optional and defaults to 0. - +The device can be operated in color and white mode. +For color mode you can use the following example: ``` { @@ -743,6 +744,22 @@ or you can make use of the alternative toggle command: } ``` +For white mode you can use the following example: + +``` +{ + method : 'Light.Set' + parameters : { + id : 0, + on : true, + brightness : 100, + transition_duration : 1, // optional transition time in seconds + toggle_after : 2 // optional flip back time in seconds + } +} +``` + + Note that toggle_after is optional. The unit is seconds. Right after having sent the request to the shelly device a status request is done. diff --git a/package.json b/package.json index 4979ecd..932b197 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-shelly", - "version": "11.5.1", + "version": "11.5.2", "description": "Shelly nodes.", "node-red": { "version": ">=3.0.0", diff --git a/shelly/config/config.json b/shelly/config/config.json index e674ff5..aba54b8 100644 --- a/shelly/config/config.json +++ b/shelly/config/config.json @@ -110,13 +110,15 @@ { "gen" : "3", "name" : "Shelly 1 Gen3", "model" : "S3SW-001X16EU", "type" : "Relay", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-1-gen3", "supported" : "not tested" }, { "gen" : "3", "name" : "Shelly 1PM Gen3", "model" : "S3SW-001P16EU", "type" : "Relay", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-1pm-gen3", "supported" : "not tested" }, + { "gen" : "3", "name" : "Shelly 2PM Gen3", "model" : "S3SW-002P16EU", "type" : "Relay", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-2pm-gen3", "supported" : "not tested" }, { "gen" : "3", "name" : "Shelly i4 Gen3", "model" : "S3SN-0024X", "type" : "Button", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-i4-gen3", "supported" : "not tested" }, { "gen" : "3", "name" : "Shelly H&T Gen3", "model" : "S3SN-0U12A", "type" : "Sensor", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-h-t-gen3", "supported" : "true" }, { "gen" : "3", "name" : "Shelly Dimmer 0/1-10V PM Gen3","model" : "S3DM-0010WW","type" : "Dimmer","helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-dimmer-0-1-10v-pm-gen3", "supported" : "true" }, - { "gen" : "3", "name" : "Shelly 1 Mini Gen3", "model" : "S3SW-001X8EU", "type" : "Relay", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-1-mini-gen3", "supported" : "not tested" }, - { "gen" : "3", "name" : "Shelly 1PM Mini Gen3", "model" : "S3SW-001P8EU", "type" : "Relay", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-1pm-mini-gen3", "supported" : "true" }, - { "gen" : "3", "name" : "Shelly PM Mini Gen3", "model" : "S3PM-001PCEU16","type" : "Relay", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-pm-mini-gen3", "supported" : "not tested" }, - { "gen" : "3", "name" : "Shelly PM Mini Gen3", "model" : "S3PM-001PCEU16","type" : "Relay", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-pm-mini-gen3", "supported" : "not tested" }, - { "gen" : "3", "name" : "Shelly Plug S MTR Gen3","model" : "S3PL-00112EU", "type" : "Relay", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-plug-s-mtr-gen3", "supported" : "not tested" } + { "gen" : "3", "name" : "Shelly Plug S MTR Gen3","model" : "S3PL-00112EU", "type" : "Relay", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-plug-s-mtr-gen3", "supported" : "not tested" }, + { "gen" : "3", "name" : "Shelly 1 Mini Gen3", "model" : "S3SW-001X8EU", "type" : "Relay", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-1-mini-gen3", "supported" : "not tested" }, + { "gen" : "3", "name" : "Shelly 1PM Mini Gen3", "model" : "S3SW-001P8EU", "type" : "Relay", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-1pm-mini-gen3", "supported" : "true" }, + { "gen" : "3", "name" : "Shelly PM Mini Gen3", "model" : "S3PM-001PCEU16","type" : "Relay", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-pm-mini-gen3", "supported" : "not tested" }, + { "gen" : "3", "name" : "Shelly DALI Dimmer Gen3", "model" : "S3DM-0A1WW","type" : "Dimmer", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-dali-dimmer-gen3","supported" : "not tested" }, + { "gen" : "3", "name" : "Shelly EM Gen3", "model" : " 3EM-002CXCEU", "type" : "Relay", "helpLink" : "https://kb.shelly.cloud/knowledge-base/shelly-em-gen3", "supported" : "not tested" } ] } \ No newline at end of file