Error in my Virtual Device Windows Covering

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 ***

Can you post attachments with the full D_ and I_ files?

It’s possible something is missing in them that’s causing the problem you’re seeing

This is D & I files

D is the original.

I is modified.

The I file is incomplete. It’s missing all the standard header and footer XML. Check out any of the source code on code.mios.com for examples of what is looks like. Without these, it will not load.

OK thank you.

I see that now :slight_smile:

Hi,

I went to write all the standard header and footer XML

Now, when I click on command, textbox say “No implementation”

That work fine with button up stop & down

No implementation appears when I click on OPEN or CLOSE.

I supposed this command aren’t written in my I file.

Thank you, I can find it alone.

Merci ;D