That did the trick, you are awesome!! But it introduced a new problem!
So I have 30% of my lights in group Group_DMX_LivingRoom
off, then I dim the lights with the dimmer or the color wheel, but then it turns all lights on!!
which means that this expression l.state.toString != hsbOff
somehow is not working!
the states of my lights in the group should be 0,0,0 according to the log:
2017-09-20 00:37:33.775 [ItemCommandEvent ] - Item 'LL1' received command 0,0,0
2017-09-20 00:37:33.780 [GroupItemStateChangedEvent] - Group_DMX_TV changed from 123,56,51 to UNDEF through LL1
2017-09-20 00:37:33.782 [GroupItemStateChangedEvent] - Group_DMX_LivingRoom changed from 123,56,51 to UNDEF through LL1
2017-09-20 00:37:33.784 [GroupItemStateChangedEvent] - Group_DMX_Wall changed from 123,56,51 to UNDEF through LL1
2017-09-20 00:37:33.786 [ItemStateChangedEvent ] - LL1 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.788 [GroupItemStateChangedEvent] - Group_DMX_Dinner changed from 123,56,51 to UNDEF through LL1
2017-09-20 00:37:33.791 [ItemCommandEvent ] - Item 'LL2' received command 0,0,0
2017-09-20 00:37:33.796 [ItemCommandEvent ] - Item 'LL3' received command 0,0,0
2017-09-20 00:37:33.798 [ItemStateChangedEvent ] - LL2 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.804 [ItemStateChangedEvent ] - LL3 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.806 [GroupItemStateChangedEvent] - Group_DMX_TV changed from UNDEF to 0,0,0 through LL2
2017-09-20 00:37:33.809 [GroupItemStateChangedEvent] - Group_DMX_Lounge changed from 123,56,51 to UNDEF through LL2
2017-09-20 00:37:33.810 [ItemCommandEvent ] - Item 'LL4' received command 0,0,0
2017-09-20 00:37:33.812 [ItemCommandEvent ] - Item 'LL5' received command 0,0,0
2017-09-20 00:37:33.816 [ItemStateChangedEvent ] - LL4 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.819 [GroupItemStateChangedEvent] - Group_DMX_Kitchen changed from 123,56,51 to UNDEF through LL3
2017-09-20 00:37:33.821 [GroupItemStateChangedEvent] - Group_DMX_Cooking changed from 123,56,51 to UNDEF through LL3
2017-09-20 00:37:33.824 [ItemCommandEvent ] - Item 'LL6' received command 0,0,0
2017-09-20 00:37:33.827 [ItemCommandEvent ] - Item 'LL7' received command 0,0,0
2017-09-20 00:37:33.832 [ItemCommandEvent ] - Item 'LL8' received command 0,0,0
2017-09-20 00:37:33.836 [GroupItemStateChangedEvent] - Group_DMX_Wall changed from UNDEF to 0,0,0 through LL4
2017-09-20 00:37:33.837 [ItemStateChangedEvent ] - LL5 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.841 [ItemStateChangedEvent ] - LL6 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.846 [ItemStateChangedEvent ] - LL7 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.850 [ItemCommandEvent ] - Item 'LL9' received command 0,0,0
2017-09-20 00:37:33.854 [ItemStateChangedEvent ] - LL8 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.854 [ItemCommandEvent ] - Item 'LL10' received command 0,0,0
2017-09-20 00:37:33.859 [ItemCommandEvent ] - Item 'LL11' received command 0,0,0
2017-09-20 00:37:33.866 [ItemCommandEvent ] - Item 'LL12' received command 0,0,0
2017-09-20 00:37:33.873 [ItemCommandEvent ] - Item 'LL13' received command 0,0,0
2017-09-20 00:37:33.873 [ItemStateChangedEvent ] - LL9 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.875 [ItemStateChangedEvent ] - LL10 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.876 [ItemCommandEvent ] - Item 'LL14' received command 0,0,0
2017-09-20 00:37:33.883 [ItemCommandEvent ] - Item 'LL15' received command 0,0,0
2017-09-20 00:37:33.883 [ItemStateChangedEvent ] - LL11 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.888 [ItemCommandEvent ] - Item 'LL16' received command 0,0,0
2017-09-20 00:37:33.890 [ItemStateChangedEvent ] - LL12 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.893 [ItemCommandEvent ] - Item 'LL17' received command 0,0,0
2017-09-20 00:37:33.899 [ItemStateChangedEvent ] - LL16 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.901 [ItemStateChangedEvent ] - LL13 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.907 [GroupItemStateChangedEvent] - Group_DMX_Dinner changed from UNDEF to 0,0,0 through LL12
2017-09-20 00:37:33.912 [ItemCommandEvent ] - Item 'LL18' received command 0,0,0
2017-09-20 00:37:33.918 [ItemStateChangedEvent ] - LL14 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.920 [ItemStateChangedEvent ] - LL17 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.921 [ItemCommandEvent ] - Item 'LL19' received command 0,0,0
2017-09-20 00:37:33.923 [ItemStateChangedEvent ] - LL15 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.928 [GroupItemStateChangedEvent] - Group_DMX_Kitchen changed from UNDEF to 0,0,0 through LL15
2017-09-20 00:37:33.929 [ItemCommandEvent ] - Item 'LL20' received command 0,0,0
2017-09-20 00:37:33.931 [GroupItemStateChangedEvent] - Group_DMX_Cooking changed from UNDEF to 0,0,0 through LL15
2017-09-20 00:37:33.936 [ItemCommandEvent ] - Item 'LL21' received command 0,0,0
2017-09-20 00:37:33.942 [ItemCommandEvent ] - Item 'LL22' received command 0,0,0
2017-09-20 00:37:33.945 [ItemCommandEvent ] - Item 'LL23' received command 0,0,0
2017-09-20 00:37:33.949 [ItemCommandEvent ] - Item 'LL24' received command 0,0,0
2017-09-20 00:37:33.953 [ItemStateChangedEvent ] - LL18 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.954 [ItemCommandEvent ] - Item 'LL25' received command 0,0,0
2017-09-20 00:37:33.954 [ItemStateChangedEvent ] - LL19 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.957 [ItemStateChangedEvent ] - LL20 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:33.958 [ItemCommandEvent ] - Item 'LL26' received command 0,0,0
2017-09-20 00:37:33.962 [ItemCommandEvent ] - Item 'LL27' received command 0,0,0
2017-09-20 00:37:33.965 [ItemCommandEvent ] - Item 'LL28' received command 0,0,0
2017-09-20 00:37:33.973 [ItemCommandEvent ] - Item 'LL29' received command 0,0,0
2017-09-20 00:37:33.979 [ItemCommandEvent ] - Item 'LL30' received command 0,0,0
2017-09-20 00:37:33.982 [ItemCommandEvent ] - Item 'LB1' received command 0,0,0
2017-09-20 00:37:33.984 [ItemCommandEvent ] - Item 'LB2' received command 0,0,0
2017-09-20 00:37:33.988 [ItemCommandEvent ] - Item 'LB3' received command 0,0,0
2017-09-20 00:37:33.991 [ItemCommandEvent ] - Item 'LB4' received command 0,0,0
2017-09-20 00:37:33.996 [ItemCommandEvent ] - Item 'LB5' received command 0,0,0
2017-09-20 00:37:34.001 [ItemCommandEvent ] - Item 'LB6' received command 0,0,0
2017-09-20 00:37:34.007 [ItemCommandEvent ] - Item 'LL2' received command 45,80,100
2017-09-20 00:37:34.013 [ItemCommandEvent ] - Item 'LL9' received command 45,80,100
2017-09-20 00:37:34.016 [ItemStateChangedEvent ] - LL21 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.017 [ItemCommandEvent ] - Item 'LL11' received command 45,80,100
2017-09-20 00:37:34.023 [ItemCommandEvent ] - Item 'LL14' received command 45,80,100
2017-09-20 00:37:34.024 [ItemStateChangedEvent ] - LL27 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.026 [ItemCommandEvent ] - Item 'LL17' received command 45,80,100
2017-09-20 00:37:34.032 [ItemCommandEvent ] - Item 'LL20' received command 45,80,100
2017-09-20 00:37:34.034 [ItemCommandEvent ] - Item 'LL28' received command 45,80,100
2017-09-20 00:37:34.041 [ItemCommandEvent ] - Item 'LL29' received command 45,80,100
2017-09-20 00:37:34.044 [ItemCommandEvent ] - Item 'Light_Wall_Dinner' received command ON
2017-09-20 00:37:34.047 [ItemCommandEvent ] - Item 'Light_Wall_TV' received command ON
2017-09-20 00:37:34.050 [ItemCommandEvent ] - Item 'Light_Wall_FirePlace' received command ON
2017-09-20 00:37:34.052 [GroupItemStateChangedEvent] - Group_DMX_Reading changed from 123,56,51 to UNDEF through LL18
2017-09-20 00:37:34.055 [GroupItemStateChangedEvent] - Group_DMX_Reading changed from UNDEF to 0,0,0 through LL23
2017-09-20 00:37:34.057 [ItemStateChangedEvent ] - LL26 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.059 [ItemStateChangedEvent ] - LL22 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.059 [ItemStateChangedEvent ] - LL28 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.061 [ItemStateChangedEvent ] - LL29 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.061 [ItemStateChangedEvent ] - LL23 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.080 [ItemStateChangedEvent ] - LL24 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.082 [GroupItemStateChangedEvent] - Group_DMX_FirePlace changed from 123,56,51 to UNDEF through LL27
2017-09-20 00:37:34.084 [GroupItemStateChangedEvent] - Group_DMX_Lounge changed from UNDEF to 0,0,0 through LL29
2017-09-20 00:37:34.085 [GroupItemStateChangedEvent] - Group_DMX_Bar changed from 123,56,51 to UNDEF through LB1
2017-09-20 00:37:34.087 [GroupItemStateChangedEvent] - Group_DMX_Bar changed from UNDEF to 0,0,0 through LB6
2017-09-20 00:37:34.090 [ItemStateChangedEvent ] - LL25 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.092 [ItemStateChangedEvent ] - LL30 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.096 [ItemStateChangedEvent ] - LB2 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.098 [ItemStateChangedEvent ] - LB1 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.105 [ItemStateChangedEvent ] - LB4 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.106 [ItemStateChangedEvent ] - LB5 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.107 [ItemStateChangedEvent ] - LB3 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.108 [ItemStateChangedEvent ] - LB6 changed from 123,56,51 to 0,0,0
2017-09-20 00:37:34.112 [ItemStateChangedEvent ] - LL11 changed from 0,0,0 to 45,80,100
2017-09-20 00:37:34.119 [GroupItemStateChangedEvent] - Group_DMX_FirePlace changed from UNDEF to 0,0,0 through LL25
2017-09-20 00:37:34.121 [GroupItemStateChangedEvent] - Group_DMX_Wall changed from 0,0,0 to UNDEF through LL2
2017-09-20 00:37:34.123 [ItemStateChangedEvent ] - LL9 changed from 0,0,0 to 45,80,100
2017-09-20 00:37:34.123 [GroupItemStateChangedEvent] - Group_DMX_Dinner changed from 0,0,0 to UNDEF through LL9
2017-09-20 00:37:34.128 [ItemStateChangedEvent ] - LL2 changed from 0,0,0 to 45,80,100
2017-09-20 00:37:34.130 [GroupItemStateChangedEvent] - Group_DMX_Lounge changed from 0,0,0 to UNDEF through LL9
2017-09-20 00:37:34.131 [ItemStateChangedEvent ] - LL14 changed from 0,0,0 to 45,80,100
2017-09-20 00:37:34.132 [GroupItemStateChangedEvent] - Group_DMX_Kitchen changed from 0,0,0 to UNDEF through LL14
2017-09-20 00:37:34.133 [ItemStateChangedEvent ] - LL17 changed from 0,0,0 to 45,80,100
2017-09-20 00:37:34.138 [GroupItemStateChangedEvent] - Group_DMX_Cooking changed from 0,0,0 to UNDEF through LL9
2017-09-20 00:37:34.138 [ItemStateChangedEvent ] - LL20 changed from 0,0,0 to 45,80,100
2017-09-20 00:37:34.140 [GroupItemStateChangedEvent] - Group_DMX_TV changed from 0,0,0 to UNDEF through LL2
2017-09-20 00:37:34.142 [GroupItemStateChangedEvent] - Group_DMX_Lounge changed from UNDEF to 45,80,100 through LL29
2017-09-20 00:37:34.142 [ItemStateChangedEvent ] - LL28 changed from 0,0,0 to 45,80,100
2017-09-20 00:37:34.144 [ItemStateChangedEvent ] - LL29 changed from 0,0,0 to 45,80,100
2017-09-20 00:37:34.149 [ItemStateChangedEvent ] - Light_Wall_Dinner changed from OFF to ON
2017-09-20 00:37:34.149 [ItemStateChangedEvent ] - Light_Wall_FirePlace changed from OFF to ON
2017-09-20 00:37:34.151 [ItemStateChangedEvent ] - Light_Wall_TV changed from OFF to ON
2017-09-20 00:37:34.151 [GroupItemStateChangedEvent] - Group_DMX_Reading changed from 0,0,0 to UNDEF through LL28
I also tried to change my rule to this without any success:
hsbOff = HSBType::fromRGB(0, 0, 0)
Group_DMX_LivingRoom.members.filter[l|
l.state.toString != hsbOff.toString
].forEach[l| l.sendCommand(hsbValue.toString) ]