I have a script which shuts off a UPB lamp when I go to bed based on an external X10 rcvd from an RF remote. A subsequent script turns the light back on at a randomized ~sunset time of day.
Now my problem...
I have events which receive X10 RF commands and based on I9 Dim/Bright, the command is translated into an equivalent UPB device value setting. I am trying to mimic the X10 behavior used to dim/bright my lamp. The script retrieves the current device value and either adds or subtracts an offset (5%) depending on if it is a dim or bright command. The problem is that the initial value reported by the device after the above Off/On scripts is 100% even though the lamp is not fully ON. So a dim command at 50% sets it to 95% instead of 45%.
I suspect the problem is with the "use last ON" value that I have the device configured to use.
gk
Now my problem...
I have events which receive X10 RF commands and based on I9 Dim/Bright, the command is translated into an equivalent UPB device value setting. I am trying to mimic the X10 behavior used to dim/bright my lamp. The script retrieves the current device value and either adds or subtracts an offset (5%) depending on if it is a dim or bright command. The problem is that the initial value reported by the device after the above Off/On scripts is 100% even though the lamp is not fully ON. So a dim command at 50% sets it to 95% instead of 45%.
I suspect the problem is with the "use last ON" value that I have the device configured to use.
gk
Comment