cul2mqtt_example.ini 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. [main]
  2. devices_config_yml = cul2mqtt_devices.yml
  3. log_path = /home/pi/logs/cul2mqtt
  4. log_enable = true
  5. filterSelfSentIncomingTimeout = 100
  6. # also used as min repeat time, in ms
  7. lastReceivedMaxAge = 500
  8. lastSentMinInterval = 1500
  9. # quit program if nothing has been received for some time
  10. # so that systemd will restart it.
  11. # -> don't set too low if there is not much activity on CUL compatible RF in the location!
  12. dataReceiveTimeout = 180
  13. # a status file that is touched every minute as long as something has been received
  14. # ONLY set this to a location in a RAM drive!!! (i.E. /tmp/cul2mqtt_lastReceived on RaspberryOS or /run/user/XXXX/cul2mqtt_lastReceived where XXXX is the user id)
  15. lastReceivedStatusFile = /run/user/1000/cul2mqtt_lastReceived
  16. [cul]
  17. serialPort = /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
  18. serialBaudrate = 38400
  19. serialTimeout = 1
  20. serialCulInitTimeout = 3
  21. # enable UART CUL
  22. receive_from_serial_cul = True
  23. send_on_serial_cul = True
  24. # enable MQTT connected CUL
  25. receive_from_mqtt_cul = True
  26. send_on_mqtt_cul = True
  27. # prefer UART or MQTT CUL for TX (UART, MQTT or both)
  28. TX_interface_prefer = UART
  29. # force usage of UART CUL (program will exit if connect fails, so it can be restarted by systemd)
  30. forceSerialCULConnected = False
  31. # CUL init sequence - normally X21 (Intertechno only) or X05 (includes RAW/non-Intertechno devices)
  32. culInitCmd = X05
  33. # attention - will break sensors which send values if set to True
  34. culSendsRSSI = False
  35. # for "classic" MQTT-CUL
  36. #mqtt_cul_topic_received = MQTTCUL/received
  37. #mqtt_cul_topic_send = MQTTCUL/send
  38. # for Tasmota based MQTT-CUL using Tasmota´s serial bridge functions
  39. mqtt_cul_topic_received = tele/Tasmota-MQTT-CUL/RESULT
  40. mqtt_cul_topic_send = cmnd/Tasmota-MQTT-CUL/SerialSend
  41. [mqtt]
  42. server = mqtt.lan
  43. port = 1883
  44. user = mqttuser
  45. password = xxxxxx