I must be missing something really obvious but I can’t get a dimmer to work as I expect with RFXCOM.
My item: Dimmer KitchenTableWindow { rfxcom">1.1:LIGHTING2.AC:DimmingLevel" }
In my sitemap: Slider item=KitchenTable
When I press and hold up I can tail the log and see that it is sending INCREASE commands but nothing happens with the lamp. I tried to add a rule for it as well as I read somewhere that it was needed, I checked in the app “RFXmngr” that it was sending values between 0 and 15 so I’ve tried to send values from 0-15 and also 0-100 as below but no luck. This is the rule I’m using:
rule "Dim KitchenTable"
when
Item KitchenTable received command
then
var Number percent = 0
if(KitchenTable.state instanceof DecimalType) percent = KitchenTable.state as DecimalType
if(receivedCommand==INCREASE) percent = percent + 5
if(receivedCommand==DECREASE) percent = percent - 5
if(percent<0) percent = 0
if(percent>100) percent = 100
postUpdate(KitchenTable, percent);
end
The lamp is working and dimming correctly if i send it commands from RFXmngr.
You are correct, the iPhone app sends a value between 0 and 100 instead of INCREASE/DECREASE. That is also what I send with the percent variable. To be honest, when I noticed that it’s working in the app I don’t really care about the web gui.