forked from iquix/kocom.py
-
Notifications
You must be signed in to change notification settings - Fork 34
/
kocom.conf
93 lines (82 loc) · 4.44 KB
/
kocom.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[RS485]
#------------
# [RS485]
# type (required) : serial (RS485 directly attatched as a serial port of the home server such as USB RS485 adapter) / socket (RS485 socket server such as Elfin EW11)
#
# serial_port (optional) : serial port path (default=/dev/ttyUSB0 in Linux, default=com3 in Windows)
#
# socket_server (required when type=socket) : address of remote serial server (eg. 192.168.1.100)
# socket_port (required when type=socket) : port number of remote serial server (eg. 5050)
#------------
#type = serial
#serial_port = /dev/ttyUSB0
type = socket
socket_server = 192.168.219.118
socket_port = 8899
[MQTT]
#------------
# [MQTT]
# mqtt_server (required) : address of the mqtt server (eg. 127.0.0.1)
# mqtt_port (required) : port number of the mqtt server (eg. 1883)
#
# mqtt_allow_anonymous (required) : True(anonymous connect) / False (Use mqtt_username, mqtt_password)
# mqtt_username (required when mqtt_allow_anonymous=False) : mqtt username
# mqtt_password (required when mqtt_allow_anonymous=False) : mqtt password
#------------
mqtt_server = 192.168.219.130
mqtt_port = 1883
mqtt_allow_anonymous = False
mqtt_username = admin
mqtt_password = admin3844
[Device]
#------------
# [Device]
# enabled (required) : list of devices
# - can be 'devicetype' alone if there's only one device in the location (eg. light, fan)
# - can be 'devicetype_roomname' if there are sub devices (eg. thermo_room3)
# * supported devicetypes : light, gas, fan, thermo, elevator
# * supported roomnames : myhome, livingroom, bedroom, room1, room2
#------------
enabled = light, fan, thermo_livingroom, thermo_bedroom, thermo_room1, thermo_room2, elevator
[Elevator]
#------------
# [Elevator]
# type (optional) : rs485 / tcpip (defalut=rs485)
#
# rs485_floor (optional): if your wallpad is capable of sending additional RS485 packet when elevator arrives, then set this variable to the floor where you live in. (eg. 10) (default=0, which means not supported)
#
# *** WARNING *** DON'T SET IT TO TCPIP UNLESS YOU KNOW WHAT YOU'RE DOING. IT MAY DESTROY WHOLE APARTMENT NETWORK. THE AUTHOR OF THE SCRIPT IS NOT LIABLE FOR ANY DAMAGE TO YOUR APARTMENT NETWORK.
# tcpip_apt_server (required when type=tcpip): ip address of the elevator server
# tcpip_apt_port (required when type=tcpip): port number of the elevator server
# tcpip_packet1 (required when type=tcpip): 1st packet(132bytes) to send when calling elevator. you must capture your own packet and write it to this config file to make it work properly.
# tcpip_packet2 (required when type=tcpip): 2nd packet(64bytes) to send when calling elevator. you must capture your own packet and write it to this config file to make it work properly.
# tcpip_packet3 (required when type=tcpip): 3rd packet(36bytes) to send when calling elevator. you must capture your own packet and write it to this config file to make it work properly.
# tcpip_packet4 (required when type=tcpip): packet(44bytes) to receive when elevator arrives. you must capture your own packet and write it to this config file to make it work properly.
#------------
type = rs485
rs485_floor = 15
# *** WARNING *** DON'T SET IT TO TCPIP UNLESS YOU KNOW WHAT YOU'RE DOING. IT MAY DESTROY WHOLE APARTMENT NETWORK. THE AUTHOR OF THE SCRIPT IS NOT LIABLE FOR ANY DAMAGE TO YOUR APARTMENT NETWORK.
#type = tcpip
#tcpip_apt_server = 10.x.x.x
#tcpip_apt_port = xxxxx
#tcpip_packet1 = 78563412000000026800000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#tcpip_packet2 = 78563412040000022400000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#tcpip_packet3 = 785634127a0000020800000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#tcpip_packet4 = 785634127b0000021000000000000000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[Log]
#------------
# [Log]
# show_query_hex (required) : True / False (refer source code for each option)
# show_recv_hex (required) : True / False (refer source code for each option)
# show_mqtt_publish (required) : True / False (refer source code for each option)
#------------
show_query_hex = True
show_recv_hex = True
show_mqtt_publish = True
[User]
# init_temp (required) : Temperature
# init_fan_mode (required) : Low, Medium, High
# light_count (required) : Light Count
init_temp = 23
init_fan_mode = Medium
light_count = 2