mirror of
https://github.com/Sthopeless/74757961.git
synced 2025-04-04 15:33:38 +02:00
61 lines
1.5 KiB
Python
61 lines
1.5 KiB
Python
#!/usr/bin/env python3
|
|
|
|
## iot.tuya.cloud
|
|
ACCESS_ID = ""
|
|
ACCESS_KEY = ""
|
|
## Mobile APP
|
|
USERNAME = ""
|
|
PASSWORD = ""
|
|
COUNTRY_CODE = "31"
|
|
SCHEMA = "smartlife"
|
|
ASSET_ID = ""
|
|
|
|
ENDPOINT = "https://openapi.tuyaeu.com"
|
|
|
|
TUYA_UID = ""
|
|
### Devices UUID
|
|
ZIGBEE_LOCK = ""
|
|
LOCKPINCODE = "123456"
|
|
|
|
### MQTT Broker
|
|
MQTT_BROKER = ''
|
|
MQTT_PORT = 1883
|
|
MQTT_USERNAME = ''
|
|
MQTT_PASSWORD = ''
|
|
|
|
|
|
|
|
|
|
|
|
########################################
|
|
############# DON'T CHANGE #############
|
|
########################################
|
|
expired_token = "token is expired"
|
|
MQTT_CLIENT_ID = 'TuyaLock'
|
|
MQTT_TOPIC = 'TuyaLock'
|
|
MQTT_ZIGBEELOCK_TOPIC = "Doorlock"
|
|
MQTT_WIFI_SCALE_TOPIC = "WiFi_Scale"
|
|
MQTT_TOPIC_CMD = "cmd"
|
|
MQTT_TOPIC_LWT = "lwt"
|
|
MQTT_TOPIC_STATUS = "status"
|
|
HA_DISCOVERY = "false"
|
|
HA_DISCOVERY_TOPIC = ""
|
|
HA_DISCOVERY_MSG = ''
|
|
DOORLOCK_TOPIC = MQTT_TOPIC + "/" + MQTT_ZIGBEELOCK_TOPIC
|
|
DOORLOCK_TOPIC_CMD = DOORLOCK_TOPIC + "/" + MQTT_TOPIC_CMD
|
|
DOORLOCK_TOPIC_STATUS = DOORLOCK_TOPIC + "/" + MQTT_TOPIC_STATUS
|
|
WIFI_SCALE_TOPIC = MQTT_TOPIC + "/" + MQTT_WIFI_SCALE_TOPIC
|
|
WIFI_SCALE_TOPIC_CMD = WIFI_SCALE_TOPIC + "/" + MQTT_TOPIC_CMD
|
|
WIFI_SCALE_TOPIC_STATUS = WIFI_SCALE_TOPIC + "/" + MQTT_TOPIC_STATUS
|
|
WIFI_SCALE_TOPIC_LWT = WIFI_SCALE_TOPIC + "/" + MQTT_TOPIC_LWT
|
|
BLOCK_SIZE = 16
|
|
PAGE_NO = '1'
|
|
PAGE_SIZE = '999'
|
|
FAKE_HEIGHT = '180'
|
|
FAKE_WEIGHT = '666'
|
|
FAKE_AGE = '35'
|
|
FAKE_SEX = '1'
|
|
FAKE_RESISTANCE = '683'
|
|
MQTT_KEEP_ALIE_INTERVAL = 60
|
|
TUYA_IMG_URL = "https://images.tuyacn.com/smart/"
|
|
TUYA_OLD_IMG_URL = "smart/" |