config.ini.dist 3.3 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. # thingsboard-json - Publish to the ThingsBoard MQTT broker
  19. # (https://thingsboard.io)
  20. # wirenboard-mqtt - Publish to the Wiren Board MQTT broker
  21. # (https://wirenboard.com)
  22. # json - Print to stdout as json encoded strings
  23. #
  24. #reporting_method = mqtt-json
  25. # The bluetooth adapter that should be used to connect to Mi Flora devices (Default: hci0)
  26. #adapter = hci0
  27. [Daemon]
  28. # Enable or Disable an endless execution loop (Default: true)
  29. #enabled = true
  30. # The period between two measurements in seconds (Default: 300)
  31. #period = 300
  32. [MQTT]
  33. # The hostname or IP address of the MQTT broker to connect to (Default: localhost)
  34. # Also read from the MQTT_HOSTNAME environment variable
  35. #hostname = localhost
  36. # The TCP port the MQTT broker is listening on (Default: 1883)
  37. # Also read from the MQTT_PORT environment variable
  38. #port = 1883
  39. # Maximum period in seconds between ping messages to the broker. (Default: 60)
  40. #keepalive = 60
  41. # The MQTT base topic to publish all Mi Flora sensor data topics under.
  42. # Default depends on the configured reporting_method
  43. #base_topic = miflora # Default for: mqtt-json, mqtt-smarthome, homeassistant-mqtt
  44. #base_topic = homie # Default for: mqtt-homie
  45. #base_topic = v1/devices/me/telemetry # Default for: thingsboard-json
  46. #base_topic = # Default for: wirenboard-mqtt
  47. # Homie specific: The device ID for this daemon instance (Default: miflora-mqtt-daemon)
  48. #homie_device_id = miflora-mqtt-daemon
  49. # The MQTT broker authentification credentials (Default: no authentication)
  50. # Will also read from MQTT_USERNAME and MQTT_PASSWORD environment variables
  51. #username = user
  52. #password = pwd123
  53. # Enable TLS/SSL on the connection
  54. #tls = false
  55. # Path to CA Certificate file to verify host
  56. #tls_ca_cert =
  57. # Path to TLS client auth key file
  58. #tls_keyfile =
  59. # Path to TLS client auth certificate file
  60. #tls_certfile =
  61. [Sensors]
  62. # Add your Mi Flora sensors here. Each sensor consists of a name and a Ethernet MAC address.
  63. # Additional location information can be added to the name, delimited by an '@'.
  64. # Scan for sensors from the command line with:
  65. # $ sudo hcitool lescan
  66. #
  67. # Examples:
  68. #
  69. #Schefflera@Living = C4:7C:8D:11:22:33
  70. #JapaneseBonsai = C4:7C:8D:44:55:66
  71. #Petunia@Balcony = C4:7C:8D:77:88:99