set <name> desired <value>
set <name> start
set <name> stop
set <name> restart <value>
get <name> params
# Exampe for callback-function
@@ -870,6 +957,7 @@ sub PID20_Attr($$$$)
return $actValue;
}
# Exampe for callback-function
@@ -885,6 +973,18 @@ sub PID20_Attr($$$$)
return $actValue;
}
+Example: attr <device> pidActorMapCmd {'1'=>'on-for-timer 90','0'=>'off','default'=>'off'}
+
+This will map an actuation value 0 to "off", resulting in "set <actor> off" being sent,
+an actuation value 1 will be mapped to "on-for-timer 90", resulting in "set <actor> on-for-timer 90" being sent,
+any other actuation value will be mapped to "off".
+
+You can use any dummy-command in define syntax, which will be ignored, if this attribut is set.
+
+ define <name> PID20 <sensor[:reading[:regexp]]> <actor:cmd >
- set <name> desired <value>
- set <name> start
- set <name> stop
- set <name> restart <value>
- get <name> params
-
- # Exampe for callback-function
- # 1. argument = name of PID20
- # 2. argument = current actor value
- sub PIDActorSet($$)
- {
- my ( $name, $actValue ) = @_;
- if ($actValue>70)
- {
- $actValue=100;
- }
- return $actValue;
- }
-
- # Exampe for callback-function
- # 1. argument = name of PID20
- # 2. argument = current i-portion value
- sub PIDIPortionSet($$)
- {
- my ( $name, $actValue ) = @_;
- if ($actValue>70)
- {
- $actValue=70;
- }
- return $actValue;
- }
-
-Example: attr <device> pidActorMapCmd {'1'=>'on-for-timer 90','0'=>'off','default'=>'off'}
-
-This will map an actuation value 0 to "off", resulting in "set <actor> off" being sent,
-an actuation value 1 will be mapped to "on-for-timer 90", resulting in "set <actor> on-for-timer 90" being sent,
-any other actuation value will be mapped to "off".
-
-You can use any dummy-command in define syntax, which will be ignored, if this attribut is set.
-
-