Luup requests for Hue lights?

I’m trying to turn on one of my Hue lights using an http request:

curl "http://<vera_ip>:3480/data_request?id=lu_action&output_format=xml&DeviceNum=16&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1"

When I run that command on a “regular” device, I get:

<?xml version="1.0"?>
<u:SetTargetResponse xmlns:u="urn:schemas-upnp-org:service:SwitchPower:1">
<JobID>311</JobID>
</u:SetTargetResponse>

and the light turns on. But when I run it against the Hue light, I get:

<?xml version="1.0"?>
<u:SetTargetResponse xmlns:u="urn:schemas-upnp-org:service:SwitchPower:1">
<OK>OK</OK>
</u:SetTargetResponse>

and the light doesn’t turn on. Help?

I wouldn’t obsess about the different text in the responses. That is likely because a Z-Wave device probably implements the action as a “job” which takes time to complete, whereas the Hue plugin implements it as a “run” action that happens synchronously.

You probably need to watch the Luup log while you run the command, and while you press the On button on the Vera UI, and play Spot The Difference.

Hmm…I’m not sure what has changed, but it’s now working. I logged in and ran a “tail -f” on the log file – then I ran the command (I cut-and-pasted the command I gave in this post, and then fixed the IP address). While I’m looking through the log file, I realized that the light had come on. :slight_smile:

I’ve run it a few more times and it works every time. I must be losing my mind. :slight_smile: