Trying to use URL to control veralite and devices

Hi all, I am reading the Simple UI http://wiki.micasaverde.com/index.php/UI_Simple and trying to enter the URL in web browser to control the veralite and the devices.

I first enter this URL in my web browser: https://sta1.mios.com/locator_json.php?username= myusername, and it replied me a list of information including my vera lite IP address, serial number… etc.

Then I enter http://ip:3480/data_request?id=lu_sdata, this is for viewing the status of all scenes and devices, ok also no problem.

I want to check whether it is alive or not, I enter: http://ip:3480/data_request?id=lu_alive Up to this step, I also can successful got OK replied to me.

But when I enter: http://192.168.2.150:3480/data_request?id=lu_action&DeviceNum=5&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1 (I’ve alrdy configure the URL catering for my case, I only change DeviceNum and SwitchPower) I expected to see my bulb light up, but it never happend. In the webpage, it displayed : ERROR: Invalid Service. I wonder is it I missed some steps, or is the URL to control the devices been changed alrdy?

Any insight will be highly appreciated!

Your approach looks to be spot-on. I think you are being bitten by a typo that you haven’t seen. Perhaps post the actual real URL that you are using so that we can inspect it? Also be sure that device 5 really has a Switch Power service.

Ok. Thanks for your reply:)

What I enter is: http://192.168.0.20:3480/data_request?id=lu_action&DeviceNum=6&serviceId=urn:upnp-org:serviceId:Dimmerlight&action=SetTarget&newTargetValue=1, with replying “ERROR: Invalid Service”

The DeviceNum I checked from Micasaverde user interface-device-the tool icon there. It shows Device #6. and the name of the device is Dimmerlight. I only changed these 2.

I also tried if I enter a wrong Device no, say 20. URL: http://192.168.0.20:3480/data_request?id=lu_action&DeviceNum=20&serviceId=urn:upnp-org:serviceId:Dimmerlight&action=SetTarget&newTargetValue=1, it shows different thing, “ERROR: Invalid service/action/device”,

With entering wrong name, say Dimmer rather than Dimmerlight. http://192.168.0.20:3480/data_request?id=lu_action&DeviceNum=6&serviceId=urn:upnp-org:serviceId:Dimmer&action=SetTarget&newTargetValue=1
It replies “ERROR: Invalid Service”

Is it I missed part unchanged?

Thank you!
AK

[quote=“AvocadoKnight, post:3, topic:181187”]Ok. Thanks for your reply:)

What I enter is: http://192.168.0.20:3480/data_request?id=lu_action&DeviceNum=6&serviceId=urn:upnp-org:serviceId:Dimmerlight&action=SetTarget&newTargetValue=1, with replying “ERROR: Invalid Service”

The DeviceNum I checked from Micasaverde user interface-device-the tool icon there. It shows Device #6. and the name of the device is Dimmerlight. I only changed these 2.

I also tried if I enter a wrong Device no, say 20. URL: http://192.168.0.20:3480/data_request?id=lu_action&DeviceNum=20&serviceId=urn:upnp-org:serviceId:Dimmerlight&action=SetTarget&newTargetValue=1, it shows different thing, “ERROR: Invalid service/action/device”,

With entering wrong name, say Dimmer rather than Dimmerlight. http://192.168.0.20:3480/data_request?id=lu_action&DeviceNum=6&serviceId=urn:upnp-org:serviceId:Dimmer&action=SetTarget&newTargetValue=1
It replies “ERROR: Invalid Service”

Is it I missed part unchanged?

Thank you!
AK[/quote]

An easy way to do this is to go to go to http://<vera_ip>:3480/data_request?id=lu_invoke for your Vera IP. This lists all your devices. When you click on a device, it will give you things you can do for the device. Just copy the URL for what you want to do and plug in the appropriate value.

Hi OtisPreslsy, It is working very well! Thanks a lot! :slight_smile:

Is it possible to access the scenes also? I tried all in http://<vera_ip>:3480/data_request?id=lu_invoke, for devices is working very well, but I didn’t find the one to control scene. Is there URL for scenes also?

Thank you!
AK

[quote=“AvocadoKnight, post:5, topic:181187”]Hi OtisPreslsy, It is working very well! Thanks a lot! :slight_smile:

Is it possible to access the scenes also? I tried all in http://<vera_ip>:3480/data_request?id=lu_invoke, for devices is working very well, but I didn’t find the one to control scene. Is there URL for scenes also?

Thank you!
AK[/quote]

No problem! You should be able to use this for running a scene: http://<vera_ip>:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=

There’s your problem: don’t change this string from the example you were given. The original string (Dimming1) describes what your device can do, not what you called it. Your device’s name doesn’t feature in the URL at all. Only the numeric device number.

Thanks all for your help!! It is now working alright :slight_smile: :slight_smile: Really appreciate your help!

Yes exactly, I should only change the device number. This URL http://192.168.0.20:3480/data_request?id=lu_action&DeviceNum=5&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1 is the right one. Thank you!

Using this URL I can successfully control the scenes already =) Thanks a lot! Can I ask how do you know these URL? Is it also from the reading material online? Since I noticed that they are slightly different from the Simple UI which I am reading http://wiki.micasaverde.com/index.php/UI_Simple. Is it okay for you to share a link so that I can refer to? Since currently I am doing my 3rd year project. I just tried to get more information, thinking that it may be helpful. :slight_smile:

Best Regards,
AK

There’s a ton of common variables and actions here: http://wiki.micasaverde.com/index.php/Luup_Variables

@futzle It’s useful! Thanks! =)

Hi, I actually have one doubts. When I connect the vera Lite at home, I was using my home Wi-Fi, it is totally okay. But when I try at school, using school network, I can’t connect to vera lite…It is very weird…

When I connect to school Wifi, it always shows "Unable to communicate with your unit. Please be sure the unit is powered and connected to Internet.
Try again

Setup your network or
Upgrade your firmware or
Activate remote assistance
Request tech support"

But I’ve checked the 1st three led on my vera lite are light up. So it is powered and successfully connect to Internet.

Any suggestion to solve this will be appreciated.
Thanks in advance! :slight_smile:

How are you trying to connect your your Vera remotely?

  • Garrett

[quote=“OtisPreslsy, post:6, topic:181187”]Using this URL I can successfully control the scenes already =) Thanks a lot! Can I ask how do you know these URL? Is it also from the reading material online? Since I noticed that they are slightly different from the Simple UI which I am reading http://wiki.micasaverde.com/index.php/UI_Simple. Is it okay for you to share a link so that I can refer to? Since currently I am doing my 3rd year project. I just tried to get more information, thinking that it may be helpful. :slight_smile:

Best Regards,
AK[/quote]

That documentation is here: http://wiki.micasaverde.com/index.php/Luup_Requests#device

Thank you! It’s useful! :slight_smile:

[quote=“garrettwp, post:12, topic:181187”]How are you trying to connect your your Vera remotely?

  • Garrett[/quote]

I using school webnet can’t open the user Interface properly, but using the URL to control is ok!

Hi all, I am using URL to control the dimmer, is there an URL to achieve once enter it, it will increase the light intensity of the dimmer a bit? I am using this URL to access my dimmer: http://[my vera ip address]:3480/data_request?id=lu_invoke&DeviceNum= [myDimmerDeviceNum]. Should I explore from this URL, to do some setup?

Thanks in advance!