config.ini.dist 2.6 KB

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