10_EnOcean: hvac summerMode switching operations improved

git-svn-id: https://svn.fhem.de/fhem/trunk@30249 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klaus.schauer
2025-09-03 17:53:16 +00:00
parent 468af8338b
commit d3b67d7295

View File

@@ -15105,7 +15105,7 @@ sub EnOcean_Attr(@) {
} elsif ($attrVal eq 'auto') {
} elsif ($attrVal eq 'on') {
if (AttrVal($name, 'subType', '') =~ m/^hvac\.0(1|4|6)$/ && AttrVal($name, 'summerMode', 'off') eq 'off') {
if (AttrVal($name, 'subType', '') =~ m/^hvac\.0(1|4|6)$/ && AttrVal($name, 'summerMode', 'off') =~ /^auto|off$/) {
readingsBeginUpdate($hash);
readingsBulkUpdate($hash, 'waitingCmds', 'summerMode');
readingsBulkUpdate($hash, 'operationModeRestore', ReadingsVal($name, 'operationMode', 'setpoint'));
@@ -15118,7 +15118,7 @@ sub EnOcean_Attr(@) {
}
} elsif ($attrVal eq 'off') {
if (AttrVal($name, 'subType', '') =~ m/^hvac\.0(1|4|6)$/ && AttrVal($name, 'summerMode', 'off') eq 'on') {
if (AttrVal($name, 'subType', '') =~ m/^hvac\.0(1|4|6)$/ && AttrVal($name, 'summerMode', 'off') =~ /^auto|on$/) {
readingsBeginUpdate($hash);
readingsBulkUpdate($hash, 'waitingCmds', 'runInit');
readingsBulkUpdate($hash, 'operationMode', ReadingsVal($name, 'operationModeRestore', 'setpoint'));