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

Http Api doesn't work after a certain scene ID


Question

Guest sk8er000
Posted (edited)

PROBLEM SOLVED! 

The HC2 doesn't update the scenes right for the new scenes that are in sections that still have the rights, so the link used was trying to start a scene without the right to see the scene

 

Hello,

 

I use the http API very often to make some custom scenery using android devices or voice assistants.

Unfortunately the HTTP API command does not work anymore for new scenes, but I'm sure that both the scene and the command are correct. 

The only thing that changes is the SCENE ID.

 

For example:

 

The scene with the SCENE ID 61 works on my HC2 with the following command : http://<LOGIN>:<PASS>@<IP>/api/sceneControl?id=61&action=start

 

if I make a new scene equal to the scene with ID 61 I have 2 identical scenes with a different SCENE ID (for example ID 369). If I try to start this new scene using the following command the scene does not start: http://<LOGIN>:<PASS>@<IP>/api/sceneControl?id=368&action=start

 

both the scenes are working from the web interface and from mobile interface but only the first is working with the HTTP API, is there a way to fix this problem?

 

Thank you in advance

 

 

EDIT

 

I've used a Postman to see what each link reports, the working one reports "202 Accepted" the non working one reports "404 Not found" but both scenes exist

Please login or register to see this attachment.

Please login or register to see this attachment.

Edited by sk8er000
Solved

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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