config.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. # status file - on ramdrive (/tmp on RasPi by default)
  5. # is "touched" every time a serial message comes in so that working communication can be monitored easily
  6. #statusFile = '/tmp/ioext_running'
  7. #statusFile = '/run/user/1000/ioext_running'
  8. statusFile = ''
  9. # serial port config
  10. serialPort = '/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0'
  11. serialBaud = 57600
  12. serialTimeout = 1 # should be 1 as above interval/timeout relies on it
  13. # Input Pins / MQTT Topics/Settings
  14. P2_MQTT_Topic = "T5/Wohnungstuer/Tuerkontakt"
  15. P2_MQTT_SendRetained = True
  16. P2_MQTT_SendLastUpdate = True
  17. P2_MQTT_SendOnlyIfValueChanged = True
  18. P3_MQTT_Topic = "T5/VZ/PIR1"
  19. P3_MQTT_SendRetained = False
  20. P3_MQTT_SendLastUpdate = False
  21. P3_MQTT_SendOnlyIfValueChanged = True
  22. P4_MQTT_Topic = "T5/VZ/PIR2"
  23. P4_MQTT_SendRetained = False
  24. P4_MQTT_SendLastUpdate = False
  25. P4_MQTT_SendOnlyIfValueChanged = True
  26. DHT22_MQTT_Topic_Temp = "T5/Abstr/Sensors/temp"
  27. DHT22_MQTT_Topic_Hum = "T5/Abstr/Sensors/hum"
  28. DHT22_MQTT_SendRetained = False
  29. DHT22_MQTT_SendLastUpdate = False
  30. # MQTT config
  31. mqtt_server = "mqtt.lan"
  32. mqtt_port = 1883
  33. mqtt_user = "xxxxx"
  34. mqtt_password = "xxxxx"
  35. mqtt_base_topic = "T5/HomeSvrIOExt"