Commit 5411cd6
committed
Fix setLightParms() dispatch for Gen2 RGBW PM; fix brightness=0 not turning off
- setLightParms() was missing return after RGBW.Set, throwing for all
callers; now dispatches: rgbw->RGBW.Set, inColor->RGB.Set,
cctx2->CCT.Set, light->Light.Set
- Add ct field to Shelly2RpcRequestParams for CCT.Set
- Skip brightness=0 in Gen2 params; on=false handles turn-off (#18215)
Signed-off-by: Markus Michels <markus7017@gmail.com>1 parent 3c72f69 commit 5411cd6
2 files changed
Lines changed: 33 additions & 10 deletions
File tree
- bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api2
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1108 | 1108 | | |
1109 | 1109 | | |
1110 | 1110 | | |
| 1111 | + | |
1111 | 1112 | | |
1112 | 1113 | | |
1113 | 1114 | | |
| |||
Lines changed: 32 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1031 | 1031 | | |
1032 | 1032 | | |
1033 | 1033 | | |
| 1034 | + | |
1034 | 1035 | | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
1039 | 1047 | | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1040 | 1052 | | |
1041 | 1053 | | |
1042 | 1054 | | |
| |||
1047 | 1059 | | |
1048 | 1060 | | |
1049 | 1061 | | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | 1062 | | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1056 | 1079 | | |
1057 | | - | |
1058 | 1080 | | |
1059 | 1081 | | |
1060 | 1082 | | |
| |||
0 commit comments