From 0302ac4f53857a28f62c5420b4aa86d7da720631 Mon Sep 17 00:00:00 2001 From: pizmus <> Date: Mon, 30 Mar 2020 05:50:26 +0000 Subject: [PATCH] 66_EseraOneWire: support Esera 11233 dual digital output with push buttons git-svn-id: https://svn.fhem.de/fhem/trunk@21540 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/66_EseraDigitalInOut.pm | 9 ++++++--- fhem/FHEM/66_EseraOneWire.pm | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 4e8944e69..cd852241f 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - feature: 66_EseraOneWire: add support for Esera 11233, dual output - bugfix: 71_YAMAHA_AVR: use correct dsp command for RX-V2065 model - change: 57_Calendar: treatment of cutoffOlderThan amended for series end dates without time specification diff --git a/fhem/FHEM/66_EseraDigitalInOut.pm b/fhem/FHEM/66_EseraDigitalInOut.pm index bdbd6901b..93f09ed2e 100644 --- a/fhem/FHEM/66_EseraDigitalInOut.pm +++ b/fhem/FHEM/66_EseraDigitalInOut.pm @@ -33,7 +33,7 @@ use strict; use warnings; use SetExtensions; -my %deviceSpecs = ("DS2408" => 8, "11220" => 8, "11228" => 8, "11229" => 8, "11216" => 8, "SYS1" => 4, "SYS2" => 5); +my %deviceSpecs = ("DS2408" => 8, "11220" => 8, "11228" => 8, "11229" => 8, "11216" => 8, "11233" => 2, "SYS1" => 4, "SYS2" => 5); sub EseraDigitalInOut_Initialize($) @@ -331,6 +331,7 @@ EseraDigitalInOut_setOutput($$$$) if (($hash->{DEVICE_TYPE} eq "DS2408") || ($hash->{DEVICE_TYPE} eq "11220") || + ($hash->{DEVICE_TYPE} eq "11233") || ($hash->{DEVICE_TYPE} eq "11228") || ($hash->{DEVICE_TYPE} eq "11229")) { @@ -503,7 +504,8 @@ EseraDigitalInOut_ParseForOneDevice($$$$$$) readingsSingleUpdate($rhash, $nameOfReading, $readingValue, 1); } } - elsif (($deviceType eq "11220") || ($deviceType eq "11228")) # 8 channel digital output with push buttons + elsif (($deviceType eq "11220") || ($deviceType eq "11228") || ($deviceType eq "11233")) + # 8 channel / 2 channel digital output with push buttons { if ($readingId == 2) { @@ -611,7 +613,7 @@ EseraDigitalInOut_Parse($$) return @list; } elsif (($deviceType eq "DS2408") or ($deviceType eq "11216") or - ($deviceType eq "11220") or + ($deviceType eq "11220") or ($deviceType eq "11233") or ($deviceType eq "11228") or ($deviceType eq "11229") or ($deviceType eq "SYS1") or ($deviceType eq "SYS2")) { @@ -654,6 +656,7 @@ EseraDigitalInOut_Attr(@)