From 3013d01f4bd08eea87621f319c2db320862f60d9 Mon Sep 17 00:00:00 2001 From: leaskovski Date: Tue, 6 Apr 2021 20:22:11 +0100 Subject: [PATCH] Added config setting to enable MQTT discovery messages --- src/config.py.example | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.py.example b/src/config.py.example index 7aac73a..4a22762 100644 --- a/src/config.py.example +++ b/src/config.py.example @@ -12,6 +12,9 @@ mqtt_topic_prefix = "rpi-MQTT-monitor" # If this is set to True the script will send just one message containing all values group_messages = True +# If this is set, then the script will send MQTT discovery messages meaning a config less setup in HA +discovery_messages = True + # Random delay in seconds before measuring the values # - this is used for de-synchronizing message if you run this script on many hosts, set this to 0 for no delay. # - if you want a fix delay you can remove the randarnge function and just set the needed delay.