-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
455 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[CONFIG] | ||
mqtt_ip = 192.168.1.2 | ||
mqtt_port = 1883 | ||
mqtt_user = mqtt | ||
mqtt_pass = user | ||
discovery_prefix = homeassistant | ||
testrun = 0 | ||
retain = 1 | ||
gen1 = 1 | ||
gen2 = 1 | ||
debug = 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
data = { } | ||
|
||
# ----------------------------------------------- | ||
# WARNING: If .ini file exists it will overwrite the default values below! | ||
# ----------------------------------------------- | ||
data['mqtt_ip'] = '192.168.1.2' # mqtt server ip | ||
data['mqtt_port'] = 1883 # mqtt server port | ||
data['mqtt_user'] = "" # mqtt server username | ||
data['mqtt_pass'] = "" # mqtt server password | ||
data['mqtt_user'] = "mqtt" # mqtt server username | ||
data['mqtt_pass'] = "user" # mqtt server password | ||
data['discovery_prefix'] = 'homeassistant' # autodiscovery prefix for Domoticz | ||
|
||
testrun = False | ||
retain = True # if retain is True, config template will be saved onto mqtt broker permanently | ||
gen1 = True # enable Gen1 device detection | ||
gen2 = True # enable Gen2 device detection | ||
debug = False # print debug messages if True | ||
# ----------------------------------------------- | ||
# DO NOT MODIFY LINES BELOW, UNLESS YOU ARE ABSOLUTELY SURE WHAT YOU ARE DOING! | ||
# ----------------------------------------------- | ||
data['trigger_topic1'] = "shellies/announce" #gen1 device detection | ||
data['trigger_topic2'] = "shellies_discovery/rpc" #gen2 device reply | ||
data['trigger_topic3'] = "+/online" #gen2 device detection | ||
|
||
data['gen1_template_file'] = 'mqtt_templates.txt' | ||
data['gen2_template_file'] = 'mqtt_templates_gen2.txt' | ||
|
||
retain = True # if retain is True, config template will be saved onto mqtt broker permanently | ||
gen1 = True # enable Gen1 device detection | ||
gen2 = True # enable Gen2 device detection | ||
|
||
testrun = False # enable this option only for Debugging! | ||
debug = False # print debug messages if True | ||
|
||
# ----------------------------------------------- | ||
## SYSTEM VARIABLES, DO NOT TOUCH! | ||
# ----------------------------------------------- | ||
shque = [] | ||
shjsons = {} | ||
mqttsender = [] |
Oops, something went wrong.