Author Topic: Controlling Fibaro Home Center scenes from Vera  (Read 6237 times)

Offline Ramiii

  • Jr. Member
  • **
  • Posts: 85
  • Karma: +0/-0
Re: Controlling Fibaro Home Center scenes from Vera
« Reply #15 on: March 28, 2014, 08:20:42 am »
Rex , found the commands using LuaTest , will try to figure out how to utilize them .

Thanks for all your help , i believe the beer should be on me

Offline Mai Pensato

  • Full Member
  • ***
  • Posts: 225
  • Karma: +4/-1
Re: Controlling Fibaro Home Center scenes from Vera
« Reply #16 on: December 17, 2017, 05:37:24 am »
Sorry for reviving an old thread....
I have a Fibaro Home Center 2 to do some tests. First I want to switch a light conected to the HC2 from my Vera.
via http request in my browser works as a charm (very fast)

Code: [Select]
http://192.168.1.8/api/callAction?deviceID=11&name=turnOff
But from my vera using:

Code: [Select]
luup.inet.wget("http://192.168.1.8/api/callAction?deviceID=11&name=turnOff")
It does not work....
Who can help me out here?

Offline Mai Pensato

  • Full Member
  • ***
  • Posts: 225
  • Karma: +4/-1
Re: Controlling Fibaro Home Center scenes from Vera
« Reply #17 on: December 22, 2017, 05:09:19 pm »
Anyone that can help me?

Offline Mai Pensato

  • Full Member
  • ***
  • Posts: 225
  • Karma: +4/-1
Re: Controlling Fibaro Home Center scenes from Vera
« Reply #18 on: December 26, 2017, 04:48:01 pm »
By doing some googling (not on this forum...) I found the solution.
The right code is:

Code: [Select]
luup.inet.wget("http://xxxxxx%40xxxxx:passw@<ip-adress HC2>/api/callAction?deviceID=nn&name=turnOff")
where "xxxxxxx%40xxxxx" = the username of the HC2  this is an e-mail adress, you have to use "%40"in stead of "@".
passw = the password used to login to the HC2
<IP-adres HC2>    speaks for it self...
nn = the deviceID nr of the device you want to switch in the HC2 from the Vera

THIS WORKS !!