Skip to content

Commit 4880ceb

Browse files
authored
Fixes & password support
1 parent db14327 commit 4880ceb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Drivers/sonoff-2ch-tasmota.src/sonoff-2ch-tasmota.groovy

+7-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ metadata {
3131
command "reboot"
3232

3333
attribute "needUpdate", "string"
34+
attribute "uptime", "string"
35+
attribute "ip", "string"
3436
}
3537

3638
simulator {
@@ -129,7 +131,7 @@ def parse(description) {
129131

130132
if (!state.mac || state.mac != descMap["mac"]) {
131133
log.debug "Mac address of device found ${descMap["mac"]}"
132-
updateDataValue("mac", descMap["mac"])
134+
state.mac = descMap["mac"]
133135
}
134136

135137
if (state.mac != null && state.dni != state.mac) state.dni = setDeviceNetworkId(state.mac)
@@ -630,6 +632,10 @@ def configuration_model()
630632
{
631633
'''
632634
<configuration>
635+
<Value type="password" byteSize="1" index="password" label="Password" min="" max="" value="" setting_type="preference" fw="">
636+
<Help>
637+
</Help>
638+
</Value>
633639
<Value type="list" byteSize="1" index="PowerOnState" label="Power On State" min="0" max="3" value="3" setting_type="lan" fw="">
634640
<Help>
635641
Default: Previous

0 commit comments

Comments
 (0)