Skip to content

Commit c479319

Browse files
Merge pull request #40 from davidlb/master
Support MQTT broker authentication
2 parents 2f5173b + 806107f commit c479319

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<params>
1010
<param field="Address" label="MQTT Server address" width="300px" required="true" default="127.0.0.1"/>
1111
<param field="Port" label="Port" width="300px" required="true" default="1883"/>
12+
<param field="Username" label="MQTT Username" width="300px" required="false" default=""/>
13+
<param field="Password" label="MQTT Password" width="300px" required="false" default="" password="true"/>
1214
<param field="Mode1" label="Zigbee2Mqtt Topic" width="300px" required="true" default="zigbee2mqtt"/>
1315
<param field="Mode2" label="Zigbee pairing" width="75px" required="true">
1416
<options>
@@ -191,4 +193,4 @@ def onCommand(Unit, Command, Level, Color):
191193

192194
def onHeartbeat():
193195
global _plugin
194-
_plugin.onHeartbeat()
196+
_plugin.onHeartbeat()

0 commit comments

Comments
 (0)