I have recently added a dimmer (Ultrapro) and I wanted to always set the level to 25% when it is turned on (in case someone messes with the level manually). Currently I am doing this in two steps - msg.command = on and then a device node with setLevel hardcoded to 25.
Q1: Is there a way to send both commands at the same time?
Q2: What would be the correct syntax for msg.command if I wanted to set the level in the flow (not hardcoded in the device node). Would it be msg.command = setLevel,25?
I have a couple of those and don't send an On.. just the setlevel. If it's non-zero, that's the level it goes to. "On" is implied. I understand that there are brands that don't behave like this. I don't have any and would return them if I found I had gotten one
That seemed to work but only when I hardcoded it in the device node. I was using msg.command = setLevel, 25. I also tried msg.command=setLevel;25. Thoughts?
There is also an odd "flashing" behavior when it turns on/off - not sure what that is about.
msg.command is a string.
msg.arguments is a number, but the hubitat nodes are forgiving, so you want to specify a ramp time, you can make it a string (like "25,30")
You can have a single change node in which you set both msg.command and msg.arguments.