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


Search the Community

Showing results for tags 'api'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • FIBARO Community
    • FIBARO Portal and Forum policy
    • FIBARO
    • Say hello!
    • Off-topics
  • FIBARO Update
    • FIBARO System Update
    • FIBARO Mobile Update
  • FIBARO Community Support
    • Scenes and Interface
    • FIBARO Products
    • FIBARO Mobile
    • FIBARO HomeKit
    • FIBARO Assistant Integrations
    • Other Devices / Third-party devices
    • Tutorials and Guides
    • Home Automation
    • Suggestions
  • FIBARO Społeczność
    • FIBARO
    • Przywitaj się!
    • Off-topic
  • FIBARO Aktualizacja
    • FIBARO System Aktualizacja
    • FIBARO Mobile Aktualizacja
  • FIBARO Wsparcie Społeczności
    • Sceny i Interfejs
    • FIBARO Urządzenia
    • FIBARO Mobilnie
    • FIBARO HomeKit
    • Integracja z Amazon Alexa i Google Home
    • Urządzenia Firm Trzecich
    • Poradniki
    • Automatyka Domowa
    • Sugestie

Categories

  • Scenes
  • Virtual Devices
  • Quick Apps
  • Icons

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Facebook


Google+


Skype


Website URL


WhatsApp


Country


Gateway/s


Interests

  1. I've recently purchased a Fibaro Home Center 2. And linked up three fibaro dimmer 2, two nexa AD-146 Dimmers and one AD-147. Suddenly (as within adding the first few devices) the admin interface has become unusable due to slowness. I'm seeing that the api call api/refreshStates often returns at around ~30s which is propably a timeout in the code. Since this call is used quite a lot in per page. I'm often getting 3-5 minute page load times. I'm really unsure about where to start debugging this issue. Mem and CPU and other systems stats seem to be working fine. But my home center admin interface is now basically unusable. Anyone seen similar issues? Update: I disabled one of the Nexa AD-146'es. And the problem disappeared. Funny thing is, the sluggishness didn't return when i Re-enabeld it.
  2. Hi, I'm new to HC2 and to scripting in general and am hoping someone can point me in the right direction. I have a Efergy energy monitor on my mains which displays my power consumption in watts and has an API at Energyhive.com. If I input this address into a web browser https://engage.efergy.com/mobile_proxy/getInstant?token=OAuB2POIvD-----------------afpKsGVCnD (I have blanked out part of the access token so the link won't work) it returns this string {"age":0,"last_reading_time":1502878245000,"reading":1851} "reading" = 1851 Watts Is it possible to get that "reading" into Fibaro and use it to monitor energy consumption. I have looked through the forum and have found posts on similar exercises but can't make sense of the scripting required or where to start. I'l be happy just to be able to get the data through Fibaro for now and work out the rest as I learn more. Any help would be greatly appreciated. Thanks, Paul Larkin
  3. Hi, Is it possible to start a scene through an http command with specific attributes? e.g. /api/SceneControl?action=start&id=sceneID&var1=5 Or should I change a global variable using /api/globalVariables first? I feel I will then get in trouble when multiple instances of a scene are ran simultaneously. Thanks, J
  4. Hi all, In an effort to ultimately build some artificial intelligence into/alongside the HC2, I am trying to get as much relevant information out of the system as possible. From the events api I can roughly monitor what is going on. However, I do not know what actually was the trigger for an event. Was it a scene, button or associated device? Is it possible to get this data out as well that you know? Thanks, J
  5. Hi, well beyond my capability and I have no idea how easy or difficult it is to do but I would like to get information from owl intuition PV energy monitor and display it in the HC2. The owl intuition has an api and can push data via multicast or UDP, information attached. I have also attached a PC program that displays the data from the network owl. There is an explanation of how this works here: https://theowl.zendesk.com/hc/en-gb/articles/201284603-Multicast-UDP-API-Information along with some other programs. If anyone is interested in a little project, I would be very happy to test Thanks Network OWL API [Public].pdf Network OWL Multicast.pdf intuition-listener-windows.zip
  6. I was starting to read thru and try the docs as available on my HCL (IP Address/docs). So I created a variable to try. I tried the PUT command and it all works like a charm after some trial and error. But how do I translate this into a string to be used e.g. for a button in a virtual device? the docs subpage provides no clue about this. Currently I have given up as it is just trial and error without having a clue what is wrong. It would be incredible helpful if the docs page would show the string as well in the format it has to be put into the VD String section. It would definitely help beginners like me
  7. Morning all! i am looking to send a plain text command from Fibaro into other systems; however I am struggling getting the command to send. From my understanding you cannot put the username/password in the string that is inside the 'Virtual Device' button. The command I want to send from a VD button is - http://Username:[email protected]:50000/dev/sps/HallLight/Pulse It works using web browsers and applications like Postman. Any ideas?
  8. Has anyone ever found a alarm clock on their phone which actually syncs it to the cloud so that you can read from an api? The thing is, i never know when i need to wake up, and my gf has shifts too. If you want to turn on the heat based on when the alarm clock goes off, you need a way to get the current alarms from a phone. It would greatly help with all those "make me coffee" idea's too in the morning. Just set your alarm and the rest of the house will follow.
  9. Good evening, I'm stuck trying to read the status of a device and use it on a local website. (I want to have a tablet with a continuously refreshing page displaying the status of some devices.) When i use this line in a browser: http://username:[email protected]//api/devices/5 i get the following json response from the HC2 {"id":5,"name":"Kerst Takken","roomID":4,"type":"com.fibaro.binarySwitch","baseType":"com.fibaro.actor","enabled":true,"visible":true,"isPlugin":false,"parentId":4,"remoteGatewayId":0,"interfaces":["deviceGrouping","light","zwave","zwaveConfiguration","zwaveSwitchAll"],"properties":{"parameters":[],"pollingTimeSec":0,"zwaveCompany":"TKB Home","zwaveInfo":"6,3,40","zwaveVersion":"1.4","configured":"true","dead":"false","deviceControlType":"2","deviceGroup":"[]","deviceGroupMaster":"0","deviceIcon":"2","emailNotificationID":"0","emailNotificationType":"0","endPointId":"0","isLight":"true","liliOffCommand":"","liliOnCommand":"","log":"","logTemp":"","manufacturer":"","markAsDead":"true","model":"","nodeId":"2","parametersTemplate":"201","productInfo":"1,24,1,1,1,3,1,4","pushNotificationID":"0","pushNotificationType":"0","remoteGatewayId":"0","saveLogs":"true","serialNumber":"","smsNotificationID":"0","smsNotificationType":"0","switchAllMode":"SWITCH_ALL_INCLUDED_IN_THE_ALL_ON_ALL_OFF_FUNCTIONALITY","useTemplate":"true","userDescription":"","value":"true"},"actions":{"getParameter":1,"reconfigure":0,"setParameter":2,"turnOff":0,"turnOn":0},"created":1487237572,"modified":1487237572,"sortOrder":11} ID=5 and properties.value=true so device 5 is switched on. If i save this in a text file as jsondata.txt and use the following example code i found on the net and modified: <html> <head> <title>The jQuery Example</title> <script type = "text/javascript" src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script type = "text/javascript" language = "javascript"> $(document).ready(function() { $("#driver").click(function(event){ $.getJSON('jsondata.txt', function(jd) { $('#stage').html('<p> id: ' + jd.id + '</p>'); $('#stage').append('<p>Value : ' + jd.properties.value+ '</p>'); }); }); }); </script> </head> <body> <p>Click on the button to load result.html file:</p> <div id = "stage" style = "background-color:#cc0;"> STAGE </div> <input type = "button" id = "driver" value = "Load Data" /> </body> </html> i get the following response: id: 5 Value : true and that is exactly what i want, only i want it with the http api call. so i changed the "$.getjson" line in: $.getJSON('http://user:[email protected]//api/devices/5', function(jd) { But that does not give any response. So the http request is correct, ( i get the right json response direct from the url in the browser) and the script is correct, ( i get the right response using the textfile) the php file and the jsondata.txt are on a webserver are and accessed from a laptop. What am i missing ? Mike.
  10. Hej, Czy komuś z Was może udało się przy pomocy urządzenia wirtualnego (HCL - bez LUA) zawołać akcje na jakimś urządzeniu wykorzystując REST API? Pogrzebałem na forum, ale nic z podanych rozwiązań nie działa...
  11. Hi, I am looking for help in decode a http success message If I issue the following through a browser it works.... http://192.168.1.89:5005/bed5_office/say/Hello/Amy/30 and the response in the browser is {"status":"success"} now, if I run this in a scene http = net.HTTPClient({ timeout = 3000 }) url = 'http://192.168.1.89:5005/bed5_office/say/Hello/Amy/30' controlHeaders = {['content-type'] = 'application/json; charset=utf-8'} http:request(url, { options = { headers = controlHeaders, method = 'GET', }, success = function(param) if param.status == 200 then print('Success STATUS: ', param.status) print('Param Data: ', param.data) else print('STATUS: ', param.status) end end, }) It also works but I cannot find way to display the success message ( I want to trigger another action if not successful) I tried removing the " ==200 " if-then loop as I can't see any 200 or 201 result. Could somebody explain what the success = function(param) is doing and I may be able to figure out why I may not be seeing the success message Thanks -f
  12. There was a topic on link Asterisk PBX and HC2 to have telephone caller ID passed to HC2 : The global variables were passed to HC2 via API call as : $url = "http://". $username . ":" . $password . "@" . $HC2serverIP . "/api/globalVariables/" . $variable; where $password = "password" // password for HC2 $username = "username" // username for HC2 $HC2serverIP = "123.123.123.123" // IP of HC2 when we had HC2 username as single word it was working fine, but now when we were forced to convert our username to e-mail address we have special character '@' in the username. The special character '@' of the username is passed to HC2 as '%40' so instead the username of the form "[email protected]" we have "user%40mail.com" and of course we are not authorized by HC2 and our variables are not updated. Any advise how to deal with this to have the global variable updated remotely via API call ?
  13. Hi, My PV panel install from MasterVolt has a MQTT API Details here - IntelliWeb MQTT API spec does anybody know if it is possible access data from this api using vd or scene ? Thanks f
  14. Hi! Here is something I want to share with you all! You can control your new Android Philips TV with commands mentioned here: http://jointspace.sourceforge.net/projectdata/documentation/jasonApi/1/doc/API.html The only thing you have to change to get it working is to change the version number into 5. So if you want to GET the system instead of using http://ip-address:1925/1/system you use http://ip-address:1925/5/system ! Happy LUA coding!
  15. Hi folks. After some time, I have been looking for a (good) solution to track phones (iPhone) and its position. Existing solutions have not worked satisfactorily. So here's my solution. Still under construction but should work. The method relies on to get the coordinates from iCloud (Find My iPhone). I run the script on my local server. If someone wants to be involved and contribute (there are instructions for getting started) https://github.com/raess1/iCloud-HC2-Bridge In the latest version on Github, I have also added 1. Battery status 2. State whether the phone is loaded or not. 3. Timestamp of when the data was last fetched. Things that should be added: create a variable to print the address on the coordinates where the phone is located. And to convert the timestamp to a more reader-friendly. Merry Christmas
  16. Hello Everyone, Today I was notified that LightwaveRF has publicly released a new API document. Hopefully, this will spawn a new raft of Virtual Devices that control LightwaveRF products as, if you live in the UK, you find this platform just works without major headaches and beta upgrades. The link is below: https://api.lightwaverf.com/introduction_basic_comms.html
  17. Hi, I'm trying to test the REST API via PHP. GET is ok, I'm able to read and display each data in my application. Now I want to test the POST and PUT API. I tryed to change a device name, but nothing happens. This is my code: $dati = '{"id":197,"name":"zanna","roomID":6,"type":"com.fibaro.motionSensor","baseType":"com.fibaro.lifeDangerSensor","enabled":true,"visible":true,"isPlugin":false,"parentId":195,"remoteGatewayId":0,"interfaces":["fibaroAlarm","fibaroAlarmArm","fibaroBreach","tamper","zwave","zwaveSceneActivation"],"properties":{"parameters":[{"id":1,"lastReportedValue":0,"lastSetValue":0,"size":2,"value":0},{"id":2,"lastReportedValue":0,"lastSetValue":0,"size":2,"value":0},{"id":3,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":4,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":5,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":6,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":7,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":8,"lastReportedValue":255,"lastSetValue":255,"size":1,"value":255},{"id":9,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":10,"lastReportedValue":20,"lastSetValue":20,"size":1,"value":20},{"id":11,"lastReportedValue":200,"lastSetValue":200,"size":1,"value":200},{"id":12,"lastReportedValue":8,"lastSetValue":8,"size":1,"value":8},{"id":13,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0},{"id":14,"lastReportedValue":0,"lastSetValue":0,"size":1,"value":0}],"zwaveCompany":"Fibargroup","zwaveInfo":"3,3,52","zwaveVersion":"2.1","pollingTimeSec":0,"alarmDelay":"0","alarmExclude":"false","alarmTimeTimestamp":"0","armConditions":"{}","armConfig":"0","armDelay":"0","armError":"{}","armTimeTimestamp":"0","armed":"false","configured":"true","dead":"false","deviceControlType":"0","deviceIcon":"21","emailNotificationID":"0","emailNotificationType":"0","endPointId":"1","fibaroAlarm":"false","lastBreached":"1479350609","liliOffCommand":"","liliOnCommand":"","log":"","logTemp":"","manufacturer":"","markAsDead":"true","model":"","nodeId":"38","parametersTemplate":"85","productInfo":"1,15,5,1,16,2,2,1","pushNotificationID":"0","pushNotificationType":"0","remoteGatewayId":"0","saveLogs":"true","sceneActivation":"0","serialNumber":"","smsNotificationID":"0","smsNotificationType":"0","tamper":"false","useTemplate":"true","userDescription":"","value":"false"},"actions":{"forceArm":0,"meetArmConditions":0,"reconfigure":0,"sceneActivationSet":0,"setArmed":1},"created":1478196735,"modified":1478196735,"sortOrder":112}'; $stringa_dati = json_encode($dati); // Get cURL resource $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_CUSTOMREQUEST => 'PUT', CURLOPT_POSTFIELDS => $stringa_dati, CURLOPT_HTTPHEADER => array('Content-Type: application/json','Content-Length: ' . strlen($stringa_dati)), CURLOPT_URL => $ZanGeneric->domotica_hc2_api . '/devices/197', CURLOPT_TIMEOUT => 5, CURLOPT_USERAGENT => 'Codular Sample cURL Request' )); // Send the request & save response to $resp $resp = curl_exec($curl); //Trasformo la stringa in un oggetto JSON $obj = json_decode($resp,true); // Close request to clear up some resources curl_close($curl); Is there someone can send an example? Thanks
  18. Hello, I'm using a HC2 in my holiday home and would like to read-out some system-information by a API-call (for example /api/devices). The problem is that I can’t “reach” the HC locally by VPN or Port forwarding. Is ‘t possible to create a LUA-scene to ‘catch’ the API-json-output and send it by email and if so, are there any examples of this kind of LUA-scripts? With kind regards, John Claassens
  19. Any news for the netatmo API change on end of this month ? It this version compatible with the new API ?
  20. Hello. I installed a UPS in my house wich is monitored and controlled by a Raspberry Pi. Is there a posibillity to shutdown the HC2 with an API command via HTTP from a Rasperry PI? There will be a power down for about 3 hours next week in my small town, my UPS can keep up the power for about 35 minutes. So I'll try to shutdown the Rasperries and the HC2 if the load of the UPS is smaller the 5%. I would be happy if there is some solution out there [EDIT] I forgot to tell that the Firmware fo my HC2 is 4.056. [/EDIT]
  21. When you have multiple HCLs as a slave and HC2 as a master for covering whole project, it's needed to import some devices. Sometimes imported devices in HC2 has a different value, from those in HCL. Please Fibaro, can you make additional command to REST API that represent button "Synchonize" located in "Gateway connections". It's realy pain, to make virtual device for such synchonization.
  22. Hi all, I am looking to build out my understanding of the HC2 Rest API. Specifically its capacity to execute a lot of calls (as opposed to what functions are available) and what else leverages the API and battles for capacity. I have two reasons for posting the topic - (a) I may be having an issue and am trying to debug and (b) increasing my systems knowledge. My understand is that the API is used the following... If an http request is made to the HC2 from an external system If a http request is made from a browser to the HC2 .. but is it used for ... The android app I run on my tablets/phones ( yes ? ) The iOS app running on some ipads/phones ( yes ? ) If the HC2 scene makes a http request to an external system ( assume no ? ) Does the HC2 FW itself leverage the API in anyway ( assume not ?) If a scene executes a http request to localhost / 127.0.0.1 (assume yes ?) .. what else uses it ? now if I send a lot of API calls.. What would people expect to be a resonable number before thresholds are hit (100 per second, 400 per second, 1000 per second ?) ----- assuming the are basic calls, (ie return a sensor state, true-false, return, global variable value,etc What starts to happen to system resources ? ---- Do I start to run out of memory ----- Do I see my CPU utilisation start to peak close to 100% ------ or does the system stay stable and the eveything start to slow down ? Thanks Frank
  23. is there a option to not use a button on Lili first :S (Why I still need to puss a button, useless like this) just as google now (Oke Google) or assistent.ai from api.ai (Hey Assistant) it wakes up the device if its in sleep-mode and you can just talk to it i like to use it if i go to bed i tell it good night and its runs a specific scene how can i make something like this work? whit-out a server running 24/7 just a tab or phone (Android)
  24. Morning all! Been trying to figure all the documentation all last night about Global Variables and the API. I can look at the status of a variable but no idea how to set it using the API? Does anyone know the line for setting Global Variables using the API? Thanks!!
  25. Morning all! Been trying to figure all the documentation all last night about Global Variables and the API. I can look at the status of a variable but no idea how to set it using the API? Does anyone know the line for setting Global Variables using the API? Thanks!!
×
×
  • Create New...