config.py 1.0 KB

1234567891011121314151617181920212223242526272829
  1. # timeout in s to end script when nothing is received (will be restarted by systemd then)
  2. # must be higher than getStatusInterval
  3. quitOnNoReceiveTimeout = 75
  4. filterUnchanged = False # if True, MQTT updates are only sent if the pin state has changed
  5. # status file - on ramdrive (/tmp on RasPi by default)
  6. # is "touched" every time a serial message comes in so that working communication can be monitored easily
  7. #statusFile = '/tmp/ioext_running'
  8. #statusFile = '/run/user/1000/ioext_running'
  9. statusFile = ''
  10. # serial port config
  11. serialPort = '/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0'
  12. serialBaud = 57600
  13. serialTimeout = 1 # should be 1 as above interval/timeout relies on it
  14. # MQTT config
  15. mqtt_server = "mqtt.lan"
  16. mqtt_port = 1883
  17. mqtt_user = ""
  18. mqtt_password = ""
  19. mqtt_base_topic = "T5/HomeSvrIOExt"
  20. mqtt_topic_tuerkontakt = "T5/Wohnungstuer/Tuerkontakt"
  21. mqtt_topic_pir1 = "T5/VZ/PIR1"
  22. mqtt_topic_pir2 = "T5/VZ/PIR2"
  23. mqtt_topic_out_temp = "T5/Abstr/Sensors/temp"
  24. mqtt_topic_out_hum = "T5/Abstr/Sensors/hum"