Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel Vanwelsenaere committed Oct 16, 2024
1 parent cb01399 commit 9d10966
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/FunctionBlocks/FB_OUTPUT_BINARY_MQTT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9d10966

Please sign in to comment.