From b631dfb5242128bd6577695a5b322b5f7d4c975a Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 28 Feb 2023 00:43:52 +1100 Subject: [PATCH] Fix topic error --- inception-mqtt/src/entities/homeAssistant.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/inception-mqtt/src/entities/homeAssistant.ts b/inception-mqtt/src/entities/homeAssistant.ts index 8f475aa..1083682 100644 --- a/inception-mqtt/src/entities/homeAssistant.ts +++ b/inception-mqtt/src/entities/homeAssistant.ts @@ -119,6 +119,7 @@ const startControlInputs = async () => { controlInputs.map(input => { const name = input.Name; const outputId = input.ID; + const topic = `${mqttConfig.discovery_prefix}/binary_sensor/${outputId}/config`; const stateTopic = `${mqttConfig.topic_prefix}/binary_sensor/${outputId}`; let deviceClass = [