forked from eschava/broadlink-mqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mqtt.conf
44 lines (39 loc) · 2.57 KB
/
mqtt.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Type of device. Valid options are 'lookup', 'multiple_lookup', 'rm', 'rm4', 'sp1', 'sp2', 'a1', 'mp1', 'dooya', 'bg1'
device_type = 'lookup' # use lookup
## lookup parameters
lookup_timeout = 20
#local_address = '127.0.0.1'
## parameters for direct connection
#device_host = '192.168.1.50'
#device_mac = '01:23:45:67:ab:00'
## MQTT connection parameters
mqtt_broker = 'localhost' # default: 'localhost'
mqtt_port = 1883 # default: 1883
mqtt_clientid = 'broadlink'
mqtt_username = ''
mqtt_password = ''
mqtt_topic_prefix = 'broadlink/'
mqtt_multiple_subprefix_format = '{type}_{mac_nic}/' # use only with 'multiple_lookup' device type (allowed parameters are {type}, {host}, {mac}, {mac_nic})
#mqtt_birth_topic = 'clients/broadlink'
#mqtt_birth_payload = 'Hello!'
mqtt_will_topic = 'clients/broadlink'
mqtt_will_payload = 'Adios!'
## MQTT TLS parameters
# Required with TLS: a string path to the Certificate Authority certificate files that are to be treated as trusted by this client.
# ca_certs = '/path/to/ca_certsfile'
# Optional Clients Cert/Key
# certfile = '/path/to/certfile'
# keyfile = '/path/to/keyfile'
# Required TLS version. Valid values: 'sslv3', 'tlsv1', 'tlsv1.2'
# tls_version = 'tlsv1.2'
## extra parameters
broadlink_rm_temperature_interval = 120 # publish temperature from RM device to broadlink/temperature topic every two minutes
broadlink_sp_energy_interval = 30 # publish energy from SP device to broadlink/energy topic every 30 seconds
broadlink_a1_sensors_interval = 30 # publish all sensors data from A1 device to broadlink/sensors/[temperature/humidity/light/air_quality/noise] topics every 30 seconds
broadlink_a1_sensors_text_values = False # use True to send text representation of light/air quality/noise values
broadlink_a1_sensors_json = False # False to send every sensor parameter in separate topic, True - to send all together as JSON object
broadlink_mp1_state_interval = 30 # publish all state data from MP1 device to broadlink/state/[s1/s2/s3/s4] topics every 30 seconds
broadlink_mp1_state_json = False # False to send every state parameter in separate topic, True - to send all together as JSON object
#broadlink_dooya_position_interval = 30 # publish position in percents from Dooya curtain motor to broadlink/percentage topic every 30 seconds
broadlink_bg1_state_interval = 30 # publish all state data from BG1 device to broadlink/state/[pwr/pwr1/pwr2/maxworktime/maxworktime1/maxworktime2/idcbrightness] topics every 30 seconds
broadlink_bg1_state_json = False # False to send every state parameter in separate topic, True - to send all together as JSON object