- readingFnAttributes
- disableCond
The default behavior of a RandomTimer is, that it works.
To set the Randomtimer out of work, you can specify in the disableCond attibute a condition in perlcode that must evaluate to true.
The Condition must be put into round brackets. The best way is to define
a function in 99_utils.
Examples
attr ZufallsTimerZ disableCond (!isVerreist())
attr ZufallsTimerZ disableCond (Value("presenceDummy" eq "notPresent"))
- onCmd, offCmd
Setting the on-/offCmd changes the command sent to the device. Standard is: "set <device> on".
The device can be specified by a @.
Examples
attr Timer oncmd {fhem("set @ on-for-timer 14")}
attr Timer offCmd {fhem("set @ off 16")}
attr Timer oncmd set @ on-for-timer 12
attr Timer offCmd set @ off 12
- switchmode
Setting the switchmode you can influence the behavior of switching on/off.
The parameter has the Format 999/999 and the default ist 800/200. The values are in "per mill".
The first parameter sets the value of the probability that the device will be switched on when the device is off.
The second parameter sets the value of the probability that the device will be switched off when the device is off.
Examples
attr ZufallsTimerZ switchmode 400/400
=end html
=cut