Fibaro Home Center integration - Any good?

I’ve created a Lua scene in fibaro which triggers an automation in HA using webhooks (https://www.home-assistant.io/docs/automation/trigger/) (which can triggers a scene).

Automation in HA:

- id: diede_knop_dispatcher_2
  alias: Diede knop 2x
  trigger:
    platform: webhook
    webhook_id: diede_knop_2x
  action:
    - service: cover.open_cover
      data:
        entity_id: cover.gordijn_diede

LUA script in Fibaro:

--[[
%% properties
%% weather
%% events
76 SceneActivationEvent 24
%% globals
--]]

local http = net.HTTPClient()
http:request("http://192.168.1.107:8123/api/webhook/diede_knop_2x", {
    options = { method = 'POST', headers = {}, data = '{"name":"NetworkTable","value":""}', timeout = 2000 },
--    success = function(status) fibaro:debug("data:" .. status.status .. "data:" .. status.data) end,
--    error = function(err) fibaro:debug ("Error:" .. err) end
  });

In this specific example I use it to open my curtains. But I use it to trigger HA scenes as well. I’m struggling a bit with the fact that most of my scenes in HA only contain items in Fibaro. Which works fine, but it is creating a fairly complex loop to just toggle some lights.

Note: The Lua script needs some cleanup :slight_smile:

Addition: apparently I figured this out before (in my previous home), with a cleaner solution, not sure if this still works: Fibaro Dimmer 2 entities