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

Beta API - http Commands (3.341)


Question

Guest deraaij
Posted

Hi all,

Just to share for those who did not figure it out already, the following http commands work with the beta version:

Devices:

ID = device ID

name = action

arg1 = (e.g. value dimmer)

http:///api/callAction?deviceID=4&name=turnOff

http:///api/callAction?deviceID=7&name=setValue&arg1=39

Virtual Devices

ID = device ID

arg1 = button ID

arg2 = slider value (only for slider)

http:///api/callAction?deviceID=15&name=pressButton&arg1=2

http:///api/callAction?deviceID=51&name=setSlider&arg1=8&arg2=30

Notification

ID = Device (Iphone, e-mail et cetera)

arg1 = Notification template

http:///api/callActiondeviceID=9&name=sendDefinedPushNotification&arg1=1

Arm/Disarm devices

arg1 = 1 - Armed

arg1 = 0 - Disarmed

http:///api/callAction?deviceID=51&&name=setArmed&arg1=0

Scene

ID = SceneID

http:///api/sceneControl?id=14&action=start

http:///api/sceneControl?id=14&action=stop

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

Updates used by mobile:

http:///api/mobile/interface/refreshStates?last=3058

Reboot:

Post --> http:///api/settings/reboot

etc.

change variabele example:

Unfortunately will not trigger scene (yet):

Please login or register to see this code.

Regards,

Mark

Recommended Posts

  • 0
Guest GrZeCh
  • Inquirer
  • Posted

    Hello,

    does someone know how to create new globalVariable using API?

    I've tried:

    Please login or register to see this code.

    but it just don't add anything (it is also not returning any error).

    Regards

    EDIT: Ok. I've managed to add normal variable using:

    Please login or register to see this code.

    Now I only want to change this variable to predefined variable with 0 and 1 options.

    EDIT2: Ok. To add new variable you must perform mentioned POST and then perform update command:

    Please login or register to see this code.

    • 0
    Posted

    Hi,

    It is possible to activate/Deactivate manual mode in heating panel with lua or http command?

    My goal is to cut my heating with remote (minimote)

    thx

    • 0
    Posted

    SATEL Basic Control

    To arm:

    Please login or register to see this link.

    @/api/callAction?deviceID=&name=arm

    To Disarm

    Please login or register to see this link.

    @/api/callAction?deviceID=&name=disarm

    To Disarm if Siren is activated

    Please login or register to see this link.

    @/api/callAction?deviceID=&name=clearAlarm

    Must be followed by disarm action or Siren will be deactivated and alarm will stay armed - Useful for turning off siren but allowing for breach detection to remain

    • 0
    Posted

    Arm or disarm any device:

    Please login or register to see this link.

    arg1 = 1 - Armed

    arg1 = 0 - Disarmed

    Could you add this to the first post?

    • 0
    Guest deraaij
  • Inquirer
  • Posted
    Arm or disarm any device:

    Please login or register to see this link.

    arg1 = 1 - Armed

    arg1 = 0 - Disarmed

    Could you add this to the first post?

    Done, thnx!

    • 0
    Posted

    How can i set the longitude an latitude for a user through the Api?

    Please login or register to see this link.

    should be something like that right?

    • 0
    Posted

    that will not be that easy but it is posible

    for weather (sunset/sunrise)

    Please login or register to see this code.

    for user position, users are like devices so you can check them in

    Please login or register to see this code.

    example for admin

    Please login or register to see this code.

    you will get

    Please login or register to see this code.

    • 0
    Posted

    Yes I already saw that, but I want to set the location of a user. Instead of reading it. Any ideas?

    • 0
    Posted

    but what effect you want get? to get point on map in family panel? or in api/devices only change actual position user?

    • 0
    Posted

    I am working on a windows phone app. I want to set the location of a user. The same as that Iphone and Android do. So yes in the Family panel and the actual

    Please login or register to see this image.

    /emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    • 0
    Posted

    stevenvd,

    Please login or register to see this image.

    /emoticons/default_sad.png" alt=":(" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20"> that part we don't have in api

    • 0
    Posted

    mh... so how do the android and Iphone do it?

    Please login or register to see this image.

    /emoticons/default_tongue.png" alt=":P" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Also not just setting the current location of the user? that should be quite easy.

    • 0
    Posted

    they not using api to do that, but if more people will want that we will add that action in api

    • 0
    Posted

    I prefer app for windows phone

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    • 0
    Posted

    +1 for the api and the app

    • 0
    Posted
    they not using api to do that, but if more people will want that we will add that action in api

    Yes please

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> It would be great to be able to use an API to set user GPS position via 3rd party app (like Tasker app for Android).

    Then, I would also be interested to be able to use the API to set the GPS position refresh rate of the Fibaro App. For example : as long as I am located more than 20km away from home, I would like to have a 10min refresh rate, but then , if I am less then 20 km away from home, I would like to have my GPS position refreshed every single minute.

    Thanks and keep up the good work !

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    • 0
    Posted

    I can't seem to get or set the Global Variables through the API.

    Trying

    Please login or register to see this link.

    Does not do anything.

    Most important is setting it!

    Can someone help me? Because than I got a solution for the Windows Phone Locations....

    [ Added: 2013-08-18, 18:07 ]

    Oke, got everything ready. if someone could help me with how to set a global variable through the API. I have the Location based on Windows Phone working.

    I am also working on Notifications, need some more time for that as I need to run a Service on my server (As I can't use the Home Center for this yet)

    Furthermore is the Speech for Lili also almost finished

    Please login or register to see this image.

    /emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    [ Added: 2013-08-19, 09:57 ]

    ah, so the

    Please login or register to see this link.

    is working again after restarting the HC2. Still no option to set it though

    Please login or register to see this image.

    /emoticons/default_sad.png" alt=":(" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    A. socha, any possible option for this?

    [ Added: 2013-08-20, 21:42 ]

    Seriously no one knows this? or is it just not possible?

    • 0
    Posted

    Hi,

    I would like to change value of my varible with API command it is possible ? (like this

    Please login or register to see this link.

    )

    Thanks

    • 0
    Posted

    No, try that:

    Please login or register to see this code.

    • 0
    Posted

    Not works

    Please login or register to see this image.

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

    The url works but the value are unchanged

    Guest
    This topic is now closed to further replies.
    ×
    ×
    • Create New...