Kaynağa Gözat

Add config mentioning of the `homeassistant-mqtt` reporting method (#47)

* Docs for `homeassistant-mqtt` reporting method

The `homeassistant-mqtt` is already implemented and is a valid `reporting_method` value, but it was not documented.

Adding a brief explanation of it in the example `config.ini`. I realized that the project `README.md` already mentions Home Assistant.

* Update config.ini.dist
Alex Barcelo 7 yıl önce
ebeveyn
işleme
04aeeba8c2
1 değiştirilmiş dosya ile 10 ekleme ve 5 silme
  1. 10 5
      config.ini.dist

+ 10 - 5
config.ini.dist

@@ -7,11 +7,16 @@
 
 # The operation mode of the program. Determines wether retrieved sensor data is published via MQTT or stdout/file.
 # Currently supported:
-#      mqtt-json - Publish to an mqtt broker, json encoded (Default)
-#     mqtt-homie - Publish to an mqtt broker following the Homie MQTT convention (https://github.com/marvinroger/homie)
-# mqtt-smarthome - Publish to an mqtt broker following the mqtt-smarthome proposal
-#                  (https://github.com/mqtt-smarthome/mqtt-smarthome)
-#           json - Print to stdout as json encoded string
+#
+#           mqtt-json - Publish to an MQTT broker in a proprietary json format (Default)
+#          mqtt-homie - Publish to an MQTT broker following the Homie MQTT convention 
+#                       (https://github.com/marvinroger/homie)
+#      mqtt-smarthome - Publish to an MQTT broker following the mqtt-smarthome proposal
+#                       (https://github.com/mqtt-smarthome/mqtt-smarthome)
+#  homeassistant-mqtt - Publish to an MQTT broker following the HomeAssistant discovery format
+#                       (https://www.home-assistant.io/docs/mqtt/discovery/)
+#                json - Print to stdout as json encoded strings
+#
 #reporting_method = mqtt-json
 
 # The bluetooth adapter that should be used to connect to Mi Flora devices (Default: hci0)