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

How to use API to have device ID status?


Arbu-jl
 Share

Question

Hi,

I can use API to send command to HC2 from Irule (e.g. [iPduHomeCenter]/api/callAction?deviceID=12&name=turnOn....

So, now I want to have (to see) the status of my device, with the same philosophy. How can I get the status? Something like that... [iPduHomeCenter]/api/getstatus?deviceID=12, don't know, I'm cannot find something on Fibaro docs... What will be the result? I want to use the result with iRule feedback component.

Thanks for your help...

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Thanks for your quick answer.

    Ok. I have already test that, but how can I have only the Status?

    Link to comment
    Share on other sites

    • 0

    Please login or register to see this image.

    /emoticons/default_icon_curve.gif" alt=":-/" />

    Are you sure you read this post???

    Get json status from api:

    http:///api/rooms

    http:///api/scenes

    http:///api/devices

    http:///api/devices?id=316 # Specific value of a device

    http:///api/virtualDevices

    http:///api/globalVariables

    http:///api/weather

    http:///api/sections

    http:///api/users

    http:///api/energy/now-3600/now/single/devices/power/58

    Please login or register to see this link.

    return:

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Yes sure, but to be honest I don't know how to retrieve only the value "status"

    Can I ask you to give me an example?

    Sorry I'm not really an expert

    Please login or register to see this image.

    /emoticons/default_icon_redface.gif" alt=":oops:" />

    Link to comment
    Share on other sites

    • 0

    If I understand, you only want get the value (on or off, % for dimmer...)

    If it is that, I don't you have a command for that.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Yes exactly!!!

    We don't have any possibility?

    Grrrrr...

    Link to comment
    Share on other sites

    • 0

    Arbu-jl,

    first

    Please login or register to see this code.

    you read last and later use

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0

    Andrew,

    He want only now if the light is on or off, or if the blind is open or close.

    And you pt too much "="

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" />

    Link to comment
    Share on other sites

    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.

     Share

    ×
    ×
    • Create New...