36 lines
950 B
Plaintext
36 lines
950 B
Plaintext
# IoT Bridge Configuration Example
|
|
# Copy this file to config.yaml and fill in your values
|
|
|
|
mqtt:
|
|
broker: "your-mqtt-broker.com"
|
|
port: 8883 # 1883 for unencrypted, 8883 for TLS
|
|
username: "your_username"
|
|
password: "your_password"
|
|
client_id: "iot_bridge_standalone"
|
|
keepalive: 60
|
|
use_tls: true # Set to true for port 8883
|
|
|
|
odoo:
|
|
# URL for Odoo API (when not using mock)
|
|
# url: "http://localhost:8069"
|
|
# token: ""
|
|
use_mock: true
|
|
|
|
logging:
|
|
level: "INFO" # DEBUG, INFO, WARNING, ERROR
|
|
format: "json" # json or text
|
|
|
|
devices:
|
|
- device_id: "shellypmminig3-48f6eeb73a1c"
|
|
mqtt_topic: "shaperorigin/status/pm1:0"
|
|
parser_type: "shelly_pm_mini_g3"
|
|
machine_name: "Shaper Origin"
|
|
session_config:
|
|
strategy: "power_threshold"
|
|
standby_threshold_w: 20
|
|
working_threshold_w: 100
|
|
start_debounce_s: 3
|
|
stop_debounce_s: 15
|
|
message_timeout_s: 20
|
|
heartbeat_interval_s: 300 # 5 minutes
|