Files
fingerbot-cli/config.example.toml
T
2026-07-05 16:39:15 -05:00

59 lines
2.0 KiB
TOML

# Copy this file to config.toml (git-ignored) and fill in real values.
# The README "Configure the project" section explains where each value comes
# from; SECURITY.md explains which values are secret and how rotation works.
#
# Every section is optional — configure only the device classes you own.
# --- BLE Fingerbots (direct Bluetooth, no gateway) -------------------------
[fingerbots]
default = "robot1"
[fingerbots.devices.robot1]
device_id = "YOUR_DEVICE_ID" # ~22 chars, from iot.tuya.com API Explorer
uuid = "YOUR_DEVICE_UUID" # 16 chars, same API response
local_key = "YOUR_LOCAL_KEY" # 16 chars — SECRET
product_id = "mknd4lci" # Finger Robot 2; see devices.py for others
# --- LAN switches / smart plugs (WiFi, no gateway) -------------------------
[switches]
default = "smartplug"
[switches.devices.smartplug]
device_id = "YOUR_DEVICE_ID"
local_key = "YOUR_LOCAL_KEY" # SECRET
product_id = "o7ve1lp3gfjvsvyo"
# version and ip are auto-detected via UDP discovery; set them to skip it.
# The cloud-reported ip is your WAN address — use the LAN one or omit it.
# version = "3.4"
# ip = "192.168.1.50"
# --- BLE IR blasters (direct Bluetooth) ------------------------------------
[ir_blasters]
default = "blaster1"
[ir_blasters.devices.blaster1]
device_id = "YOUR_DEVICE_ID"
uuid = "YOUR_DEVICE_UUID"
local_key = "YOUR_LOCAL_KEY" # SECRET
product_id = "xgahj3gjk3ftaejt" # GWW-RC03 / JMIR05
# --- Tuya BLE gateway path (LAN, via tinytuya) -----------------------------
# Alternative to direct BLE: click a Fingerbot through the official gateway.
# The gateway local_key authorizes EVERY sub-device behind it — SECRET.
[gateway]
device_id = "YOUR_GATEWAY_ID"
ip = "192.168.1.2" # the gateway's LAN address
local_key = "YOUR_GATEWAY_LOCAL_KEY" # SECRET
version = "3.4" # try 3.4 first; retry 3.5 then 3.3 on handshake errors
[gateway.fingerbots]
default = "robot1"
[gateway.fingerbots.devices.robot1]
device_id = "YOUR_DEVICE_ID"
node_id = "YOUR_NODE_ID" # the tinytuya wizard's node_id (= the cid)