raptorjr, my MySensors script do something like this :
255 * gw.loadState(RED) / 100
But it's a generic sketch ...
I do the change in the following script but if in your case : "switch", it doesn't work. I can manage the 2 case.
Can you test with this new one please?
I don't have a dimmer, sorry if I was unclear. Just thought that since you seem to know a little about programming, and mvdarend is leaving HG, it would be nice if your changes was generic so everyone could use the things you added.
But as I said, don't know what ranges that are most common, 0-1 or 0-99?
I will use the MySensors gateway a lot, but at the moment I'm about to move, so all fun electronic projects have been put on hold for a while. But I hope that when the time comes that I can help to debug and test the gateway, and maybe come up with suggestions and add code also.