config.ini.dist 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # Configuration file for Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon
  2. # Source: https://github.com/ThomDietrich/miflora-mqtt-daemon
  3. #
  4. # Uncomment and adapt all settings as needed.
  5. # Some settings can be configured by environment variables.
  6. # If an env variable is set, it takes precedence over settings in this file
  7. [General]
  8. # The operation mode of the program. Determines wether retrieved sensor data is published via MQTT or stdout/file.
  9. # Currently supported:
  10. #
  11. # mqtt-json - Publish to an MQTT broker in a proprietary json format (Default)
  12. # mqtt-homie - Publish to an MQTT broker following the Homie MQTT convention
  13. # (https://github.com/marvinroger/homie)
  14. # mqtt-smarthome - Publish to an MQTT broker following the mqtt-smarthome proposal
  15. # (https://github.com/mqtt-smarthome/mqtt-smarthome)
  16. # homeassistant-mqtt - Publish to an MQTT broker following the HomeAssistant discovery format
  17. # (https://www.home-assistant.io/docs/mqtt/discovery/)
  18. # gladys-mqtt - Publish to an MQTT broker following the Gladys MQTT proposal
  19. # https://gladysassistant.com/docs/integrations/mqtt/
  20. # thingsboard-json - Publish to the ThingsBoard MQTT broker
  21. # (https://thingsboard.io)
  22. # wirenboard-mqtt - Publish to the Wiren Board MQTT broker
  23. # (https://wirenboard.com)
  24. # json - Print to stdout as json encoded strings
  25. #
  26. #reporting_method = mqtt-json
  27. # The bluetooth adapter that should be used to connect to Mi Flora devices (Default: hci0)
  28. #adapter = hci0
  29. [Daemon]
  30. # Enable or Disable an endless execution loop (Default: true)
  31. #enabled = true
  32. # The period between two measurements in seconds (Default: 300)
  33. #period = 300
  34. [MQTT]
  35. # The hostname or IP address of the MQTT broker to connect to (Default: localhost)
  36. # Also read from the MQTT_HOSTNAME environment variable
  37. #hostname = localhost
  38. # The TCP port the MQTT broker is listening on (Default: 1883)
  39. # Also read from the MQTT_PORT environment variable
  40. #port = 1883
  41. # Maximum period in seconds between ping messages to the broker. (Default: 60)
  42. #keepalive = 60
  43. # The MQTT base topic to publish all Mi Flora sensor data topics under.
  44. # Default depends on the configured reporting_method
  45. #base_topic = miflora # Default for: mqtt-json, mqtt-smarthome, homeassistant-mqtt
  46. #base_topic = homie # Default for: mqtt-homie
  47. #base_topic = gladys/master/device # Default for: gladys-mqtt
  48. #base_topic = v1/devices/me/telemetry # Default for: thingsboard-json
  49. #base_topic = # Default for: wirenboard-mqtt
  50. # The MQTT broker authentification credentials (Default: no authentication)
  51. # Will also read from MQTT_USERNAME and MQTT_PASSWORD environment variables
  52. #username = user
  53. #password = pwd123
  54. # Enable TLS/SSL on the connection
  55. #tls = false
  56. # Path to CA Certificate file to verify host
  57. #tls_ca_cert =
  58. # Path to TLS client auth key file
  59. #tls_keyfile =
  60. # Path to TLS client auth certificate file
  61. #tls_certfile =
  62. [Sensors]
  63. # Add your Mi Flora sensors here. Each sensor consists of a name and a Ethernet MAC address.
  64. # Additional location information can be added to the name, delimited by an '@'.
  65. # Scan for sensors from the command line with:
  66. # $ sudo hcitool lescan
  67. #
  68. # Examples:
  69. #
  70. #Schefflera@Living = C4:7C:8D:11:22:33
  71. #JapaneseBonsai = C4:7C:8D:44:55:66
  72. #Petunia@Balcony = C4:7C:8D:77:88:99