mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
71_YAMAHA_NP: New command 'dimmer [1..3]'
git-svn-id: https://svn.fhem.de/fhem/trunk@7830 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e662594d76
commit
90aa9aff41
@ -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.
|
||||
- feature: 71_YAMAHA_NP: New command 'dimmer [1..3]'
|
||||
- bugfix: 31_MilightDevice: if we're already off don't turn on to set dim level!
|
||||
- added: new dustbin icon
|
||||
- bugfix: SYSMON: some warnings
|
||||
|
@ -148,7 +148,7 @@ sub YAMAHA_NP_Set
|
||||
|
||||
if(not defined($hash->{helper}{VOLUMESTRAIGHTMIN}) and not defined($hash->{helper}{VOLUMESTRAIGHTMAX}))
|
||||
{
|
||||
YAMAHA_NP_SendCommand($hash, "<YAMAHA_AV cmd=\"GET\"><System><Misc><Network><Info>GetParam</Info></Network></Misc></System></YAMAHA_AV>", "statusRequest", "basicStatus");
|
||||
YAMAHA_NP_SendCommand($hash, "<YAMAHA_AV cmd=\"GET\"><System><Misc><Network><Info>GetParam</Info></Network></Misc></System></YAMAHA_AV>", "statusRequest", "systemConfig");
|
||||
}
|
||||
|
||||
# get all available inputs if nothing is available
|
||||
@ -197,6 +197,7 @@ sub YAMAHA_NP_Set
|
||||
"tuner:bandDAB,bandFM,presetUp,presetDown,tuneDown,tuneUp ".
|
||||
"player:play,stop,pause,next,prev,shuffleToggle,repeatToggle ".
|
||||
"clockUpdate:noArg ".
|
||||
"dimmer:1,2,3 ".
|
||||
"tunerPresetDAB:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 ".
|
||||
"tunerPresetFM:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 ".
|
||||
"timerHour:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 ".
|
||||
@ -224,6 +225,7 @@ sub YAMAHA_NP_Set
|
||||
"tuner:bandFM,presetUp,presetDown,tuneDown,tuneUp ".
|
||||
"player:play,stop,pause,next,prev,shuffleToggle,repeatToggle ".
|
||||
"clockUpdate:noArg ".
|
||||
"dimmer:1,2,3 ".
|
||||
"tunerPresetFM:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 ".
|
||||
"timerHour:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 ".
|
||||
"timerMinute:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59 ";
|
||||
@ -307,6 +309,17 @@ sub YAMAHA_NP_Set
|
||||
}
|
||||
}
|
||||
}
|
||||
elsif($what eq "dimmer")
|
||||
{
|
||||
if($a[2] >= 1 and $a[2] <= 3)
|
||||
{
|
||||
YAMAHA_NP_SendCommand($hash, "<YAMAHA_AV cmd=\"PUT\"><System><Misc><Display><FL_Dimmer>".$a[2]."</FL_Dimmer></Display></Misc></System></YAMAHA_AV>", $what, $a[2]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return "Dimmer value must be 1..3";
|
||||
}
|
||||
}
|
||||
elsif($what =~ /^(volumeStraight|volume|volumeUp|volumeDown)$/)
|
||||
{
|
||||
my $target_volume;
|
||||
@ -1468,6 +1481,7 @@ sub YAMAHA_NP_html2txt
|
||||
<u>Available commands:</u><br><br>
|
||||
<li><b>cdTray</b> - open/close the CD tray.</li>
|
||||
<li><b>clockUpdate</b> - updates the system clock with current time. The time information is taken from the FHEM server.</li>
|
||||
<li><b>dimmer</b> [1..3] - Sets the display brightnes.</li>
|
||||
<li><b>input</b> [<parameter>] - selects the input channel. The inputs are read dynamically from the device. Available inputs can be set (e.g. cd, tuner, aux1, aux2, ...).</li>
|
||||
<li><b>mute</b> [on|off] - activates/deactivates muting</li>
|
||||
<li><b>off</b> - shuts down the device </li>
|
||||
@ -1698,6 +1712,7 @@ sub YAMAHA_NP_html2txt
|
||||
<u>Verfügbare Befehle:</u><br><br>
|
||||
<li><b>cdTray</b> - Öffnen und Schließen des CD-Fachs.</li>
|
||||
<li><b>clockUpdate</b> - Aktualisierung der Systemzeit des Network Players. Die Zeitinformation wird von dem FHEM Server bezogen, auf dem das Modul ausgeführt wird.</li>
|
||||
<li><b>dimmer</b> [1..3] - Einstellung der Anzeigenhelligkeit.</li>
|
||||
<li><b>input</b> [<parameter>] - Auswahl des Eingangs des NP. Der aktive Eingang wird vom Gerät gelesen und in FHEM dynamisch dargestellt (z.B. cd, tuner, aux1, aux2, ...).</li>
|
||||
<li><b>mute</b> [on|off] - Aktiviert/Deaktiviert die Stummschaltung.</li>
|
||||
<li><b>off</b> - Network Player ausschalten.</li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user