-
Notifications
You must be signed in to change notification settings - Fork 2
/
config_defaults.py
39 lines (33 loc) · 989 Bytes
/
config_defaults.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python
import logging
# Default configuration.
# Do not edit this. Copy config_sample.py to config.py and edit that.
# Logging
LOGGING_LEVEL_CONSOLE = logging.INFO
LOGGING_LEVEL_FILE = logging.ERROR
LOGGING_FILE = None # or set to file path LOGGING_FILE="/var/log/paradox_mqtt.log"
# MQTT
MQTT_HOST = "localhost"
MQTT_PORT = 1883
MQTT_KEEPALIVE = 60
MQTT_CLIENT_ID = "tuya_mqtt"
MQTT_USERNAME = None
MQTT_PASSWORD = None
# Homie Standard Items
# https://homieiot.github.io/specification/spec-core-v4_0_0/
HOMIE_BASE_TOPIC = "homie"
HOMIE_DEVICE_VERSION = "4.0.0"
HOMIE_DEVICE_EXTENSIONS = ""
HOMIE_INIT_SECONDS = 3600 * 24 # Daily
HOMIE_MQTT_QOS = 1
HOMIE_MQTT_RETAIN = True
HOMIE_PUBLISH_ALL_SECONDS = 60
HOMIE_IMPLEMENTATION = "tuya_mqtt"
HOMIE_PUBLISH_DEVICE_INFO = False
# Home Assistant
HASS_BASE_TOPIC = "homeassistant"
# tinytuya
DEVICE_FILE = "devices.json"
DEVICE_RECONNECT_SECONDS = 60
DEVICE_ASSUME_DEAD_SECONDS = 360
DEVICE_THREAD_START_GAP_SECONDS = 5