forked from Nickduino/Pi-Somfy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaultConfig.conf
134 lines (109 loc) · 5.13 KB
/
defaultConfig.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[General]
# location of log files (required)
LogLocation = /var/log/
# PUT YOUR OWN COORDINATES HERE
# Latitude of the place for computation of sunset and sunrise.
# check on Google Maps for instance
Latitude = 51.4769
# PUT YOUR OWN COORDINATES HERE
# Longitude of the place for computation of sunset and sunrise.
# check on Google Maps for instance
Longitude = 0
# Repeat each command a certain number of times. This is to ensure it works
# if the remote is far away from the shutter and sometime EMI prevents a
# signal to go through
# This option only applies if a shutter is raised or lowered in full. If
# a shutter is only raised or lowered for a given amount of seconds, this
# option does not apply for obvious reasons.
SendRepeat = 2
# (Optional) This parameter specifes the GPIO connector where the 433.42 MHz
# emitter is connected to. The default value is 4
TXGPIO = 4
# This parameter, if true will enable the use of HTTPS
# (secure HTTP) in the Flask web app or user name and password
# authentication, depending on the options below. This option is only
# applicable to the web app. This option requires python-openssl library
# to be installed
UseHttps = False
# (Optional) This parameter will allow the HTTP port to be set by the web
# interface. The default is 80, but this setting will override that
# value. This option is only applicable to the web app.
HTTPPort = 80
# This parameter will override the default port for HTTPS, which is
# 443. Uncomment and change this value to use a non-standard port for HTTPS
HTTPSPort = 443
# Lowest identifier used by the tool to assign unique 24bit
# ids for new remote. This value won't change in the config file, instead
# the tool will look for the next available address that has not been
# used yet.
# If you are running more than one instance of PiSomfy you must ensure
# each instance is set to a different value to avoid possible conflicts
RTS_Address = 0x279620
###################################################################
###################################################################
## LIST OF ALL SHUTTERS REGISTERED
###################################################################
###################################################################
[MQTT]
# Location (IP Address of DNS Name) of the MQTT Server
MQTT_Server = 192.168.1.x
# Port of the MQTT Server
MQTT_Port = 1883
# Username for the MQTT Server
MQTT_User = xxxxxxx
# Password of the MQTT Server
MQTT_Password = xxxxxxx
# MQTT unique client identifier
# If you are running more than one instance of PiSomfy you must ensure
# each instance is set to a different value to avoid possible conflicts
MQTT_ClientID = somfy-mqtt-bridge
# If MQTT Discovery is enabled, simply add the folowing 2 lines to Home
# Assistant's configuration.yaml file:
#
# mqtt:
# discovery: true
EnableDiscovery = true
###################################################################
###################################################################
## LIST OF ALL SHUTTERS REGISTERED
###################################################################
###################################################################
#
# The config value is the address of the remote (must be unique),
# which is a 24bit identifier (little-endian)
# followed by a comma deliminated list of
# - Userfriednly Name
# - indicator if these remote is active or has been (soft-)deleted
# - duration (seconds) for motor to fully lower down
# - duration (seconds) for motor to fully rise up (optional otherwise down duration will be used in both directions)
#
[Shutters]
# Indicates the rolling code used by the shutter, based on the address
# provided in the section [Shutters]. Note that this changes every time
# the remote is used and therefore the config file will update frequently
#
[ShutterRollingCodes]
# Indicates in % the intermediate position stored in the shutter itself,
# based on the address provided in the section [Shutters].
# Bellow values are assumed to match with shutters internal presets.
# They might be overwritten/cleared by a 5 seconds press on the stop button.
#
[ShutterIntermediatePositions]
###################################################################
###################################################################
## LIST OF ALL AUTOMATED SCHEDULED OPERATIONS
###################################################################
###################################################################
#
# The config value is a unique id identifying the schedule
#
# This is followed by a comma deliminated list representing:
# - active: Either 'active', 'paused', 'deleted'
# - repeatType: String: 'once' or 'weekday'
# - repeatValue: Date in format "YYYY/MM/DD" or Array ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
# - timeType: String: 'clock' or 'astro' are valid values
# - timeValue: String: Time in format "HH:MM" or values 'sunset' or 'sunrise' or 'sunset+MIN', 'sunset-MIN', 'sunrise+MIN', 'sunrise-MIN'
# - shutterAction: String: 'up', 'down' or 'stop' (= My-Position) are valid values. If this is followed by an integer, this indicates the duration of the operation
# - shutterIds: Array of shutterIds to operate
#
[Scheduler]