in habmin it works
i made an item like this
Number RGBW_Programs “RGBW_Programs” { zwave=“7:command=CONFIGURATION, parameter=72” }
and sitemap
Selection item=RGBW_Programs mappings=[0=“5”, 1=“6”, 2=“7”, 3=“8”, 4=“9”, 5=“10”]
not correct ?
in habmin it works
i made an item like this
Number RGBW_Programs “RGBW_Programs” { zwave=“7:command=CONFIGURATION, parameter=72” }
and sitemap
Selection item=RGBW_Programs mappings=[0=“5”, 1=“6”, 2=“7”, 3=“8”, 4=“9”, 5=“10”]
not correct ?
So, when you set parameter 72 to some number, the device starts the scene ok?
The definition looks ok I think - as above, I can’t tell what’s happening without a log…
indeed when i change the parameter it starts a program.
now my zwave has start crashing when trying to select a number
very strange things, must be doing something wrong.
just had to remove the item defenition cause it was interacting with my other commands to node 7
a bit frustrating
Again, I can’t really comment without a log file…
i know i’m first going to investigate how to get rid of the endpoints for the rgbw as i read they are no longer needed
am i correct?
when testing i saw that the configuration option was messing with the dimmer ??
kind regards
btw what logs would you need ?
kind regards
wolf
cleaned up my config of the rgbw controller
Group gRGBW “Living RGBW Licht” (Livingroom)
Color RGBW “RGBW Light Color” (gRGBW)
Switch RGBWController_ONOFF { zwave=“7:1” }
Dimmer RGBWControllerAll “RGBW Helderheid [%d %%]” (gRGBW,Lights) { zwave=“7” }
Dimmer RGBWControllerR “RGBW Light Red [%d %%]” (gRGBW) { zwave=“7:2” }
Dimmer RGBWControllerG “RGBW Light Green [%d %%]” (gRGBW) { zwave=“7:3” }
Dimmer RGBWControllerB “RGBW Light Blue [%d %%]” (gRGBW) { zwave=“7:4” }
Dimmer RGBWControllerW “RGBW Light White [%d %%]” (gRGBW) { zwave=“7:5” }
white RGBWW “RGBW Light Warm Wite” (gRGBW)
Number RGBW_Power “RGBW_Power [%.1f W]” (gRGBW) { zwave=“7:command=sensor_multilevel, sensortype=15” }
Number RGBW_Verbruik “RGBW_Verbruik [%.2f kWh]” (gRGBW) { zwave=“7:command=meter”, refresh_interval=60 }
i always see this in the log when trying to set a value
2015-11-09 18:59:47.963 [ERROR] [WaveController$ZWaveSendThread] - NODE 7: Timeout while sending message. Requeueing - 2 attempts left!
2015-11-09 18:59:47.963 [ERROR] [b.z.i.p.s.SendDataMessageClass] - NODE 7: Got an error while sending data. Resending message.
item:
Group gRGBW “Living RGBW Licht” (Livingroom)
Color RGBW “RGBW Light Color” (gRGBW)
Switch RGBWController_ONOFF { zwave=“7:1” }
Dimmer RGBWControllerAll “RGBW Helderheid [%d %%]” (gRGBW,Lights) { zwave=“7” }
Dimmer RGBWControllerR “RGBW Light Red [%d %%]” (gRGBW) { zwave=“7:2” }
Dimmer RGBWControllerG “RGBW Light Green [%d %%]” (gRGBW) { zwave=“7:3” }
Dimmer RGBWControllerB “RGBW Light Blue [%d %%]” (gRGBW) { zwave=“7:4” }
Dimmer RGBWControllerW “RGBW Light White [%d %%]” (gRGBW) { zwave=“7:5” }
white RGBWW “RGBW Light Warm Wite” (gRGBW)
Number RGBW_Power “RGBW_Power [%.1f W]” (gRGBW) { zwave=“7:command=sensor_multilevel, sensortype=15” }
Number RGBW_Verbruik “RGBW_Verbruik [%.2f kWh]” (gRGBW) { zwave=“7:command=meter”, refresh_interval=60 }
Number RGBW_Programs “RGBW_Programs” { zwave=“7:command=configuration, parameter=72” }
ok i found the solution and its working yes !
sitemap
Selection item=RGBW_Programs mappings=[6=“Fireplace”, 7=“Storm”, 8=“Rainbow”, 9=“Aurora”, 10=“police”]
itemfile
Number RGBW_Programs “RGBW_Programs” { zwave=“7:command=CONFIGURATION, parameter=72” }
many thanks chris, i can now activate all 5 predefined programs
greetz
wolf
I doubt it will work. I think the newer version of this supports the new color command class which would allow item definitions to be done differently. However, the binding doesn’t support this, so it won’t work for OH1.
No probs - I’m glad it’s working
I posted the solution in the configs on the community so others can enjoy this aswell
Users can for example use this for light therapy or use the alarm police siren on command.
Grtz
Wolf
I have set this up exactly like you posted, look below…I cannot get it to work. What have I done wrong? Using OH2 on a PI
items file
Dimmer RGBWControllerAll "Backsplash Control [%d %%]" <switch> (gRGB) {zwave="33"}
Color RGBW "Backsplash Color Picker" <slider> (gRGB)
Switch RGBWController {zwave="33:1"}
Dimmer RGB_Red "Backsplash - Red [%d %%]" <swtich> {zwave="33:2"}
Dimmer RGB_Green "Backsplash - Green [%d %%]" <switch> {zwave="33:3"}
Dimmer RGB_Blue "Backsplash - Blue [%d %%]" <switch> {zwave="33:4"}
Number RGBW_Programs "Color Programs" (gRGB) {zwave="33:command=CONFIGURATION, parameter=72"}
sitemap file
Frame label="Rooms" {
Group item=gRec label="Reception"
Group item=gBath label="Bath Selections"
Group item=gKit label="Kitchen"
Group item=gTile label="Tile Selections"
Group item=gConf label="Conference Room"
Group item=gOff label="Offices"
Group item=gRGB
Selection item=RGBW_Programs mappings=[6="Fireplace", 7="Storm", 8="Rainbow", 9="Aurora", 10="police"]
rules file
import org.openhab.core.library.types.*
var HSBType hsbValue
var String redValue
var String greenValue
var String blueValue
rule "Set RGB Backsplash Color"
when
Item RGBW changed
then
hsbValue = RGBW.state as HSBType
redValue = hsbValue.red.intValue.toString
greenValue = hsbValue.green.intValue.toString
blueValue = hsbValue.blue.intValue.toString
sendCommand(RGB_Red, redValue)
sendCommand(RGB_Green, greenValue)
sendCommand(RGB_Blue, blueValue)
end
Hello,
Maybe remove the space between configuration.
My setup still works on openhab 1.8.2 i am not sure for openhab 2.
I can assure that it works and is preprogrammed, try to test it in habmin as you can tell the device how to react to alarms to, thats how i found out it was preprogrammed.
Also look in your manual, maybe your device is newer and needs a different class.
Grtz wolf
ok, thanks
are you able to post exactly what you have in your files?
I could do that but its allready there ?
What version of the device do you have ? Did the manual state the same parameter to be set ?
Kindest regards wolf
ot is a newer device, but 72 is still the parameter.
I’m not the OP, but I worked out how to do this as well. Here’s my code. (I only needed the police light function; I kick it when someone rings my doorbell so when I’m playing pinball I have a visual indicator someone is ringing the bell! :D)
Items:
Switch VIRTUAL_PINBALL_ALLEY_POLICE_LIGHTS "LED Police light strobe override" (Group_Pinball_Alley, Group_Virtual)
Dimmer PINBALL_ALLEY_CONFIG "LED config" {zwave="30:0:command=configuration,parameter=72"} // special device so we can send a config command via a rule. (tweak config variable #72)
Dimmer PINBALL_ALLEY_RED "LED Red [%d %%]" (Group_Dimmers, Group_Pinball_Alley, Group_Persistence) {zwave="30:2:command=SWITCH_MULTILEVEL,restore_last_value=true"}
Dimmer PINBALL_ALLEY_GREEN "LED Green [%d %%]" (Group_Dimmers, Group_Pinball_Alley, Group_Persistence) {zwave="30:3:command=SWITCH_MULTILEVEL,restore_last_value=true"}
Dimmer PINBALL_ALLEY_BLUE "LED Blue [%d %%]" (Group_Dimmers, Group_Pinball_Alley, Group_Persistence) {zwave="30:4:command=SWITCH_MULTILEVEL,restore_last_value=true"}
Rules:
var DecimalType PINBALL_ALLEY_PREVIOUS_RED // so we can store the dimmer's previous red level
var DecimalType PINBALL_ALLEY_PREVIOUS_GREEN // so we can store the dimmer's previous green level
var DecimalType PINBALL_ALLEY_PREVIOUS_BLUE // so we can store the dimmer's previous blue level
rule "Police lights turned on"
when
Item VIRTUAL_PINBALL_ALLEY_POLICE_LIGHTS changed to ON
then
{
PINBALL_ALLEY_PREVIOUS_RED = PINBALL_ALLEY_RED.state as DecimalType
PINBALL_ALLEY_PREVIOUS_GREEN = PINBALL_ALLEY_GREEN.state as DecimalType
PINBALL_ALLEY_PREVIOUS_BLUE = PINBALL_ALLEY_BLUE.state as DecimalType
logInfo("openhab","Pinball alley police lights activated.")
sendCommand(PINBALL_ALLEY_CONFIG,"10") // set config 72=10 to turn on police lights!
}
end
rule "Police lights turned off"
when
Item VIRTUAL_PINBALL_ALLEY_POLICE_LIGHTS changed to OFF
then
{
logInfo("openhab","Pinball alley police lights de-activated.")
sendCommand(PINBALL_ALLEY_CONFIG,"1") // set config 72=1 to turn off police lights!
Thread::sleep(850) // chill for 1s before setting colors
// we need this delay, otherwise the fibaro will sometimes "eat" the first color set command without processing it. (no zwave errors, command just doesn't execute. change RGB order and it's always the first one sent that gets eaten, when it happens.)
// 750ms is juuuust too small a delay (fails 1:15), so upped to 850ms on 2016-05-26
sendCommand(PINBALL_ALLEY_BLUE,PINBALL_ALLEY_PREVIOUS_BLUE) // restore lighting level before police lights
sendCommand(PINBALL_ALLEY_GREEN,PINBALL_ALLEY_PREVIOUS_GREEN) // restore lighting level before police lights
sendCommand(PINBALL_ALLEY_RED,PINBALL_ALLEY_PREVIOUS_RED) // restore lighting level before police lights
}
end
i will have to try it again, thanks for the configs so i ahve a comparison.