Skip to content

Commit

Permalink
Adding GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
enesbcs committed May 20, 2023
1 parent 3ef9f7f commit 3feed98
Show file tree
Hide file tree
Showing 3 changed files with 455 additions and 154 deletions.
12 changes: 12 additions & 0 deletions settings.example.ini
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

29 changes: 16 additions & 13 deletions settings.py
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 = []
Loading

0 comments on commit 3feed98

Please sign in to comment.