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

HC2 + HCL + Vera


Question

Posted

Hi,

 

I was wondering if this is possible. I currently have a HC2 + HCL setup as a gateway connection working fine. Is it possible to add Vera as a secondary controller to this so that all 3 continue to work? Reason for this is that I want to also tap into the 3rd party plugins that often have built in integration with Vera but not Fibaro yet.

13 answers to this question

Recommended Posts

  • 0
Posted

Hi.

 

Where you able to accomplish this?

 

I have 2 HC2's working fine together, I wish I could add a Vera Plus to control devices that are unsupported by Fibaro such as Bluetooth, wifi..etc

  • 0
Posted
50 minutes ago, Malath said:

Hi.

 

Where you able to accomplish this?

 

I have 2 HC2's working fine together, I wish I could add a Vera Plus to control devices that are unsupported by Fibaro such as Bluetooth, wifi..etc

 

U can control the Vera units via http command from  Fibaro. I have current 2 Vera and one Fibaro. And I control the units on the Vera via Fibaro. 

 

/Claus

  • 0
Posted

Could you please explain how to add Vera Edge as secondary gateway to HC2 and control devices via HC2?

  • 0
Posted
7 hours ago, Blaabjerge said:

 

U can control the Vera units via http command from  Fibaro. I have current 2 Vera and one Fibaro. And I control the units on the Vera via Fibaro. 

 

/Claus

 

We would really like to know in details, so you mean we set up Vera plus as a standalone controller on the same home network and the Fibaro can treat it like any other IP device which can be controlled via HTTP? If that is the case please let us know how exactly is the controlling over HTTP performed in Fibaro.

 

Or should vera be added to Fibaro as a normal device?

  • 0
Posted (edited)
16 hours ago, Malath said:

Hi.

 

Where you able to accomplish this?

 

I have 2 HC2's working fine together, I wish I could add a Vera Plus to control devices that are unsupported by Fibaro such as Bluetooth, wifi..etc

 

I use a Vera edge to control my DSC alarm system (vera has a nice plugin for this) and also use its geofencing. I relay the info to VD's in my HC2 using API. I find this much more useful than the Fibaro DSC plugin and Veras geofencing hardly affects battery life, although it adds a small bit of complexity.

 

 

Please login or register to see this attachment.

 

Edited by devfern24
  • 0
Posted (edited)
18 hours ago, Tarek Salem said:

Could you please explain how to add Vera Edge as secondary gateway to HC2 and control devices via HC2?

 

I dont think that you can add vera as a secound controller. But you can control the devices on vera with http commands.

 

You can see your vera devices from this url: http://VERA_IP:3480/data_request?id=invoke

 

Then you can run this command on Fibaro:

 

HC2 = Net.FHttp("VERA_IP",3480) 
response,status,errorCode = HC2:GET("/data_request?id=action&DeviceNum=25&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0") 
 

 

 

Edited by Blaabjerge
  • 0
Posted
13 hours ago, Malath said:

 

We would really like to know in details, so you mean we set up Vera plus as a standalone controller on the same home network and the Fibaro can treat it like any other IP device which can be controlled via HTTP? If that is the case please let us know how exactly is the controlling over HTTP performed in Fibaro.

 

Or should vera be added to Fibaro as a normal device?

 

You just run vera as a standalone controller and then youcan  see your vera devices from this url: http://VERA_IP:3480/data_request?id=invoke

 

Then you can run this command on Fibaro:

 

HC2 = Net.FHttp("VERA_IP",3480) 
response,status,errorCode = HC2:GET("/data_request?id=action&DeviceNum=25&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0") 

  • 0
Posted
5 hours ago, devfern24 said:

 

I use a Vera edge to control my DSC alarm system (vera has a nice plugin for this) and also use its geofencing. I relay the info to VD's in my HC2 using API. I find this much more useful than the Fibaro DSC plugin and Veras geofencing hardly affects battery life, although it adds a small bit of complexity.

 

 

Please login or register to see this attachment.

 

 

as devfern24 said, you can create a virtual device and add this code (Examble). You need to figurer the correct url for your devices.

 

HC2 = Net.FHttp("VERA_IP",3480) 
response,status,errorCode = HC2:GET("/data_request?id=action&DeviceNum=25&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0") 

 

devfern24: How do you use geofencing from vera to fibaro?

  • 0
Posted
18 hours ago, Blaabjerge said:

devfern24: How do you use geofencing from vera to fibaro?

 

I use Veras geofencing to run scenes that toggle the state of a virtual switch. Then send the status of that virtual switch to a Fibaro VD using a different scene. The reason for two scenes is that the geofencing trigger can only be used when creating a scene from your phone, and the LUUP code can only be used when creating a scene from the web browser, hence the need for the virtual device as a relay in between.

 

Thats the basics, if you want more detail I would be happy to share. This only work with iPhone, however, because Veras android app is far more limited than their iPhone app at the moment.

  • 0
Posted
4 hours ago, devfern24 said:

 

I use Veras geofencing to run scenes that toggle the state of a virtual switch. Then send the status of that virtual switch to a Fibaro VD using a different scene. The reason for two scenes is that the geofencing trigger can only be used when creating a scene from your phone, and the LUUP code can only be used when creating a scene from the web browser, hence the need for the virtual device as a relay in between.

 

Thats the basics, if you want more detail I would be happy to share. This only work with iPhone, however, because Veras android app is far more limited than their iPhone app at the moment.

 

Do you pull the status from vera to fiber or do you push the status from vera to fibaro?

  • 0
Posted
10 minutes ago, Blaabjerge said:

 

Do you pull the status from vera to fiber or do you push the status from vera to fibaro?

 

I do a bit of a "handshake". Using a scene within Vera I press a button in a Fibaro VD (a "refresh" button if you will), the VD then pulls the value of the virtual switches (one for me, one for the GF) from Vera, writes those values to GVs, and changes the icon/ status of my fibaro VD. I like having this button in the VD so i can manually trigger my HC2 to pull the status from the vera if im testing something out.

  • 0
Posted
3 minutes ago, devfern24 said:

 

I do a bit of a "handshake". Using a scene within Vera I press a button in a Fibaro VD (a "refresh" button if you will), the VD then pulls the value of the virtual switches (one for me, one for the GF) from Vera, writes those values to GVs, and changes the icon/ status of my fibaro VD. I like having this button in the VD so i can manually trigger my HC2 to pull the status from the vera if im testing something out.

 

can you share the code for the devices and screens that you are using?

  • 0
Posted (edited)

I use both Home Center 2 and VeraPlus controller, because both have their plus and minus.  I control devices and scenes from my Vera in the Home Center.  Now I try to do it the other way around so control devices and run scenes on my Vera.  As a start I made a virtual device in my HC2  with tow buttons and named them Vera ON and Vera Off.

In attached the following LUA code to both buttons. Here is the code for the "ON" button (xxx = last three digits of IP adress Vera  and yy=device number of the switch on Vera).

 

HC2 = Net.FHttp(192.168.1.xxx,3480) 
response,status,errorCode = HC2:GET("/data_request?id=lu_action&DeviceNum=yy&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0") 

 

But this does not work.

I put the IP adress of the Vera also in field "IP adress"of the VD  and  as TCP-port   3480.

 

When I put the following code in my web browser, it works:

 

Please login or register to see this link.

:3480/data_request?id=lu_action&DeviceNum=yy&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0

 

Who can help me please ?

Edited by Mai Pensato

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