Initial commit: Olimex ESP32-C6-EVB HA integration + Arduino sketch
This commit is contained in:
28
custom_components/olimex_esp32_c6/const.py
Normal file
28
custom_components/olimex_esp32_c6/const.py
Normal file
@@ -0,0 +1,28 @@
|
||||
"""Constants for the Olimex ESP32-C6-EVB integration."""
|
||||
|
||||
DOMAIN = "olimex_esp32_c6"
|
||||
MANUFACTURER = "Olimex"
|
||||
MODEL = "ESP32-C6-EVB"
|
||||
CHIP = "ESP32-C6 WROOM-1"
|
||||
|
||||
# Configuration
|
||||
CONF_HOST = "host"
|
||||
CONF_PORT = "port"
|
||||
CONF_SCAN_INTERVAL = "scan_interval"
|
||||
CONF_CALLBACK_IP = "callback_ip"
|
||||
|
||||
# Default values
|
||||
DEFAULT_PORT = 80
|
||||
DEFAULT_SCAN_INTERVAL = 5
|
||||
DEFAULT_CALLBACK_IP = "192.168.0.1"
|
||||
|
||||
# Relay and Input info
|
||||
NUM_RELAYS = 4
|
||||
NUM_INPUTS = 4
|
||||
|
||||
# Device info
|
||||
DEVICE_INFO = {
|
||||
"manufacturer": MANUFACTURER,
|
||||
"model": MODEL,
|
||||
"chip": CHIP,
|
||||
}
|
||||
Reference in New Issue
Block a user