2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 19:30:31 +00:00

98_Siro.pm:add mapping position -> pct

git-svn-id: https://svn.fhem.de/fhem/trunk@19504 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Byte09 2019-05-31 06:46:36 +00:00
parent c7def2cc10
commit d7bcd4ca7b

View File

@ -152,6 +152,7 @@ my %sets = (
"prog_mode_off" => "noArg",
"reset_motor_term" => "noArg",
"pct" => "slider,0,1,100", # Wird nur bei vorhandenen time_to attributen gesetzt
"position" => "slider,0,1,100", # Wird nur bei vorhandenen time_to attributen gesetzt
"state" => "noArg",
"set_favorite" => "noArg",
"del_favorite" => "only_modul,only_shutter,shutter_and_modul",
@ -163,6 +164,7 @@ my %sets = (
my %sendCommands = (
"pct" => "level",
"level" => "level",
"position" => "level",
"stop" => "stop",
"off" => "off",
"on" => "on",
@ -784,6 +786,7 @@ sub Set($@) {
readingsBeginUpdate($hash);
readingsBulkUpdate( $hash, "state", $newposition ) ;
readingsBulkUpdate( $hash, "pct", $newposition ) ;
readingsBulkUpdate( $hash, "position", $newposition) ;
readingsBulkUpdate( $hash, "aktRunningAction", "noAction" ) ;
readingsBulkUpdate( $hash, "aktEndAction", 0 ) ;
readingsBulkUpdate( $hash, "aktTimeAction", 0 ) ;
@ -1143,6 +1146,7 @@ sub Finish($) {
readingsBeginUpdate($hash);
readingsBulkUpdate( $hash, "state", $state ) ;
readingsBulkUpdate( $hash, "pct", $state ) ;
readingsBulkUpdate( $hash, "position", $state ) ;
readingsBulkUpdate( $hash, "aktRunningAction", "noAction" ) ;
readingsBulkUpdate( $hash, "aktEndAction", 0 ) ;
readingsBulkUpdate( $hash, "aktTimeAction", 0 ) ;
@ -1222,6 +1226,7 @@ sub versionchange($) {
readingsBeginUpdate($hash);
readingsBulkUpdate( $hash, "state", "0" );
readingsBulkUpdate( $hash, "pct", "0" ) ;
readingsBulkUpdate( $hash, "position", "0" ) ;
readingsBulkUpdate( $hash, "motor-term", $seconds ) ;
readingsEndUpdate( $hash, 1 );