cul2mqtt_example.ini 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. # control (switch on/off) parsing and actions (MQTT publishing) via MQTT command
  20. # if enabled, you must send "ON" (or "OFF") to the configured "MQTT_Control_Topic_turnOnActions" topic
  21. # this can be used to switch it off and on from Home Assistant while keeping sending of codes working
  22. # -> ON/OFF command should be sent RETAINED in order to always work!!!
  23. # the current state is published on "MQTT_Control_StateTopic"/[commandName] on every change
  24. # i.E.: CUL2MQTT/state/turnOnActions -> ON/OFF
  25. # the state is also saved in a file (in script directory) and recovered on next start
  26. # see HomeAssistant_CUL2MQTT.yaml to see how to integrate it in Home Assistant
  27. enableMQTTControl = false
  28. MQTT_Control_Topic_turnOnActions = CUL2MQTT/control/turnOnActions
  29. MQTT_Control_StateTopic = CUL2MQTT/state
  30. [cul]
  31. serialPort = /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
  32. serialBaudrate = 38400
  33. serialTimeout = 1
  34. serialCulInitTimeout = 3
  35. # enable UART CUL
  36. receive_from_serial_cul = True
  37. send_on_serial_cul = True
  38. # enable MQTT connected CUL
  39. receive_from_mqtt_cul = True
  40. send_on_mqtt_cul = True
  41. # prefer UART or MQTT CUL for TX (UART, MQTT or both)
  42. TX_interface_prefer = UART
  43. # force usage of UART CUL (program will exit if connect fails, so it can be restarted by systemd)
  44. forceSerialCULConnected = False
  45. # CUL init sequence - normally X21 (Intertechno only) or X05 (includes RAW/non-Intertechno devices)
  46. culInitCmd = X05
  47. # attention - will break sensors which send values if set to True
  48. culSendsRSSI = False
  49. # for "classic" MQTT-CUL
  50. #mqtt_cul_topic_received = MQTTCUL/received
  51. #mqtt_cul_topic_send = MQTTCUL/send
  52. # for Tasmota based MQTT-CUL using Tasmota´s serial bridge functions
  53. mqtt_cul_topic_received = tele/Tasmota-MQTT-CUL/RESULT
  54. mqtt_cul_topic_send = cmnd/Tasmota-MQTT-CUL/SerialSend
  55. [mqtt]
  56. server = mqtt.lan
  57. port = 1883
  58. user = mqttuser
  59. password = xxxxxx