2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

34_ESPEasy.pm: Added lost attribute check for boolean attributes

git-svn-id: https://svn.fhem.de/fhem/trunk@17759 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
dev0 2018-11-16 09:30:54 +00:00
parent 3a1f5b1b3a
commit 5ebe81033f

View File

@ -1344,6 +1344,10 @@ sub ESPEasy_Attr(@)
$ret = "0,1,2" if ($cmd eq "set" && not $aVal =~ m/^(0|1|2)$/)
}
elsif ($aName =~ m/^(autosave|autocreate|authentication|disable|deepSleep)$/
|| $aName =~ m/^(presenceCheck|displayTextEncode|resendFailedCmd)$/) {
$ret = "0,1" if ($cmd eq "set" && not $aVal =~ m/^(0|1)$/)}
elsif ($aName eq "combineDevices") {
$ret = "0 | 1 | ESPname | ip[/netmask][,ip[/netmask]][,...]"
if $cmd eq "set" && !(ESPEasy_isAttrCombineDevices($aVal) || $aVal =~ m/^[01]$/ )