config broker 'broker'
	option host '127.0.0.1'
	option port '1883'
	option username 'secubox'
	option password 'secubox'
	option client_id 'mqtt-bridge-01'

config bridge 'bridge'
	option base_topic 'secubox/+/state'
	option retention '7'
	option auto_discovery '1'
	option poll_interval '30'

config monitor 'monitor'
	option interval '10'
	option usb_scan_enabled '1'
	option auto_configure '0'

config adapter 'zigbee_usb2134'
	option enabled '1'
	option type 'zigbee'
	option preset 'zigbee_usb2134'
	option title 'SMSC USB2134B'
	option vendor '0424'
	option product '2134'
	option port ''
	option baud '115200'
	option channel '11'
	option pan_id '0x1A62'
	option permit_join '0'
	option detected '0'
	option health 'unknown'
	option notes 'Bus 003 Device 002: ID 0424:2134 SMSC USB2134B'

# Z-Wave adapter example (disabled by default)
config adapter 'zwave_aeotec'
	option enabled '0'
	option type 'zwave'
	option title 'Aeotec Z-Stick Gen5'
	option vendor '0658'
	option product '0200'
	option port '/dev/ttyACM0'
	option baud '115200'
	option detected '0'
	option health 'unknown'

# ModBus RTU adapter example (disabled by default)
config adapter 'modbus_ftdi'
	option enabled '0'
	option type 'modbus'
	option title 'FTDI ModBus Adapter'
	option vendor '0403'
	option product '6001'
	option port '/dev/ttyUSB1'
	option baud '9600'
	option parity 'N'
	option databits '8'
	option stopbits '1'
	option slave_id '1'
	option detected '0'
	option health 'unknown'

# Generic USB Serial adapter example (disabled by default)
config adapter 'serial_generic'
	option enabled '0'
	option type 'serial'
	option title 'Generic Serial Adapter'
	option port '/dev/ttyUSB2'
	option baud '9600'
	option databits '8'
	option parity 'N'
	option stopbits '1'
	option detected '0'
	option health 'unknown'

config template 'zigbee_default'
	option device_type 'zigbee'
	option topic 'secubox/zigbee/{id}/state'
	option qos '1'
	option retain '1'

config template 'modbus_default'
	option device_type 'modbus'
	option topic 'secubox/modbus/{id}/state'
	option qos '0'
	option retain '0'

config rule 'zigbee_disconnect'
	option type 'adapter_status'
	option adapter 'zigbee_usb2134'
	option when 'missing'
	option action 'alert'
	option message 'Zigbee USB bridge disconnected'
	option topic 'alerts/mqtt/zigbee'

config rule 'zigbee_online'
	option type 'adapter_status'
	option adapter 'zigbee_usb2134'
	option when 'online'
	option action 'alert'
	option message 'Zigbee USB bridge is online again'
	option topic 'alerts/mqtt/zigbee'

config stats 'stats'
	option clients '0'
	option mps '0'
	option retained '0'
	option uptime '0s'

config payloads 'payloads'
#	push payload sections dynamically
