config.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 = 115200
  12. serialTimeout = 1 # should be 1 as above interval/timeout relies on it
  13. # MQTT config
  14. mqtt_server = "mqtt.lan"
  15. mqtt_port = 1883
  16. mqtt_user = ""
  17. mqtt_password = ""
  18. mqtt_base_topic = "T5/HomeSvrIOExt"
  19. # Input Pins / MQTT Topics/Settings
  20. P2_MQTT_Topic = "T5/Wohnungstuer/Tuerkontakt"
  21. P2_MQTT_SendRetained = True
  22. P2_MQTT_SendLastUpdate = True
  23. P2_MQTT_SendOnlyIfValueChanged = True
  24. P3_MQTT_Topic = "T5/VZ/PIR1"
  25. P3_MQTT_SendRetained = False
  26. P3_MQTT_SendLastUpdate = False
  27. P3_MQTT_SendOnlyIfValueChanged = True
  28. P4_MQTT_Topic = "T5/VZ/PIR2"
  29. P4_MQTT_SendRetained = False
  30. P4_MQTT_SendLastUpdate = False
  31. P4_MQTT_SendOnlyIfValueChanged = True
  32. P5_MQTT_Topic = "T5/VZ/PRESENCE"
  33. P5_MQTT_SendRetained = False
  34. P5_MQTT_SendLastUpdate = False
  35. P5_MQTT_SendOnlyIfValueChanged = True
  36. DHT22_MQTT_Topic_Temp = "T5/Abstr/Sensors/temp"
  37. DHT22_MQTT_Topic_Hum = "T5/Abstr/Sensors/hum"
  38. DHT22_MQTT_SendRetained = False
  39. DHT22_MQTT_SendLastUpdate = False