In my Fibaro integration the Key Fob does not appear in HA. Has anyone managed to resolve it? I intend to do an automation in HA, depending on the button that is pressed on the key fob (key fob is integrated in the Fibaro HC2). Thanks.
I think it isn’t supported yet. Check supported domains here Fibaro - Home Assistant
However, I found a way to combine them. I’ve created HC2 scene to trigger HA automation:
--[[
%% properties
%% events
623 CentralSceneEvent
%% globals
--]]
local sa = fibaro:getSourceTrigger()["event"]["data"]
local value = "http://<IP:PORT>/api/webhook/" .. sa['keyId'] .. sa['keyAttribute']
fibaro:debug('"' .. value .. '"')
local http = net.HTTPClient()
http:request(value, {
success = function(response)
if response.status == 200 then
if response.data and response.data ~= "" then
fibaro:debug('response : '.. response.data)
else
fibaro:debug("Error : empty response data")
end
else
fibaro:debug("Error : status=" .. tostring(response.status))
end
end,
error = function(err)
fibaro:debug("Error : " .. err)
end,
options = {
method = 'POST',
timeout = 5000,
checkCertificate = false,
headers = {
["content-type"] = 'application/json;',
},
data = '{ "key": "' .. sa['keyId'] .. '", "attrib": "' .. sa['keyAttribute'] .. '" }'
}
})
and HA automation:
alias: Pilot, K4, press1
description: AC
trigger:
- platform: webhook
webhook_id: 4Pressed
condition: []
action:
...