The implication is that obj->set('50%') would result in a state_now
value of 'on' and a level value of '50%'.

3) Non-dimmable lights (relays) should never have a percentile state.
They're state should be either "on" or "off".  We'd still allow
percentile values for set commands.  So, $relay->set('50%') would result
only in state_now of 'on'.

Let me know if there are any objections to the above.  Otherwise, I'll
begin working in this direction.

Gregg


So does this line up with what you are proposing:
$dimmer->set('50%');
results in state_now 'on' and level of '50%';

$dimmer->set('100%')  or  dimmer->set('on');
results in state_now 'on' and level of '100%';

$dimmer->set('0%')  or  dimmer->set('off');
results in state_now 'off' and level of '0%';


And then for a relay (on/off) device
$relay->set('50%');
results in state_now 'on' and level of '100%';

$relay->set('100%')  or  $relay->set('on');
results in state_now 'on' and level of '100%';

$relay->set('0%')  or  $relay->set('off');
results in state_now 'off' and level of '0%';

So a relay and dimmer are somewhat consistent in that they both support the level modifier but a relay will only be 0% or 100%


--
   Chris