From 9d1096648eeda16c4a3059284f613f2d6957cf95 Mon Sep 17 00:00:00 2001 From: Michiel Vanwelsenaere Date: Wed, 16 Oct 2024 10:30:23 +0200 Subject: [PATCH] update docs --- docs/FunctionBlocks/FB_OUTPUT_BINARY_MQTT.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/FunctionBlocks/FB_OUTPUT_BINARY_MQTT.md b/docs/FunctionBlocks/FB_OUTPUT_BINARY_MQTT.md index d5ce1cd..35f3c7b 100644 --- a/docs/FunctionBlocks/FB_OUTPUT_BINARY_MQTT.md +++ b/docs/FunctionBlocks/FB_OUTPUT_BINARY_MQTT.md @@ -110,7 +110,14 @@ FB_DO_SW_001.InitMqttDiscoveryAsLock( ); ``` -By default a 'NO' (Normally Open) contact is asumed for MQTT discovery yet this can be inverted to a 'NC' (Normally Closed) contact by leveraging the 'Invert' parameter: +(* valve entity *) +FB_DO_SW_001.InitMqttDiscoveryAsValve( + Name := 'valve 001', (* The name show in Home Assistant frond-end*) + Device := ADR(PLC_DEVICE), (* The device show in Home Assistant *) +); +``` + +By default a 'NO' (Normally Open) contact is assumed for MQTT discovery yet this can be inverted to a 'NC' (Normally Closed) contact by leveraging the 'Invert' parameter: ``` FB_DO_SW_001.InitMqttDiscoveryAsLock(