cul2mqtt_example.ini 1.9 KB

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