From af835104dabdddb998b9399ab9b8280c43f623f0 Mon Sep 17 00:00:00 2001 From: Ariel Sosnovsky Date: Thu, 2 Nov 2023 16:46:35 -0400 Subject: [PATCH] Added Visit link --- lib.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib.js b/lib.js index 8c4aa0b..59f800d 100644 --- a/lib.js +++ b/lib.js @@ -142,7 +142,8 @@ var ENTITIES = { { type: "button_short_press", subtype: "button_1", - automation_type: "trigger" + automation_type: "trigger", + payload: "ON" } ], button_long_press: [ @@ -150,7 +151,8 @@ var ENTITIES = { { type: "button_long_press", subtype: "button_1", - automation_type: "trigger" + automation_type: "trigger", + payload: "ON" } ], button_double_press: [ @@ -158,7 +160,8 @@ var ENTITIES = { { type: "button_double_press", subtype: "button_1", - automation_type: "trigger" + automation_type: "trigger", + payload: "ON" } ] }; @@ -177,7 +180,8 @@ function makeButtonController(ha, buttonModule) { manufacturer: "Flic", model: "v".concat(button.flicVersion, "_").concat(button.color.trim().length > 0 ? button.color : "white"), sw: String(button.firmwareVersion), - hw: String(button.flicVersion) + hw: String(button.flicVersion), + configuration_url: "https://hubsdk.flic.io/" }; }; var genButtonUniqueId = function(bdaddr) { @@ -481,7 +485,8 @@ var makeIRController = function(ir, ha, mqtt) { model: "".concat(NODE_ID).concat(options.uniqueId), identifiers: [ "FlicHubIR" - ] + ], + configuration_url: "https://hubsdk.flic.io/" }; var nodeId = "".concat(NODE_ID).concat(options.uniqueId); var LIFELINE_SGINAL = ha.genFlicPrefix(nodeId, "lifeline");