65 lines
1.8 KiB
YAML
65 lines
1.8 KiB
YAML
# IoT Bridge Development Configuration
|
|
# For use with docker-compose.dev.yaml and local Mosquitto
|
|
|
|
mqtt:
|
|
broker: "mosquitto" # Docker service name from docker-compose
|
|
port: 1883 # Unencrypted for local development
|
|
username: "" # Leave empty if Mosquitto allows anonymous
|
|
password: ""
|
|
client_id: "iot_bridge_dev"
|
|
keepalive: 60
|
|
use_tls: false # No TLS for local testing
|
|
|
|
odoo:
|
|
# Local Odoo instance from docker-compose
|
|
base_url: "http://odoo-dev:8069"
|
|
database: "odoo"
|
|
username: "admin"
|
|
api_key: "" # Add your API key here when ready for Phase 2
|
|
use_mock: false # Using real Odoo REST API
|
|
|
|
logging:
|
|
level: "DEBUG" # More verbose for development
|
|
format: "json"
|
|
|
|
# Event Queue Configuration
|
|
event_queue:
|
|
max_retries: 3
|
|
initial_retry_delay_s: 2
|
|
max_retry_delay_s: 60
|
|
retry_backoff_factor: 2.0
|
|
|
|
# Device Status Monitoring Configuration
|
|
device_status:
|
|
enabled: true
|
|
timeout_s: 30
|
|
check_interval_s: 5
|
|
persistence_path: /data/device_status.json
|
|
|
|
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
|
|
|
|
- device_id: "testshelly-simulator"
|
|
mqtt_topic: "testshelly/status/pm1:0"
|
|
parser_type: "shelly_pm_mini_g3"
|
|
machine_name: "Test Shelly Simulator"
|
|
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: 30 # 30 seconds for faster testing
|