-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.example.ini
62 lines (56 loc) · 2.92 KB
/
config.example.ini
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[commands]
# Commands are codes that can be referred to by name.
# If an incoming code matches a command name, the command code is
# sent to the device instead.
#
# A payload can be in Broadlink (base64) format:
philips/power-off = JgAaABweOR4bHhwdHB4dHRw6HhsdHR0dOTocAA0FAAAAAAAAAAAAAAAAAAA=
# Or it can be in Pronto hex format:
denon/power-on = 0000 006D 0000 0020 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 0046 000A 001E 000A 001E 000A 0046 000A 0046 000A 0046 000A 0046 000A 001E 000A 001E 000A 001E 000A 0677 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 001E 000A 0046 000A 0046 000A 001E 000A 001E 000A 001E 000A 001E 000A 0046 000A 0046 000A 0046 000A 0677
# Repeats are also supported by adding a N* prefix to any code.
# For example, the code below will be sent 5 times (4 repeats):
panasonic/power-on = 5 * 0000 0070 0000 0032 0080 0040 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0010 0010 0010 0010 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0010 0010 0030 0010 0ACD
[device_types]
# Most devices are supported by default through the python-broadlink
# module. When new device types are introduced which are not (yet)
# supported by the module, they can be configured here.
#
# The format is: <device type id> = <class>, <name>, <brand>
#
# <device type id>: the hexadecimal device type id (e.g. "0x6539")
# <class>: name of the python-broadlink implementation class (e.g "rm" or "rm4")
# <name>: can be chosen freely, e.g. "RM4 mini"
# <brand>: normally "Broadlink"
# 0xFFFF = rm4pro, "Future RM4 device", "Broadlink"
[devices]
# Known devices that will be exposed via the bridge.
# The key is the alias that the device can be addressed as.
# The value is the host (name or IP) of the Broadlink device.
myalias = host.example.org
[discovery]
# The bridge can also discover nearby devices (same subnet).
#
# Number of seconds in which to wait for devices to reply during discovery.
# A value of 0 disables auto-discovery.
timeout = 5
[http]
# The port that the REST service will use.
# 8780 is the default port. Use 0 to disable.
port = 8780
[lirc]
# The port that the LIRC service will use. 0 to disable.
# 8765 is the default port. Use 0 to disable.
port = 8765
[mqtt]
# The URL of the MQTT broker in the form:
# <protocol>://[<user>@<password>@]<host>[:<port>]
# where:
# - protocol: 'mqtt' or 'mqtts' (TLS)
# - user (optional)
# - password (optional)
# - host: hostname/IP address of the MQTT server
# - port (optional)
# When empty or missing, the MQTT client is disabled.
broker_url = mqtt://mqtt.example.org
# The prefix to use. Default is "broadlink"
topic_prefix = 'broadlink'