2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

70_BOTVAC.pm: fix set robotSounds availability

git-svn-id: https://svn.fhem.de/fhem/trunk@19589 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
vuffiraa 2019-06-10 12:14:04 +00:00
parent 2f7c744e9f
commit 2fd297e130
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 70_BOTVAC: set robotSounds filter
- feature: 70_BOTVAC: add pollingMode
add preferences
use whitespace to separate boundaries

View File

@ -269,7 +269,7 @@ sub Set($@) {
$usage .= " statusRequest:noArg schedule:on,off syncRobots:noArg pollingMode:on,off";
# preferences
$usage .= " robotSounds:on,off" if ( GetServiceVersion($hash, "preferences") !~ /()|(basic-1)/ );
$usage .= " robotSounds:on,off" if ( GetServiceVersion($hash, "preferences") !~ /(^$)|(basic-1)/ );
$usage .= " dirtbinAlertReminderInterval:30,60,90,120,150" if ( GetServiceVersion($hash, "preferences") =~ /(basic-\d)|(advanced-\d)/ );
$usage .= " filterChangeReminderInterval:1,2,3" if ( GetServiceVersion($hash, "preferences") =~ /(basic-\d)|(advanced-\d)/ );
$usage .= " brushChangeReminderInterval:4,5,6,7,8" if ( GetServiceVersion($hash, "preferences") =~ /(basic-\d)|(advanced-\d)/ );
@ -2313,16 +2313,16 @@ sub wsMasking($$) {
<br>
<li>
<a name="pollingMode"></a>
<code> set &lt;name&gt; pollingMode &lt;1|0&gt;</code>
<code> set &lt;name&gt; pollingMode &lt;on|off&gt;</code>
<br>
set polling on by 1 (default) or off by 0 like attribut disable.
set polling on (default) or off like attribut disable.
</li>
<br>
<li>
<a name="robotSounds"></a>
<code> set &lt;name&gt; robotSounds &lt;true|false&gt;</code>
<code> set &lt;name&gt; robotSounds &lt;on|off&gt;</code>
<br>
set sounds on by true or off false.
set sounds on or off.
</li>
<br>
<li>