mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-26 10:34:52 +00:00
66_EseraMulti: added support for solar sensor Esera 11112
git-svn-id: https://svn.fhem.de/fhem/trunk@25629 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
14028d13a4
commit
c9a008f490
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- feature: 66_EseraMulti: added support for solar sensor Esera 11112
|
||||||
- feature: new module 74_UnifiProtect.pm
|
- feature: new module 74_UnifiProtect.pm
|
||||||
for Unifi Protect integration (justme1968)
|
for Unifi Protect integration (justme1968)
|
||||||
- feature: 89_AndroidDB: added attribute presetFile
|
- feature: 89_AndroidDB: added attribute presetFile
|
||||||
|
@ -36,7 +36,7 @@ sub
|
|||||||
EseraMulti_Initialize($)
|
EseraMulti_Initialize($)
|
||||||
{
|
{
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
$hash->{Match} = "DS2438|11121|11132|11133|11134|11135";
|
$hash->{Match} = "DS2438|11112|11121|11132|11133|11134|11135";
|
||||||
$hash->{DefFn} = "EseraMulti_Define";
|
$hash->{DefFn} = "EseraMulti_Define";
|
||||||
$hash->{UndefFn} = "EseraMulti_Undef";
|
$hash->{UndefFn} = "EseraMulti_Undef";
|
||||||
$hash->{ParseFn} = "EseraMulti_Parse";
|
$hash->{ParseFn} = "EseraMulti_Parse";
|
||||||
@ -252,13 +252,36 @@ EseraMulti_Parse($$)
|
|||||||
readingsSingleUpdate($rhash, $nameOfReading, $value / 100.0, 1);
|
readingsSingleUpdate($rhash, $nameOfReading, $value / 100.0, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
elsif (($deviceType eq "11112"))
|
||||||
|
{
|
||||||
|
if ($readingId == 1)
|
||||||
|
{
|
||||||
|
$nameOfReading = "temperature";
|
||||||
|
readingsSingleUpdate($rhash, $nameOfReading, $value / 100.0, 1);
|
||||||
|
}
|
||||||
|
elsif ($readingId == 2)
|
||||||
|
{
|
||||||
|
$nameOfReading = "voltage";
|
||||||
|
readingsSingleUpdate($rhash, $nameOfReading, $value / 100.0, 1);
|
||||||
|
}
|
||||||
|
elsif ($readingId == 3)
|
||||||
|
{
|
||||||
|
$nameOfReading = "brightness";
|
||||||
|
readingsSingleUpdate($rhash, $nameOfReading, $value / 100.0, 1);
|
||||||
|
}
|
||||||
|
elsif ($readingId == 4)
|
||||||
|
{
|
||||||
|
$nameOfReading = "radiation";
|
||||||
|
readingsSingleUpdate($rhash, $nameOfReading, $value / 100.0, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my @list;
|
my @list;
|
||||||
push(@list, $rname);
|
push(@list, $rname);
|
||||||
return @list;
|
return @list;
|
||||||
}
|
}
|
||||||
elsif (($deviceType eq "DS2438") || ($deviceType eq "11121") || ($deviceType eq "11132") || ($deviceType eq "11133") || ($deviceType eq "11134") || ($deviceType eq "11135"))
|
elsif (($deviceType eq "DS2438") || ($deviceType eq "11112") || ($deviceType eq "11121") || ($deviceType eq "11132") || ($deviceType eq "11133") || ($deviceType eq "11134") || ($deviceType eq "11135"))
|
||||||
{
|
{
|
||||||
return "UNDEFINED EseraMulti_".$ioName."_".$oneWireId." EseraMulti ".$ioName." ".$oneWireId." ".$deviceType;
|
return "UNDEFINED EseraMulti_".$ioName."_".$oneWireId." EseraMulti ".$ioName." ".$oneWireId." ".$deviceType;
|
||||||
}
|
}
|
||||||
@ -295,6 +318,7 @@ EseraMulti_Attr(@)
|
|||||||
Supported values for deviceType:
|
Supported values for deviceType:
|
||||||
<ul>
|
<ul>
|
||||||
<li>DS2438</li>
|
<li>DS2438</li>
|
||||||
|
<li>11112 (Esera product number, multi sensor Solar)</li>
|
||||||
<li>11121 (Esera product number)</li>
|
<li>11121 (Esera product number)</li>
|
||||||
<li>11132 (Esera product number, multi sensor Unterputz)</li>
|
<li>11132 (Esera product number, multi sensor Unterputz)</li>
|
||||||
<li>11133 (Esera product number, multi sensor Unterputz)</li>
|
<li>11133 (Esera product number, multi sensor Unterputz)</li>
|
||||||
@ -303,7 +327,7 @@ EseraMulti_Attr(@)
|
|||||||
</ul>
|
</ul>
|
||||||
With deviceType DS2438 this device generates readings with un-interpreted data<br>
|
With deviceType DS2438 this device generates readings with un-interpreted data<br>
|
||||||
from DS2438. This can be used with any DS2438 device, independent of an Esera <br>
|
from DS2438. This can be used with any DS2438 device, independent of an Esera <br>
|
||||||
product. With deviceType 11121/11132/11133/11134/11135 this module provides interpreted<br>
|
product. With deviceType 11112/11121/11132/11133/11134/11135 this module provides interpreted<br>
|
||||||
readings like humidity or dew point.<br>
|
readings like humidity or dew point.<br>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -346,6 +370,13 @@ EseraMulti_Attr(@)
|
|||||||
<li>brightness</li>
|
<li>brightness</li>
|
||||||
<li>voltage</li>
|
<li>voltage</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
readings for Esera 11112:<br>
|
||||||
|
<ul>
|
||||||
|
<li>temperature (°C)</li>
|
||||||
|
<li>radiation (W/m²)</li>
|
||||||
|
<li>brightness (Lux)</li>
|
||||||
|
<li>voltage (V)</li>
|
||||||
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ EseraOneWire_Initialize($)
|
|||||||
$hash->{Clients} = ":EseraDigitalInOut:EseraTemp:EseraMulti:EseraAnalogInOut:EseraIButton:EseraCount:EseraShutter:EseraDimmer:";
|
$hash->{Clients} = ":EseraDigitalInOut:EseraTemp:EseraMulti:EseraAnalogInOut:EseraIButton:EseraCount:EseraShutter:EseraDimmer:";
|
||||||
$hash->{MatchList} = { "1:EseraDigitalInOut" => "^DS2408|^11220|^11233|^11228|^11229|^11216|^SYS1|^SYS2",
|
$hash->{MatchList} = { "1:EseraDigitalInOut" => "^DS2408|^11220|^11233|^11228|^11229|^11216|^SYS1|^SYS2",
|
||||||
"2:EseraTemp" => "^DS1820",
|
"2:EseraTemp" => "^DS1820",
|
||||||
"3:EseraMulti" => "^DS2438|^11121|^11132|^11133|^11134|^11135",
|
"3:EseraMulti" => "^DS2438|^11112|^11121|^11132|^11133|^11134|^11135",
|
||||||
"4:EseraAnalogInOut" => "^SYS3|^DS2450|^11202|^11203|^11208|^11219",
|
"4:EseraAnalogInOut" => "^SYS3|^DS2450|^11202|^11203|^11208|^11219",
|
||||||
"5:EseraIButton" => "^DS2401",
|
"5:EseraIButton" => "^DS2401",
|
||||||
"6:EseraCount" => "^DS2423",
|
"6:EseraCount" => "^DS2423",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user