mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
allow device selection by TYPE=xxx (and all other internal values)
git-svn-id: https://svn.fhem.de/fhem/trunk@3852 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0245188774
commit
1f0733ad93
@ -1,5 +1,5 @@
|
|||||||
# 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.
|
||||||
- SVN
|
- feature: readingsGroup: allow device selecton by TYPE=xxx
|
||||||
- feature: new module Revolt for Revolt NC-5462 power metering devices.
|
- feature: new module Revolt for Revolt NC-5462 power metering devices.
|
||||||
(by mehf)
|
(by mehf)
|
||||||
- feature: HUEDevice: added alert command
|
- feature: HUEDevice: added alert command
|
||||||
|
@ -60,7 +60,17 @@ readingsGroup_updateDevices($)
|
|||||||
} else {
|
} else {
|
||||||
my @device = split(":", $param);
|
my @device = split(":", $param);
|
||||||
|
|
||||||
if( defined($defs{$device[0]}) ) {
|
if($device[0] =~ m/(.*)=(.*)/) {
|
||||||
|
my ($lattr,$re) = ($1, $2);
|
||||||
|
foreach my $d (sort keys %defs) {
|
||||||
|
next if( IsIgnored($d) );
|
||||||
|
next if( !defined($defs{$d}{$lattr}) );
|
||||||
|
next if( $defs{$d}{$lattr} !~ m/^$re$/);
|
||||||
|
$list{$d} = 1;
|
||||||
|
push @devices, [$d,$device[1]];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elsif( defined($defs{$device[0]}) ) {
|
||||||
$list{$device[0]} = 1;
|
$list{$device[0]} = 1;
|
||||||
push @devices, [@device];
|
push @devices, [@device];
|
||||||
} else {
|
} else {
|
||||||
@ -454,7 +464,8 @@ readingsGroup_Get($@)
|
|||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
<ul>
|
<ul>
|
||||||
<li>If regex starts with a + it will be matched against the internal values of the device instead of the readinsg.</li>
|
<li><device> can be of the form INTERNAL=VALUE where INTERNAL is an internal value and VALUE is a regex.</li>
|
||||||
|
<li>If regex starts with a + it will be matched against the internal values of the device instead of the readings.</li>
|
||||||
<li>For internal values no longpoll update is possible. Refresh the page to update the values.</li>
|
<li>For internal values no longpoll update is possible. Refresh the page to update the values.</li>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
|
|
||||||
@ -464,6 +475,9 @@ readingsGroup_Get($@)
|
|||||||
define batteries readingsGroup .*:battery</code><br>
|
define batteries readingsGroup .*:battery</code><br>
|
||||||
<br>
|
<br>
|
||||||
<code>define temperatures readingsGroup s300th.*:temperature</code><br>
|
<code>define temperatures readingsGroup s300th.*:temperature</code><br>
|
||||||
|
<code>define temperatures readingsGroup TYPE=CUL_WS.*:temperature</code><br>
|
||||||
|
<br>
|
||||||
|
<code>define culRSSI readingsGroup cul_RSSI=.*:+cul_RSSI</code><br>
|
||||||
<br>
|
<br>
|
||||||
<code>define heizung readingsGroup t1:temperature t2:temperature t3:temperature<br>
|
<code>define heizung readingsGroup t1:temperature t2:temperature t3:temperature<br>
|
||||||
attr heizung notime 1<br>
|
attr heizung notime 1<br>
|
||||||
|
@ -85,7 +85,7 @@ FHEM/30_HUEBridge.pm justme1968 http://forum.fhem.de Sonstige
|
|||||||
FHEM/31_HUEDevice.pm justme1968 http://forum.fhem.de Sonstige Systeme
|
FHEM/31_HUEDevice.pm justme1968 http://forum.fhem.de Sonstige Systeme
|
||||||
FHEM/31_LightScene.pm justme1968 http://forum.fhem.de Automatisierung
|
FHEM/31_LightScene.pm justme1968 http://forum.fhem.de Automatisierung
|
||||||
FHEM/32_SYSSTAT.pm justme1968 http://forum.fhem.de Unterstützende Dienste
|
FHEM/32_SYSSTAT.pm justme1968 http://forum.fhem.de Unterstützende Dienste
|
||||||
FHEM/33_readingsGroup.pm justme1968 http://forum.fhem.de Automatisierung
|
FHEM/33_readingsGroup.pm justme1968 http://forum.fhem.de Frontends
|
||||||
FHEM/32_speedtest.pm justme1968 http://forum.fhem.de Sonstiges
|
FHEM/32_speedtest.pm justme1968 http://forum.fhem.de Sonstiges
|
||||||
FHEM/34_panStamp.pm justme1968 http://forum.fhem.de Sonstiges Systeme
|
FHEM/34_panStamp.pm justme1968 http://forum.fhem.de Sonstiges Systeme
|
||||||
FHEM/34_SWAP.pm justme1968 http://forum.fhem.de Sonstiges Systeme
|
FHEM/34_SWAP.pm justme1968 http://forum.fhem.de Sonstiges Systeme
|
||||||
|
Loading…
x
Reference in New Issue
Block a user