YAMAHA_AVR Fernbedienung im floorplan abbilden

Begonnen von matthias soll, 27 Februar 2015, 18:04:13

Vorheriges Thema - Nächstes Thema

matthias soll

Hallo zusammen,

gibt es eine einfache möglichkeit wie bei dem Samsung Modul eine YAMAHA_AVR Fernbedienung mit Buttons im Floorplan abzubilden?
Oder muss ich mir jeden button mit einem Dummy einem Notify und dem set befehl selber zusammenbauen?
Gruß
Matthias

matthias soll

Hallo, niemand eine Idee? Ich habe es jetzt mit einem dummy für jede taste probiert, das funktioniert ist aber sehr aufwändig.
Hat niemand eine Fernbedienung mit tastenlayout dafür schon programmiert?
Ich steigt bei dem wiki Eintrag auch nicht ganz durch wenn ich das device anlege erscheint nur das gerät mit on und off Glühlampe, ist das so normal?
Gruß
Matthias

marvin78

Hast du dir das Modul remotecontrol mal angesehen?

matthias soll

Halo marvin, ja habe ich mir angesehen,
aber ich bekomme es nicht ans laufen.
Für die nötige set befehle muss man sowie ich das verstanden habe einiges umprogrammieren.
Gruß
Matthias

marvin78

Das ist im Wiki eigentlich seht gut beschrieben:

http://www.fhemwiki.de/wiki/Remotecontrol

Besser kann ich es hier auch nicht machen.

matthias soll

Ich verstehe nicht wie ich die Tasten zuordnen kann.
Ich möchte:  set AV_Receiver volumeUp mit einer Fernbedienungstaste ausführen.
Muss ich für jede Taste ein notify anlegen?
Gruß
Matthias

marvin78


Markus Bloch

Hallo zusammen,

eine einheitliche Fernbedienung kann ich als Modulautor leider nicht liefern, da die verschiedenen AV-Receiver Modelle dazu zu unterschiedlich sind. Allein schon was die Eingänge betrifft. Jedes Model hat unterschiedliche Eingänge und Sound-Optionen die andere wiederum nicht haben.

Das macht es sehr schwer ein Layout für remotecontrol zu bauen.

Für die BluRay-Player habe ich ein Layout gestern eingecheckt. Dort ist die Anordnung der Tasten an sich gleich bei den einzelnen Modellen, bis auf wenige Ausnahmen.

Bei den AV-Receivern muss das allerdings jeder User selber machen.

Tut mir leid.

Gruß
Markus

Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

matthias soll

@marvin
glesen ja, verstanden jein, umgesetzt ... jetzt "ja"
Man ist wenn man keine Ahnung hat ja immer froh über beispiele, so habe ich es umgesetzt:

define AV_Receiver YAMAHA_AVR 192.168.1.183
attr AV_Receiver model RX-V477
attr AV_Receiver room Wohnzimmer
attr AV_Receiver volume-smooth-change 1
define AVR remotecontrol
attr AVR fp_Groundfloor 251,1200,0,,
attr AVR rc_iconpath icons/remotecontrol
attr AVR rc_iconprefix black_btn_
attr AVR room Wohnzimmer
attr AVR row00 input hdmi1,input hdmi2,input hdmi3
attr AVR row01 volumeDown,mute toggle,volumeUp
define weblink_MENU weblink htmlCode {fhem("get AV_Receiver htmlcode", 1)}
define notify_MENU notify AVR set AV_Receiver $EVENT

Ich weis nicht ob das richtig ist, aber es fuktioniert, ich wusste nicht dass die Tasten so heissen müssen wie das zu sendende kommando.
So funktioniert es bei mir ich musste mir die icons auch genau so benennen wie die tasten und kommandos benannt sind.
Interessant ist, dass es den pfad iconpath icons/remotecontrol gar nicht gibt ich habe die icons in meinen pfad fhem/www/images/default/remotecontrol kopiert wenn ich den pfad in der fhem.cfg so angebe findet er die icons nicht wenn ich den pfad auf icons/remotecontrol lasse funktioniert es bis auf die mute taste da findet er das icon nicht muss ich mir nochmal genau ansehen.
Erstmal danke
Gruß
Matthias

Markus Bloch

Hallo Matthias,

grob richtig. Aktuell gibt es folgende Icons in FHEM für remotecontrol:

Zitat./www/images/default/remotecontrol/black_btn_MTS.png
./www/images/default/remotecontrol/black_btn_PLAY.png
./www/images/default/remotecontrol/black_btn_VIDEO.png
./www/images/default/remotecontrol/black_btn_DOWN.png
./www/images/default/remotecontrol/_black_btn_template.pdn
./www/images/default/remotecontrol/black_btn_INFO2.png
./www/images/default/remotecontrol/black_btn_RETURN.png
./www/images/default/remotecontrol/black_btn_AD.png
./www/images/default/remotecontrol/black_btn_REWIND.png
./www/images/default/remotecontrol/black_btn_HOMEtxt.png
./www/images/default/remotecontrol/black_btn_TV.png
./www/images/default/remotecontrol/black_btn_GUIDE.png
./www/images/default/remotecontrol/black_btn_CHUP.png
./www/images/default/remotecontrol/black_btn_VOL.png
./www/images/default/remotecontrol/black_btn_RIGHT.png
./www/images/default/remotecontrol/black_btn_UP.png
./www/images/default/remotecontrol/black_btn_TOPMENU.png
./www/images/default/remotecontrol/black_btn_FF.png
./www/images/default/remotecontrol/black_btn_ESAVING.png
./www/images/default/remotecontrol/black_btn_1.png
./www/images/default/remotecontrol/black_btn_3.png
./www/images/default/remotecontrol/black_btn_FFblue.png
./www/images/default/remotecontrol/black_btn_5.png
./www/images/default/remotecontrol/black_btn_7.png
./www/images/default/remotecontrol/black_btn_8.png
./www/images/default/remotecontrol/black_btn_IRADIO.png
./www/images/default/remotecontrol/black_btn_PROG.png
./www/images/default/remotecontrol/black_btn_FAV.png
./www/images/default/remotecontrol/black_btn_LEFT2.png
./www/images/default/remotecontrol/black_btn_PIP_ONOFF.png
./www/images/default/remotecontrol/black_btn_CH_LIST.png
./www/images/default/remotecontrol/black_btn_PLAYgreen.png
./www/images/default/remotecontrol/black_btn_INTERNET.png
./www/images/default/remotecontrol/black_btn_LEFT.png
./www/images/default/remotecontrol/black_btn_TVstop.png
./www/images/default/remotecontrol/black_btn_SOURCE.png
./www/images/default/remotecontrol/black_btn_VOLUP.png
./www/images/default/remotecontrol/black_btn_SLEEP.png
./www/images/default/remotecontrol/black_btn_OK.png
./www/images/default/remotecontrol/black_btn_EXIT.png
./www/images/default/remotecontrol/black_btn_ENTER.png
./www/images/default/remotecontrol/black_btn_ASPECT.png
./www/images/default/remotecontrol/black_btn_HOMEsym.png
./www/images/default/remotecontrol/black_btn_HDMI.png
./www/images/default/remotecontrol/black_btn_STOP.png
./www/images/default/remotecontrol/black_btn_VOLDOWN.png
./www/images/default/remotecontrol/black_btn_INFO.png
./www/images/default/remotecontrol/black_btn_RADIO.png
./www/images/default/remotecontrol/black_btn_BLUE.png
./www/images/default/remotecontrol/black_btn_INFO3.png
./www/images/default/remotecontrol/black_btn_CH_LIST2.png
./www/images/default/remotecontrol/black_btn_VOLDOWN3.png
./www/images/default/remotecontrol/black_btn_TOOLS2.png
./www/images/default/remotecontrol/black_btn_CHUP3.png
./www/images/default/remotecontrol/black_btn_TTXMIX.png
./www/images/default/remotecontrol/black_btn_UP3.png
./www/images/default/remotecontrol/black_btn2_2.png
./www/images/default/remotecontrol/black_btn2_3.png
./www/images/default/remotecontrol/black_btn2_4.png
./www/images/default/remotecontrol/black_btn2_5.png
./www/images/default/remotecontrol/black_btn2_7.png
./www/images/default/remotecontrol/black_btn2_8.png
./www/images/default/remotecontrol/black_btn2_9.png
./www/images/default/remotecontrol/black_btn_MUTE2.png
./www/images/default/remotecontrol/black_btn_STATUS.png
./www/images/default/remotecontrol/black_btn_SKIP_FORWARD.png
./www/images/default/remotecontrol/black_btn_SKIP_REVERSE.png
./www/images/default/remotecontrol/black_btn_SLOW_REWIND.png
./www/images/default/remotecontrol/black_btn_SLOW_FORWARD.png
./www/images/default/remotecontrol/black_btn_ONSCREEN.png
./www/images/default/remotecontrol/black_btn_POPUP_MENU.png
./www/images/default/remotecontrol/black_btn_PIP.png
./www/images/default/remotecontrol/black_btn_ANGLE.png
./www/images/default/remotecontrol/black_btn_SUBTITLE.png
./www/images/default/remotecontrol/black_btn_REPEAT_AB.png
./www/images/default/remotecontrol/black_btn_SETUP.png
./www/images/default/remotecontrol/black_btn_EJECT.png
./www/images/default/remotecontrol/black_btn_CHUP2.png
./www/images/default/remotecontrol/black_btn2_1.png
./www/images/default/remotecontrol/black_btn_CAPTION.png
./www/images/default/remotecontrol/black_btn_RETURN2.png
./www/images/default/remotecontrol/black_btn_EQ.png
./www/images/default/remotecontrol/black_btn_REC.png
./www/images/default/remotecontrol/black_btn_LEFT3.png
./www/images/default/remotecontrol/black_btn_VOLUP3.png
./www/images/default/remotecontrol/black_btn_AUDIO.png
./www/images/default/remotecontrol/black_btn_MENU.png
./www/images/default/remotecontrol/black_btn_GREEN.png
./www/images/default/remotecontrol/black_btn_blank.png
./www/images/default/remotecontrol/black_btn_EXIT2.png
./www/images/default/remotecontrol/black_btn_RSS.png
./www/images/default/remotecontrol/black_btn_RADIOred.png
./www/images/default/remotecontrol/black_btn_CHDOWN2.png
./www/images/default/remotecontrol/black_btn_RIGHT3.png
./www/images/default/remotecontrol/black_btn_PICTURE_SIZE.png
./www/images/default/remotecontrol/black_btn_HELP.png
./www/images/default/remotecontrol/black_btn_RED.png
./www/images/default/remotecontrol/black_btn_PAGEDOWN.png
./www/images/default/remotecontrol/black_btn_PAGEUP.png
./www/images/default/remotecontrol/black_btn_2.png
./www/images/default/remotecontrol/black_btn_PRECH.png
./www/images/default/remotecontrol/black_btn_MUTE.png
./www/images/default/remotecontrol/black_btn_MENU2.png
./www/images/default/remotecontrol/black_btn_POWEROFF3.png
./www/images/default/remotecontrol/black_btn_PAUSE.png
./www/images/default/remotecontrol/black_btn_SOURCE2.png
./www/images/default/remotecontrol/black_btn_ITV.png
./www/images/default/remotecontrol/black_btn_W_LINK.png
./www/images/default/remotecontrol/black_btn_SHUFFLE.png
./www/images/default/remotecontrol/black_btn_ENTER3.png
./www/images/default/remotecontrol/black_btn_FMRADIO.png
./www/images/default/remotecontrol/black_btn_9.png
./www/images/default/remotecontrol/black_btn_TEXT.png
./www/images/default/remotecontrol/black_btn_SRS.png
./www/images/default/remotecontrol/black_btn_AV.png
./www/images/default/remotecontrol/black_btn_POWEROFF2.png
./www/images/default/remotecontrol/black_btn_CHDOWN.png
./www/images/default/remotecontrol/Thumbs.db
./www/images/default/remotecontrol/black_btn_REPEAT.png
./www/images/default/remotecontrol/black_btn_VOLDOWN2.png
./www/images/default/remotecontrol/black_btn_TOOLS.png
./www/images/default/remotecontrol/black_btn_GUIDE2.png
./www/images/default/remotecontrol/black_btn_CHDOWN3.png
./www/images/default/remotecontrol/black_btn2_6.png
./www/images/default/remotecontrol/black_btn_POWEROFF.png
./www/images/default/remotecontrol/black_btn_SUBMENU.png
./www/images/default/remotecontrol/black_btn_DOWN3.png
./www/images/default/remotecontrol/black_btn_PRECH2.png
./www/images/default/remotecontrol/black_btn_CONTENTS.png
./www/images/default/remotecontrol/black_btn_CONTENTS2.png
./www/images/default/remotecontrol/black_btn_SEARCH.png
./www/images/default/remotecontrol/black_btn_ENTER2.png
./www/images/default/remotecontrol/black_btn_SUBMENU2.png
./www/images/default/remotecontrol/black_btn_REWINDred.png
./www/images/default/remotecontrol/black_btn_PAUSEyellow.png
./www/images/default/remotecontrol/black_btn_0.png
./www/images/default/remotecontrol/black_btn_VTOOLS.png
./www/images/default/remotecontrol/black_btn_6.png
./www/images/default/remotecontrol/black_btn_2ND_AUDIO.png
./www/images/default/remotecontrol/black_btn_VIERA_LINK.png
./www/images/default/remotecontrol/black_btn2_0.png
./www/images/default/remotecontrol/black_btn_YELLOW.png
./www/images/default/remotecontrol/black_btn_4.png
./www/images/default/remotecontrol/black_btn_TVout.png
./www/images/default/remotecontrol/black_btn_RIGHT2.png
./www/images/default/remotecontrol/black_btn_VOLUP2.png
./www/images/default/remotecontrol/black_btn_CLEAR.png
./www/images/default/remotecontrol/black_btn_AUDIO2.png

Diese Icons kann man in der remotecontrol verwenden. in den row-Attributen gibt man dann eine Liste der Kommandos an, die auf der Fernbedienung zu sehen sein sollen. Standardmäßig wird dann nach einem Icon gesucht, was genauso heist (plus rc_iconprefix vorneweg). Ist das aber nicht der Fall (also Kommando ungleich Icon-Name) dann kann man den Icon-Namen explizit mit angeben durch einen Doppelpunkt hinter dem Kommandonamen.

Also:  [Kommando 1]:[Icon-Name 1],[Kommando 2]:[Icon-Name 2], ....

für deine zweite Zeile also beispielhaft:

attr AVR row01 volumeDown:VOLDOWN,mute toggle:MUTE,volumeUp:VOLUP

dabei werden dann die Icons geladen:   black_btn_VOLDOWN.png , black_btn_MUTE.png sowie black_btn_VOLUP.png

Viele Grüße

Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

Markus Bloch

in dem Ordner liegt auch ein Template für Paint.net:

./www/images/default/remotecontrol/_black_btn_template.pdn

Mit dieser Vorlage kannst du eigene Buttons erstellen. Als Textgröße kann ich Arial Schriftgröße 7 für den Text empfehlen.

Viele Grüße

Markus
Developer für Module: YAMAHA_AVR, YAMAHA_BD, FB_CALLMONITOR, FB_CALLLIST, PRESENCE, Pushsafer, LGTV_IP12, version

aktives Mitglied des FHEM e.V. (Technik)

matthias soll

DANKE Markus!!!
funktioniert.
wie einfach das mit Beispielen seien kann :-)
Jetzt funktioniert auch mute mit dem icon ka warum.
Gruß
Matthias