Hello,
Please help !
I have simple roller shutters motors without encoders
My .items file are :
Rollershutter Kitchen_Blind "Kitchen Blind" (Jaluzele, camera_bucatarie) [ "Switchable" ]
My .sitemap file are:
Switch item=Kitchen_Blind label="Kitchen Blind" mappings=[UP="UP", STOP="X", DOWN="DOWN"]
My .rules file are:
rule "Kitchen Blind update"
when
Item Kitchen_Blind received command
then
var Number command = 0
if(receivedCommand == DOWN) command = V_DOWN
if(receivedCommand == UP) command = V_UP
if(receivedCommand == STOP) command = V_STOP
//println("update: " + command)
sendCommand(Arduino, "120;30;1;0;24;"+ command +"\n")
end
Amazon Echo discover this device but not send up / down commands