Added config setting to enable MQTT discovery messages

This commit is contained in:
leaskovski
2021-04-06 20:22:11 +01:00
committed by GitHub
parent d866d2d175
commit 3013d01f4b

View File

@@ -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 # If this is set to True the script will send just one message containing all values
group_messages = True 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 # 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. # - 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. # - if you want a fix delay you can remove the randarnge function and just set the needed delay.