Fibaro HomeCenter 2 and Home Assistant

Hai All,
I am new to homeassistant.
Loving it so far.
I have a question setting up Zwave.
I made the mistake of getting Fibaro Home center 2 before I came to know about home assistant.
Now that I have got it already I am trying to integrate the light switches and sensors into home assistant any ideas of how to do that please. It would be pointless for me to put the home center 2 away and get a USB Zwave adapter after spending all the money on it. I am currently running Home assistant on raspberry pi 3 currently
Many thanks

1 Like

The following is a “scene” in Fibaro, sending window sensor state to Nodered (running on 10.0.0.52:21880) which the do the integration to home assistant using mqtt.

--[[
%% properties
104 value
%% weather
%% events
%% globals
--]]

local startSource = fibaro:getSourceTrigger();
local http = net.HTTPClient();

if ( tonumber(fibaro:getValue(104, "value")) > 0 )
then
  http:request('http://10.0.0.52:21880/bathroom?window=1', {
      success = function(resp)
        if resp.status == 200 then
          fibaro:debug(resp.status)
        else
          fibaro:debug(resp.status)
        end
      end
    })
else
  http:request('http://10.0.0.52:21880/bathroom?window=0', {
      success = function(resp)
        if resp.status == 200 then
          fibaro:debug(resp.status)
        else
          fibaro:debug(resp.status)       
        end
      end
    })
end