diff --git a/fhem/CHANGED b/fhem/CHANGED
index d515aebd6..a4303d84e 100644
--- a/fhem/CHANGED
+++ b/fhem/CHANGED
@@ -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
diff --git a/fhem/FHEM/71_YAMAHA_NP.pm b/fhem/FHEM/71_YAMAHA_NP.pm
index 0900c33a4..ba4be45f7 100644
--- a/fhem/FHEM/71_YAMAHA_NP.pm
+++ b/fhem/FHEM/71_YAMAHA_NP.pm
@@ -148,7 +148,7 @@ sub YAMAHA_NP_Set
if(not defined($hash->{helper}{VOLUMESTRAIGHTMIN}) and not defined($hash->{helper}{VOLUMESTRAIGHTMAX}))
{
- YAMAHA_NP_SendCommand($hash, "GetParam", "statusRequest", "basicStatus");
+ YAMAHA_NP_SendCommand($hash, "GetParam", "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, "".$a[2]."", $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
Available commands:
cdTray - open/close the CD tray.
clockUpdate - updates the system clock with current time. The time information is taken from the FHEM server.
+ dimmer [1..3] - Sets the display brightnes.
input [<parameter>] - selects the input channel. The inputs are read dynamically from the device. Available inputs can be set (e.g. cd, tuner, aux1, aux2, ...).
mute [on|off] - activates/deactivates muting
off - shuts down the device
@@ -1698,6 +1712,7 @@ sub YAMAHA_NP_html2txt
Verfügbare Befehle:
cdTray - Öffnen und Schließen des CD-Fachs.
clockUpdate - Aktualisierung der Systemzeit des Network Players. Die Zeitinformation wird von dem FHEM Server bezogen, auf dem das Modul ausgeführt wird.
+ dimmer [1..3] - Einstellung der Anzeigenhelligkeit.
input [<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, ...).
mute [on|off] - Aktiviert/Deaktiviert die Stummschaltung.
off - Network Player ausschalten.