[main] devices_config_yml = cul2mqtt_devices.yml log_path = /home/pi/logs/cul2mqtt # debug logging: log_enable = false # log successful commands: logSuccessfulCommands = true filterSelfSentIncomingTimeout = 100 # also used as min repeat time, in ms lastReceivedMaxAge = 500 lastSentMinInterval = 1500 # quit program if nothing has been received for some time # so that systemd will restart it. # -> don't set too low if there is not much activity on CUL compatible RF in the location! dataReceiveTimeout = 180 # a status file that is touched every minute as long as something has been received # 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) lastReceivedStatusFile = /run/user/1000/cul2mqtt_lastReceived # control (switch on/off) parsing and actions (MQTT publishing) via MQTT command # if enabled, you must send "ON" (or "OFF") to the configured "MQTT_Control_Topic_turnOnActions" topic # this can be used to switch it off and on from Home Assistant while keeping sending of codes working # -> ON/OFF command should be sent RETAINED in order to always work!!! # the current state is published on "MQTT_Control_StateTopic"/[commandName] on every change # i.E.: CUL2MQTT/state/turnOnActions -> ON/OFF # the state is also saved in a file (in script directory) and recovered on next start # see HomeAssistant_CUL2MQTT.yaml to see how to integrate it in Home Assistant enableMQTTControl = false MQTT_Control_Topic_turnOnActions = CUL2MQTT/control/turnOnActions MQTT_Control_StateTopic = CUL2MQTT/state [cul] serialPort = /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 serialBaudrate = 38400 serialTimeout = 1 serialCulInitTimeout = 3 # enable UART CUL receive_from_serial_cul = True send_on_serial_cul = True # enable MQTT connected CUL receive_from_mqtt_cul = True send_on_mqtt_cul = True # prefer UART or MQTT CUL for TX (UART, MQTT or both) TX_interface_prefer = UART # force usage of UART CUL (program will exit if connect fails, so it can be restarted by systemd) forceSerialCULConnected = False # CUL init sequence - normally X21 (Intertechno only) or X05 (includes RAW/non-Intertechno devices) culInitCmd = X05 # attention - will break sensors which send values if set to True culSendsRSSI = False # for "classic" MQTT-CUL #mqtt_cul_topic_received = MQTTCUL/received #mqtt_cul_topic_send = MQTTCUL/send # for Tasmota based MQTT-CUL using Tasmota´s serial bridge functions mqtt_cul_topic_received = tele/Tasmota-MQTT-CUL/RESULT mqtt_cul_topic_send = cmnd/Tasmota-MQTT-CUL/SerialSend [mqtt] server = mqtt.lan port = 1883 user = mqttuser password = xxxxxx