diff --git a/fhem/FHEM/71_YAMAHA_AVR.pm b/fhem/FHEM/71_YAMAHA_AVR.pm
index b86299c03..42411eb35 100755
--- a/fhem/FHEM/71_YAMAHA_AVR.pm
+++ b/fhem/FHEM/71_YAMAHA_AVR.pm
@@ -769,13 +769,15 @@ sub YAMAHA_AVR_getInputs($)
seconds), which periodically reads the status of the AV receiver (power state, selected
input, volume and mute status) and triggers notify/filelog commands.
- Example:
-
+ Example:
+
define AV_Receiver YAMAHA_AVR 192.168.0.10
-
- define AV_Receiver YAMAHA_AVR 192.168.0.10 mainzone 60 # With custom interval of 60 seconds
-
+
+ define AV_Receiver YAMAHA_AVR 192.168.0.10 mainzone 60 # With custom interval of 60 seconds
+ - define AV_Receiver YAMAHA_AVR 192.168.0.10 # If no zone is specified, the "Main Zone" will be used. - attr AV_Receiver YAMAHA_AVR room Livingroom - - # Define the second zone - define AV_Receiver_Zone2 YAMAHA_AVR 192.168.0.10 zone2 +
+
+ define AV_Receiver YAMAHA_AVR 192.168.0.10 # If no zone is specified, the "Main Zone" will be used.
+ attr AV_Receiver YAMAHA_AVR room Livingroom
+
+ # Define the second zone
+ define AV_Receiver_Zone2 YAMAHA_AVR 192.168.0.10 zone2
attr AV_Receiver_Zone2 room Bedroom
-
+ on -off -input hdmi1 -input hdmi2 -input hdmi3 -input hdmi4 -input av1 -input av2 -input av3 -input av3 -input av4 -input av5 -input av6 -input usb -input airplay -input tuner -input v-aux -input audio -input server -volume -80..16 (volume between -80 and +16 dB) -mute on -mute off- +
on
+off
+input hdmi1
+input hdmi2
+input hdmi3
+input hdmi4
+input av1
+input av2
+input av3
+input av3
+input av4
+input av5
+input av6
+input usb
+input airplay
+input tuner
+input v-aux
+input audio
+input server
+volume -80..16 (volume between -80 and +16 dB)
+mute on
+mute off- remoteControl up - remoteControl down - remoteControl left - remoteControl right - remoteControl enter - remoteControl return -+ Cursor Selection:
+ remoteControl up
+ remoteControl down
+ remoteControl left
+ remoteControl right
+ remoteControl enter
+ remoteControl return
+ - remoteControl setup - remoteControl option - remoteControl display -+ Menu Selection:
+ remoteControl setup
+ remoteControl option
+ remoteControl display
+ - # the initial definition. + A typical example is the automatical turn on and play an internet radio broadcast:
+
+ # the initial definition.
define AV_receiver YAMAHA_AVR 192.168.0.3
-
- And in your 99_MyUtils.pm the following function:
-
- sub startNetRadio
- {
- fhem "set AV_Receiver on";
- sleep 5;
- fhem "set AV_Receiver input netradio";
- sleep 4;
- fhem "set AV_Receiver remoteControl enter";
- sleep 2;
- fhem "set AV_Receiver remoteControl enter";
+
+ sub startNetRadio()
+ {
+ fhem "set AV_Receiver on";
+ sleep 5;
+ fhem "set AV_Receiver input netradio";
+ sleep 4;
+ fhem "set AV_Receiver remoteControl enter";
+ sleep 2;
+ fhem "set AV_Receiver remoteControl enter";
}
-
+ + Now you can use this function by typing the following line in your FHEM command line or in your notify-definitions:
+
{startNetRadio()}
-
+ get <name> <what>
power -input -mute -volume_level+ Currently, the following commands are defined and return the current state of the receiver.
power
+input
+mute
+volume_level<Status_Interval>; falls nicht gesetzt ist der Standardwert 30 Sekunden)
den Status des Receivers abfragt und entsprechende Notify-/FileLog-Geräte triggert..- define AV_Receiver YAMAHA_AVR 192.168.0.10 + Beispiel:
+
+ define AV_Receiver YAMAHA_AVR 192.168.0.10
- define AV_Receiver YAMAHA_AVR 192.168.0.10 mainzone 60 # Mit modifiziertem Status Interval (60 Sekunden)
-
+ define AV_Receiver YAMAHA_AVR 192.168.0.10 mainzone 60 # Mit modifiziertem Status Interval (60 Sekunden)
+ - define AV_Receiver YAMAHA_AVR 192.168.0.10 # Wenn keine Zone angegeben ist, wird - attr AV_Receiver YAMAHA_AVR room Wohnzimmer # standardmäßig "mainzone" verwendet - - # Definition der zweiten Zone - define AV_Receiver_Zone2 YAMAHA_AVR 192.168.0.10 zone2 - attr AV_Receiver_Zone2 room Schlafzimmer -+ Beispiel:
+ define AV_Receiver YAMAHA_AVR 192.168.0.10 # Wenn keine Zone angegeben ist, wird
+ attr AV_Receiver YAMAHA_AVR room Wohnzimmer # standardmäßig "mainzone" verwendet
+
+ # Definition der zweiten Zone
+ define AV_Receiver_Zone2 YAMAHA_AVR 192.168.0.10 zone2
+ attr AV_Receiver_Zone2 room Schlafzimmer
+ on -off -input hdmi1 -input hdmi2 -input hdmi3 -input hdmi4 -input av1 -input av2 -input av3 -input av3 -input av4 -input av5 -input av6 -input usb -input airplay -input tuner -input v-aux -input audio -input server -volume -80..16 (Lautstärke zwischen -80 und +16 dB) -mute on -mute off+
+on
+off
+input hdmi1
+input hdmi2
+input hdmi3
+input hdmi4
+input av1
+input av2
+input av3
+input av3
+input av4
+input av5
+input av6
+input usb
+input airplay
+input tuner
+input v-aux
+input audio
+input server
+volume -80..16 (Lautstärke zwischen -80 und +16 dB)
+mute on
+mute off- remoteControl up - remoteControl down - remoteControl left - remoteControl right - remoteControl enter - remoteControl return -+ Cursor Steuerung:
+ remoteControl up
+ remoteControl down
+ remoteControl left
+ remoteControl right
+ remoteControl enter
+ remoteControl return
+ - remoteControl setup - remoteControl option - remoteControl display -+ Menü Auswahl:
+ remoteControl setup
+ remoteControl option
+ remoteControl display
+ - # Die Gerätedefinition + Ein typisches Beispiel ist das automatische Einschalten und Abspielen eines Internet Radio Sender:
+
+ # Die Gerätedefinition
define AV_receiver YAMAHA_AVR 192.168.0.3
-
- Und in der 99_MyUtils.pm die folgende Funktion:
-
- sub startNetRadio
- {
- fhem "set AV_Receiver on";
- sleep 5;
- fhem "set AV_Receiver input netradio";
- sleep 4;
- fhem "set AV_Receiver remoteControl enter";
- sleep 2;
- fhem "set AV_Receiver remoteControl enter";
+
+ sub startNetRadio
+ {
+ fhem "set AV_Receiver on";
+ sleep 5;
+ fhem "set AV_Receiver input netradio";
+ sleep 4;
+ fhem "set AV_Receiver remoteControl enter";
+ sleep 2;
+ fhem "set AV_Receiver remoteControl enter";
}
-
+ + Nun kann man diese Funktion in der FHEM Kommandozeile oder in notify-Definitionen wie folgt verwenden.:
+
{startNetRadio()}
-
+