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

migrated dummy to readingsFN mechanism

git-svn-id: https://svn.fhem.de/fhem/trunk@2618 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2013-01-31 19:33:19 +00:00
parent 176ce08708
commit 2782e09561
2 changed files with 5 additions and 5 deletions

View File

@ -61,6 +61,8 @@
- feature: added new command 'notice'. (M. Fischer) - feature: added new command 'notice'. (M. Fischer)
- change: update supports the display and confirmation of system messages - change: update supports the display and confirmation of system messages
via the new notice command (M. Fischer) via the new notice command (M. Fischer)
- change: BS, USF1000, dummy migrated to readingsFN (Boris)
- 2012-10-28 (5.3) - 2012-10-28 (5.3)
- feature: added functions trim, ltrim, rtrim, UntoggleDirect, - feature: added functions trim, ltrim, rtrim, UntoggleDirect,

View File

@ -12,7 +12,7 @@ dummy_Initialize($)
$hash->{SetFn} = "dummy_Set"; $hash->{SetFn} = "dummy_Set";
$hash->{DefFn} = "dummy_Define"; $hash->{DefFn} = "dummy_Define";
$hash->{AttrList} = "loglevel:0,1,2,3,4,5,6 setList"; $hash->{AttrList} = "loglevel:0,1,2,3,4,5,6 setList ". $readingFnAttributes;
} }
################################### ###################################
@ -29,10 +29,7 @@ dummy_Set($@)
my $v = join(" ", @a); my $v = join(" ", @a);
Log GetLogLevel($name,2), "dummy set $name $v"; Log GetLogLevel($name,2), "dummy set $name $v";
$hash->{CHANGED}[0] = $v; readingsSingleUpdate($hash,"state",$v,1);
$hash->{STATE} = $v;
$hash->{READINGS}{state}{TIME} = TimeNow();
$hash->{READINGS}{state}{VAL} = $v;
return undef; return undef;
} }
@ -93,6 +90,7 @@ dummy_Define($$)
so the FHEMWEB frontend can construct a dropdown and offer on/off so the FHEMWEB frontend can construct a dropdown and offer on/off
switches. Example: attr dummyName setList on off switches. Example: attr dummyName setList on off
</li> </li>
<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
</ul> </ul>
<br> <br>