Entertainment Steuerung

Hallo Andreas,

habe die Config nochmal überprüft und angepasst.

Danke

Gruss

Michael

Hi

I’m trying to setup control of my TX-NR709. Looks like I managed to follow the wiki and managed to setup almost everything. What I do not get is the following:

Der Onkyo Receiver meldet auch Schaltvorgänge oder z.B. Änderungen der Lautstärke über den Socket. Wenn man z.B. die Änderung der Lautstärke am Gerät auch in IP-Symcon sehen möchte, so muss noch folgende Schritte durchführen:
Register Variable per Doppelklick öffnen
Zielskript auswählen (…\Pfad\zu\Entertainemnt_Interface)
mit OK bestätigen
Zum Test einfach mal das WebFront öffnen, und an der Lautstärke drehen. Es sollte sich mit leichter Verzögerung der Wert für die Lautstärke ändern.

Can someone please explain it to me in english? (norwegian, russian :slight_smile: )
What do I have to do here? Google translate was not very helpfull here (

Hi,

You have to do the following steps:

[ul]
[li]Create a IO Socket with Port 60128 and IP of your Onkyo
[/li][li]Create Cutter with Hex delimiter 1A 0D 0A
[/li][li]Create Register Variable and Link it to the Script Entertainment_InterfaceOnkyoRcv
[/li][li]Adapt Configuration and assign ID of Register Variable to c_Property_Register and ID of IO Instanct to c_Property_Instance
[/li][/ul]

Best Regards
Andreas

Hi Andreas

I did not have time to try it earlier, but I managed to fix everything today. It works like a sharm :slight_smile: Thanks!

Hallo,

nach einem Update auf die neuesten Versionen (IPS 3.0, sowie neueste Versionen der Library, usw) bekomme ich während des Benutzens der Entertainment-Steuerung die folgende Meldung:

Call to undefined function IPSMessageHandler_AfterHandleLibraryEvent() in <b>C:\IP-Symcon\scripts\IPSLibrary\app\core\IPSMessageHandler\IPSMessageHandler.class.php</b> on line <b>384</b>

Die Meldung erscheint im Webfront weniger oft als in der iOS-App

IMG_0902.PNG

Nachtrag: Ich sehe gerade, daß auch, wenn ich einen Raum in der Entertainment-Seite anschalte, die ganzen Elemente nicht angezeigt werden.

… Fix liegt am Server (Update von IPSMessageHandler)

Danke.

Update gezogen. Läuft wieder :slight_smile:

Hi,

ich wollte jetzt auch mal das Modul einrichten bei mir. Primär erstmal zum testen mit meinem Onkyo TX-NR818

Leider passiert nach „Modul installieren“ nichts mehr :frowning:

Hier die Config:

<?
	/**@defgroup entertainment_configuration Entertainment Konfiguration
	 * @ingroup entertainment
	 * @{
	 *
	 * Konfigurations File der Entertainment Steuerung.
	 *
	 * Hier werden folgende Komponenten definiert:
	 * - Kommunikations Schnittstellen
	 * - Räume
	 * - Geräte
	 * - Geräte Zuordnungen
	 *
	 * @file          Entertainment_Configuration.inc.php
	 * @author        Andreas Brauneis
	 * @version
	 * Version 2.50.1, 31.01.2012<br/>
	 *
    */

	IPSUtils_Include ("Entertainment_Constants.inc.php",   "IPSLibrary::app::modules::Entertainment");
	IPSUtils_Include ("NetPlayer_Constants.inc.php",       "IPSLibrary::app::modules::NetPlayer");
	IPSUtils_Include ("NetPlayer_Configuration.inc.php",   "IPSLibrary::config::modules::NetPlayer");

	define ("c_Comm_WinLIRC",						"WinLIRC");
	define ("c_Comm_Onkyo",							"Onkyo");
	define ("c_Comm_NetPlayer",						"NetPlayer");

	define ("c_Room_LivingRoom",					"Wohnzimmer");


	define ("c_Device_OnkyoMain",					"OnkyoMain");
	define ("c_Device_OnkyoZone2",					"OnkyoZone2");
	define ("c_Device_OnkyoTuner",					"OnkyoTuner");


	// ========================================================================================================================
	// Defintion of Communication Data
	// ========================================================================================================================
	function get_CommunicationConfiguration () {
	   return array (
			c_Comm_Onkyo => array (
				c_Property_ScriptSnd 			=> 'Entertainment_InterfaceOnkyoSnd.inc.php',
				c_Property_ScriptRcv  			=> 'Entertainment_InterfaceOnkyoRcv.ips.php',
				c_Property_FunctionSnd 			=> 'Onkyo_SendData',
				c_Property_Register				=> '',
				c_Property_Instance				=> '',
				c_Property_IPAddress			=> '192.168.178.10',
				c_Property_Timeout				=> 30,
			),
		);
	}

	// ========================================================================================================================
	// Defintion of Room Configuration
	// ========================================================================================================================
	function get_RoomConfiguration () {
		return array (
			// -------------------------------------------------------------------------------------------------------
			c_Room_LivingRoom => array(
				c_Property_Name 			=> 'Wohnzimmer',
				c_Control_RoomPower 		=> array(c_Property_Name 	=> 'Power'),
				c_Control_Muting 			=> array(c_Property_Name 	=> 'Mute'),
				c_Control_Group				=> array(c_Property_Name 	=> 'Klangeinstellungen', c_Property_Icon => 'Gear'),
				c_Control_Balance			=> array(c_Property_Name 	=> 'Balance',	c_Property_Group => 'Klangeinstellungen'),
				c_Control_Treble			=> array(c_Property_Name 	=> 'Höhen',		c_Property_Group => 'Klangeinstellungen'),
				c_Control_Middle			=> array(c_Property_Name 	=> 'Mitten',	c_Property_Group => 'Klangeinstellungen'),
				c_Control_Bass				=> array(c_Property_Name 	=> 'Bass',		c_Property_Group => 'Klangeinstellungen'),
				c_Control_Volume 			=> array(c_Property_Name 	=> 'Volume'),
				c_Control_RemoteVolume 		=> array(c_Property_Name 	=> 'Volume Control'),
				c_Control_iRemoteVolume 	=> array(c_Property_Name 	=> 'Volume iPhone'),
				c_Control_Source 			=> array(c_Property_Name 	=> 'Source'),
				c_Control_RemoteSource 		=> array(c_Property_Name 	=> 'Source Control'),
				c_Control_iRemoteSource 	=> array(c_Property_Name 	=> 'Remote iPhone'),
			),
			// -------------------------------------------------------------------------------------------------------
		);
	}

	// ========================================================================================================================
	// Defintion of Device Configuration
	// ========================================================================================================================
	function get_DeviceConfiguration () {
		return array (
	      // -------------------------------------------------------------------------------------------------------
			c_Device_OnkyoMain 		=> array(
				c_Property_Name 			=> 'OnkyoMain',
				c_Control_DevicePower 		=> array(
					c_Property_Name 			=> 'Power',
					c_Property_CommPowerOn		=> array(c_Comm_WinLIRC, 'onkyoreceiver', 'mainpoweron'),
					c_Property_CommPowerOff		=> array(c_Comm_WinLIRC, 'onkyoreceiver', 'mainpoweroff'),
					c_Property_ConnectSocket	=> c_Comm_Onkyo,
					c_Property_CommPowerOn2		=> array(c_Comm_Onkyo, 'PWR', '01'),
					c_Property_CommPowerOff2	=> array(c_Comm_Onkyo, 'PWR', '00'),
				),
				c_Control_Muting 			=> array(
					c_Property_Name 			=> 'Mute',
					c_Property_CommMute 		=> array(c_Comm_WinLIRC, 'onkyoreceiver', 'mute'),
					c_Property_CommMuteOn 		=> array(c_Comm_Onkyo, 'AMT', '01'),
					c_Property_CommMuteOff 		=> array(c_Comm_Onkyo, 'AMT', '00'),
				),
				c_Control_Volume 			=> array(
					c_Property_Name 			=> 'Volume',
					c_Property_MinValue			=> 0,
					c_Property_MaxValue			=> 100,
					c_Property_Limit			=> 80,
					c_Property_CommVol			=> array(c_Comm_Onkyo, 'MVL', c_Template_Value),
				),
				c_Control_Mode 				=> array(
					c_Property_Name 			=> 'Listening Mode',
					c_Property_CommMode			=> array(c_Comm_Onkyo, 'LMD', c_Template_Code),
					c_Property_Names			=> array(
						"Stereo","Direct",
						"Pure Audio","Surround","Film","THX", "Action", "Musical", "Orchestra", "Unplugged", "Studio-Mix",
						"All Ch Stereo","Theater-Dimensional", "Enhanced 7/Enhance","Mono","Full Mono","DTS Surround Sens",
						"Audyssey DSX","Straight Decode*1","Dolby EX*2","Dolby EX+DSX","THX Cinema","THX Surround EX","THX Music",
						"PLIIx Movie","PLIIx Music","PLIIx Game",
					),
					c_Property_Codes			=> array(
					   "00", "01",
						 "02", "03", "04", "05", "06", "08", "09", "0A",
						"0B", "0C", "0D", "0E", "0F", "13", "15",
						"16", "40", "41", "A7", "42", "43", "44",
					   "80", "81", "86",
					),
				),
			),
			// -------------------------------------------------------------------------------------------------------
			c_Device_OnkyoZone2 => array(
				c_Property_Name 			=> 'OnkyoZone2',
				c_Control_DevicePower 		=> array(
					c_Property_Name 			=> 'Power',
					c_Property_CommPower		=> array(c_Comm_WinLIRC, 'onkyoreceiver', 'zone2power'),
					c_Property_CommPowerOn		=> array(c_Comm_WinLIRC, 'onkyoreceiver', 'zone2poweron'),
					c_Property_CommPowerOff		=> array(c_Comm_WinLIRC, 'onkyoreceiver', 'zone2poweroff'),
					c_Property_ConnectSocket	=> c_Comm_Onkyo,
					c_Property_CommPowerOn2		=> array(c_Comm_Onkyo, 'ZPW', '01'),
					c_Property_CommPowerOff2	=> array(c_Comm_Onkyo, 'ZPW', '00'),
				),
				c_Control_Muting 			=> array(
					c_Property_Name 			=> 'Mute',
					c_Property_CommMuteOn 		=> array(c_Comm_Onkyo, 'ZMT', '01'),
					c_Property_CommMuteOff 		=> array(c_Comm_Onkyo, 'ZMT', '00'),
					c_Property_CommMute			=> array(c_Comm_WinLIRC, 'onkyoreceiver', 'mutez2'),
				),
				c_Control_Volume 			=> array(
					c_Property_Name 			=> 'Volume',
					c_Property_MinValue			=> 0,
					c_Property_MaxValue			=> 100,
					c_Property_Limit			=> 75,
					c_Property_CommVol 			=> array(c_Comm_Onkyo, 'ZVL', c_Template_Value),
				),
			),
	      // -------------------------------------------------------------------------------------------------------
			c_Device_OnkyoTuner => array(
				c_Property_Name 			=> 'OnkyoTuner',
				c_Control_RemoteSource 		=> array(
					c_Property_Name 			=> 'Source Control',
					c_Property_Names			=> array('src="../user/Entertainment/Remote_OnkyoTuner.php"  height=110px'),
				),
				c_Control_iRemoteSource 	=> array(
					c_Property_Name 			=> 'iPhone Source Control',
					c_Property_Names			=> array('src="../user/Entertainment/iRemote_OnkyoTuner.php"'),
				),
				c_Control_Program 			=> array(
					c_Property_Name 			=> 'Program',
					c_Property_CommPrg			=> array(c_Comm_Onkyo, 'PRS', c_Template_Code),
					c_Property_CommPrg2			=> array(c_Comm_WinLIRC, 'onkyotuner', c_Template_Code2),
					c_Property_CommPrgPrev		=> array(c_Comm_Onkyo, 'PRS', 'DOWN'),
					c_Property_CommPrgPrev2		=> array(c_Comm_WinLIRC, 'onkyotuner', 'up'),
					c_Property_CommPrgNext		=> array(c_Comm_Onkyo, 'PRS', 'UP'),
					c_Property_CommPrgNext2		=> array(c_Comm_WinLIRC, 'onkyotuner', 'down'),
					c_Property_Codes			=> array('01', '02', '03', '04', '05', '06', '07', '08'),
					c_Property_Codes2			=> array('p1','p2','p3','p4','p5','p6','p7','p8'),
					c_Property_Names			=> array('Arabella','Antenne','Kronehit Radio','Radio Wien','Radio Noe','OE 3','88.6','Hit FM'),
				),
			),
	      // -------------------------------------------------------------------------------------------------------
		);
	}

	// ========================================================================================================================
	// Defintion of Source Configuration
	// ========================================================================================================================
	function get_SourceConfiguration() {
	   return array (
	      // -------------------------------------------------------------------------------------------------------
			c_Room_LivingRoom => array(
				0 	=> array(
					c_Property_Name 	=> 'OnkyoTuner',
					c_Property_Input => 	array(c_Property_Device 	=> c_Device_OnkyoTuner),
		 			c_Property_Output => 	array(c_Property_Device 	=> c_Device_OnkyoZone2,
												  c_Property_CommSrc	=> array(c_Comm_Onkyo, 'SLZ', '24')),
				),
			),
		);
	}

  /** @}*/
?>

In den Meldungen von IPS kommt nur „Installation of Module Entertainment“ … Weiter passiert da nix.
Wo kann der Fehler noch sein? Hab schon das Modul gelöscht und neu versucht. Ging alles nicht :frowning:

PS: Beim neu installieren legt er die Variablen Für „Wohnzimmer“ bis Klangeinstellungen an. Danach hört der Installer auf, etwas zu machen. Balance Volume und co werden nicht angelegt…

Entertainment_Installation.ips.php in der Konsole öffnen und manuell ausführen bringt Dich weiter (die Entertainment Installation logged nicht alles ins ModuleManager Log).

Du darfst bei der Raum Konfigurations nur Elemente angeben, die auf bei Geräten vorhanden sind. zB ist im Raum eine Balance definiert, aber keines der Geräte liefert eine Werte Bereichs Definition!

–>


            c_Room_LivingRoom => array(
                c_Property_Name             => 'Wohnzimmer',
                c_Control_RoomPower         => array(c_Property_Name     => 'Power'),
                c_Control_Muting             => array(c_Property_Name     => 'Mute'),
                c_Control_Volume             => array(c_Property_Name     => 'Volume'),
                c_Control_Source             => array(c_Property_Name     => 'Source'),
            ),

Vielen Dank andreas,

steuern geht jetzt auch. aber ich kann den receiver nicht einschalten per WF … muss ich hier noch etwas beachten?
rest funktioniert…

Mein Onkyo unterstützt das Einschalten per Netzwerk nicht, drum mach ich es über IRTrans.
Kannst aber einfach die Fehle austauschen oder IRTrans weglassen (beim Einschalten über das WebFront wird immer der primäre Befehl gesendet).


           c_Device_OnkyoMain         => array(
                c_Property_Name             => 'OnkyoMain',
                c_Control_DevicePower         => array(
                    c_Property_Name             => 'Power',
                    c_Property_ConnectSocket    => c_Comm_Onkyo,
                    c_Property_CommPowerOn        => array(c_Comm_Onkyo, 'PWR', '01'),
                    c_Property_CommPowerOff    => array(c_Comm_Onkyo, 'PWR', '00'),

Hallo,

um auch zu reagieren. Vielen Dank! :slight_smile:

Hallo Gemeinde,

ich habe einen Yamaha a3010 Receiver . Den würde ich jetzt gerne mit IPS Steuern , ich hab versucht das Wiki zu verstehen, doch leider fehlt mir das das passende Licht :slight_smile: … Das Installieren habe ich , denk ich , hinbekommen, über die WF Installation ging es nicht , so habe ich das aus dem ersten Post genommen und komme nun nicht weiter, weil ich nicht weiß wo ich zb. die IP meines AV eintragen soll .

Könnt ihr mir den schupps in die richtige Richtung geben ?

Grüße aus Magdeburg

Hi,

… die Entertainment Steuerung ist eher „schwere Kost“!

Einen Schubs kann ich Dir aber auf jeden Fall geben:

Config sieht bei mir so aus:


			c_Comm_Onkyo => array (
				c_Property_ScriptSnd 			=> 'Entertainment_InterfaceOnkyoSnd.inc.php',
				c_Property_ScriptRcv  			=> 'Entertainment_InterfaceOnkyoRcv.ips.php',
				c_Property_FunctionSnd 			=> 'Onkyo_SendData',
				c_Property_Register				=> 51379,
				c_Property_Instance				=> 42248,
				c_Property_IPAddress			=> '192.168.0.12',
				c_Property_Timeout				=> 30,
			),

Die Scripts Entertainment_InterfaceOnkyoSnd.inc.php und Entertainment_InterfaceOnkyoRcv.ips.php mußt Du entsprechend Deines Protokolles abändern.

Und natürlich die Befehle in der Device Konfiguration anpassen…

Moin,

habe jetzt auch einmal versucht, Entertainment zu installieren, dabei tauchen aber ein paar fehler auf:


Warning: include_once(IPSLogger.ips.php): failed to open stream: No such file or directory in C:\haussteuerung\IP-Symcon\scripts\Entertainment_Control.ips.php on line 2

Warning: include_once(): Failed opening ‚IPSLogger.ips.php‘ for inclusion (include_path=’.;C:\php\pear’) in C:\haussteuerung\IP-Symcon\scripts\Entertainment_Control.ips.php on line 2
— Add Scripts ------------------------------------------------------------------------
— Create Roomes and Controls ---------------------------------------------------------
Created VariableId Volume=26882

Warning: Cannot auto-convert to Integer from Variant. Error: Could not convert variant of type (Null) into type (Integer) in C:\haussteuerung\IP-Symcon\scripts\IPSInstaller.ips.php on line 427
Created VariableId Source=29165

Warning: Cannot auto-convert to String from Variant. Error: Could not convert variant of type (Null) into type (String) in C:\haussteuerung\IP-Symcon\scripts\IPSInstaller.ips.php on line 427
Created VariableId Source Control=55065

Warning: Cannot auto-convert to String from Variant. Error: Could not convert variant of type (Null) into type (String) in C:\haussteuerung\IP-Symcon\scripts\IPSInstaller.ips.php on line 427
Created VariableId Remote iPhone=52296

Warning: Cannot auto-convert to Integer from Variant. Error: Could not convert variant of type (Null) into type (Integer) in C:\haussteuerung\IP-Symcon\scripts\IPSInstaller.ips.php on line 427
Created VariableId Listening Mode=14097
Created Category Sauna=51879

Warning: Cannot auto-convert to Boolean from Variant. Error: Could not convert variant of type (Null) into type (Boolean) in C:\haussteuerung\IP-Symcon\scripts\IPSInstaller.ips.php on line 427
Created VariableId Power=51719

Warning: Cannot auto-convert to Boolean from Variant. Error: Could not convert variant of type (Null) into type (Boolean) in C:\haussteuerung\IP-Symcon\scripts\IPSInstaller.ips.php on line 427
Created VariableId Mute=50045
Created VariableId Volume=23970

Warning: Cannot auto-convert to Integer from Variant. Error: Could not convert variant of type (Null) into type (Integer) in C:\haussteuerung\IP-Symcon\scripts\IPSInstaller.ips.php on line 427
Created VariableId Source=50608

Warning: Cannot auto-convert to String from Variant. Error: Could not convert variant of type (Null) into type (String) in C:\haussteuerung\IP-Symcon\scripts\IPSInstaller.ips.php on line 427
Created VariableId Source Control=12062
Abort Processing during exceed of maximal ErrorCount: Cannot auto-convert to String from Variant. Error: Could not convert variant of type (Null) into type (String)
Error in Script C:\haussteuerung\IP-Symcon\scripts\IPSInstaller.ips.php on Line 427

Ein Fehler scheint folgender zu sein:
Unter c:\haussteuerung\ip-symcon\scripts\ gibt es die Datei IPSLogger.ips.php nicht

aber der IPS Logger ist installiert und läuft, wo finde ich denn das script?

Danke für die Hilfe…

Gruß Björn

und des weiteren wird die IPSInstaller.ips.php angemerkt, diese hatte ich vorher schon und die war wesentlich größer, als diese Datei, di im Entertainment zip Paket dabei war, daher hatte ich meine behalten, muss ich die vielleicht zusammenführen oder sowas??

DAnke nochmal…

Gruß Björn

Du hast wohl den Baseloader (suchen) nicht ausgeführt

Gruß
Bruno

Moin Moin,

da ich gerade erst mit IPS angefangen habe, verzeih meine Frage, aber wie oder wo starte ich den denn??? Muss ich den denn regelmäßig starten??

DAnke und Gruß

Gut, die Forensuche bringt nix, Google dafür sofort :wink:

http://www.ip-symcon.de/wiki/BaseLoader

ertsmal für den Tip, das script hatte ich schonmal ausgeführt, dabei wurde ja alles installiert und gemacht (ausser das keine IPSLogger.ips.php angelegt wird, ich finde die jedenfalls nirgends!!!)

Habe soeben noch einmal das BaseLoaderscript ausgeführt, keine Veränderung.

Frage @Powerfreddy :

„Du hast wohl den Baseloader (suchen) nicht ausgeführt:“ muss ich das regelmäßig machen? was bedeutet (suchen)?
Ich komm nicht recht weiter, wie es scheint ohne die Datei. IPSLogger.ips.php

Frage @all:

Und wie ist das denn nun mit der IPSInstaller.ips.php?? muss ich meine behalten (ist wesentlich größer als die, die dabei war) oder muss ich beide irgendwie zusammen führen??

DAnke