Hi,
I try to create a virtual device for commanding my roller shutters.
This is my implementation files what I want to use with original D_WindowCovering1.json and D_WindowCovering1.xml
When I create my virtual device, no problem, I can write D_WindowCovering1.xml and my I_WindowCovering1cui.xml
Device has been created with up/down and stop.
But when I try to click DOWN, STOP or UP, Vera says me “Device not ready”
What is my problem here?
For commanding my shutters, I must use 2 url.
[code]
urn:upnp-org:serviceId:SwitchPower1
SetTarget
luup.variable_set (“urn:upnp-org:serviceId:SwitchPower1”, “Target”, lul_settings.newTargetValue, lul_device)
if(lul_settings.newTargetValue == "0" or lul_settings.newTargetValue == 0) then
luup.inet.wget ("http://192.168.0.111/preset.htm?led2=0")
luup.inet.wget ("http://192.168.0.111/preset.htm?led1=1")
else
luup.inet.wget ("http://192.168.0.111/preset.htm?led2=1")
luup.inet.wget ("http://192.168.0.111/preset.htm?led1=1")
end
luup.variable_set ("urn:upnp-org:serviceId:SwitchPower1", "Status", lul_settings.newTargetValue, lul_device)
return 4, 5
</job>
</action>
<action>
<serviceId>urn:upnp-org:serviceId:WindowCovering1</serviceId>
<name>Up</name>
<run>
luup.inet.wget ("http://192.168.0.111/preset.htm?led2=1")
luup.inet.wget ("http://192.168.0.111/preset.htm?led1=1")
</run>
</action>
<action>
<serviceId>urn:upnp-org:serviceId:WindowCovering1</serviceId>
<name>Down</name>
<run>
luup.inet.wget ("http://192.168.0.111/preset.htm?led2=0")
luup.inet.wget ("http://192.168.0.111/preset.htm?led1=1")
</run>
</action>
<action>
<serviceId>urn:upnp-org:serviceId:WindowCovering1</serviceId>
<name>Stop</name>
<run>
luup.inet.wget ("http://192.168.0.111/preset.htm?led1=0")
</run>
</action>[/code]
I don’t want to use dimmer
*** EDIT *** Attachements update *** /EDIT ***