config.ini.dist 3.0 KB

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