Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

HCL Virtuel Device - PUT REST Command not working


Question

Posted

Hello,

 

maybe some here could help.

 

I have a HCL (3.593) and want to simply switch on/off a hue lamp via virtual device.

The only importable ready Phillips Hue Virtual Devices i could find on the internet are with LUA for HC2, so i tried to create a very simple one for HCL

 

I could test the HUE API commands via the debugging console of the HUE bridge. (

Please login or register to see this link.

)

 

I created a User "0123456789abdcef0123456789abcdef" and i can simply turn the light on and off via this simple PUT Command via the Debug Console (that works)

 

PUT /api/0123456789abdcef0123456789abcdef/lights/1/state (URL)

{"on":false} (Message Body)

 

So i tried some code for the button in die vd, but none worked ... someone here to help me finding my mistake?

 

Some examples, that didn't worked:

Please login or register to see this code.

Please login or register to see this code.

Please login or register to see this code.

3 answers to this question

Recommended Posts

  • 0
Posted

I have this same issue on 4.100....

  • 0
Posted

I do the some without any result

 

POST /upnp/control/CIS
Content-Type: text/xmlx0D0x0A
SOAPAction: "urn:schemas-sony-com:service:X_CIS:1#X_CIS_Command"x0D0x0Ax0D0x0A
<?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:X_CIS_Command xmlns:u="urn:schemas-sony-com:service:X_CIS:1"><CISDATA>0204A0600001FB</CISDATA></u:X_CIS_Command></s:Body></s:Envelope>

  • 0
Posted

This was supposed to work but it doesn't

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...