File tree Expand file tree Collapse file tree 2 files changed +33
-9
lines changed Expand file tree Collapse file tree 2 files changed +33
-9
lines changed Original file line number Diff line number Diff line change @@ -2221,12 +2221,21 @@ bool GetLightCommand(
2221
2221
else if (dSubType!=sTypeLightwaveRF )
2222
2222
{
2223
2223
// Only LightwaveRF devices have a set-level
2224
- if (switchcmd==" Set Level" )
2225
- switchcmd=" On" ;
2226
- }
2227
-
2228
- if (switchtype==STYPE_Doorbell)
2229
- {
2224
+ if (switchcmd==" Set Level" )
2225
+ switchcmd=" On" ;
2226
+ }
2227
+ // The LightwaveRF inline relay has to be controlled by Venetian blinds logic as it has a stop setting
2228
+ else if ((dSubType==sTypeLightwaveRF )&&(switchtype==STYPE_VenetianBlindsEU)){
2229
+ if (switchcmd==" On" )
2230
+ switchcmd=" Close inline relay" ;
2231
+ else if (switchcmd==" Off" )
2232
+ switchcmd=" Open inline relay" ;
2233
+ else if (switchcmd==" Stop" )
2234
+ switchcmd=" Stop inline relay" ;
2235
+ }
2236
+
2237
+ if (switchtype==STYPE_Doorbell)
2238
+ {
2230
2239
if ((switchcmd==" On" )||(switchcmd==" Group On" ))
2231
2240
{
2232
2241
cmd=light5_sGroupOn;
@@ -2270,10 +2279,25 @@ bool GetLightCommand(
2270
2279
return true ;
2271
2280
}
2272
2281
else if (switchcmd==" Group On" )
2282
+ {
2283
+ cmd=light5_sGroupOn;
2284
+ return true ;
2285
+ }
2286
+ else if (switchcmd==" Close inline relay" )
2287
+ {
2288
+ cmd=light5_sClose;
2289
+ return true ;
2290
+ }
2291
+ else if (switchcmd==" Stop inline relay" )
2273
2292
{
2274
- cmd=light5_sGroupOn ;
2293
+ cmd=light5_sStop ;
2275
2294
return true ;
2276
2295
}
2296
+ else if (switchcmd==" Open inline relay" )
2297
+ {
2298
+ cmd=light5_sOpen;
2299
+ return true ;
2300
+ }
2277
2301
else
2278
2302
return false ;
2279
2303
break ;
Original file line number Diff line number Diff line change @@ -7797,10 +7797,10 @@ namespace http {
7797
7797
)
7798
7798
{
7799
7799
root["result"][ii]["TypeImg"] = "blinds";
7800
- if (lstatus == "On") {
7800
+ if (( lstatus == "On")||(lstatus=="Close inline relay") ) {
7801
7801
lstatus = "Closed";
7802
7802
}
7803
- else if (lstatus == "Stop") {
7803
+ else if (( lstatus == "Stop")||(lstatus=="Stop inline relay") ) {
7804
7804
lstatus = "Stopped";
7805
7805
}
7806
7806
else {
You can’t perform that action at this time.
0 commit comments