I've seen that the issue does not occur on versions of Domoticz you compile yourself. I've confirmed this myself as have others. So for now, compiling Domoticz from source yourself seems to be the solution.
Regards,
Jorg
So, hopefully it is a minor issue, that can be resolved. I'll wait patiently, since I never compiled Domoticz myself.
My beta version of getting stale though after so many weeks of not updating
I've updated the plugin code on github for the new connection object. This means it works with the newer Domoticz builds.
There is an issue with the RPi binary builds that causes crashes for a lot of plugins, other builds should work fine.
If you compile Domoticz from source on the RPi the crashes do not seem to occur.
The updated code, also contains the adding of new listening modes on first detection. The mode is added with the following name:
[xy] New
Where xy is the code used by the receiver. You can replace 'New' with the proper name of the listening mode, as long as '[xy]' is left untouched all should work fine.
I'm running Domoticz 3.8025 on my Synology NAS DSM6.1.
I'm added the Onko Plugin. When starten up I can see a lot of data in de logging.
But when I look into the Devices I can see only 3:
Onkyo Zone 2 power
Onkyo Master Volume
Onkyo power.
I added these 3 switches but I'm not able to see/find/add a switch as a selector for example the SLI selector (input selector like FM).
The plugin should check the existence of all devices on startup and create them if they do not exist. This is logged by the plugin, you should have something like:
2017-07-24 08:23:36.223 (Onkyo) Initialized version 0.2.0, author 'jorgh'
2017-07-24 08:23:47.734 (Onkyo) Receiver found:
2017-07-24 08:23:47.735 (Onkyo) Type: AV Receiver or Stereo Receiver
2017-07-24 08:23:47.736 (Onkyo) Type: TX-NR646
2017-07-24 08:23:47.736 (Onkyo) Region: European or Asian model
2017-07-24 08:23:47.737 (Onkyo) IP adress: 192.168.0.106
2017-07-24 08:23:47.737 (Onkyo) eISCP port: 60128
2017-07-24 08:23:47.738 (Onkyo) MAC: 0009B0D9C335
2017-07-24 08:23:47.741 PluginSystem: Starting I/O service thread.
2017-07-24 08:23:49.748 (Onkyo) Loading XML from file
2017-07-24 08:23:49.762 (Onkyo) Checking if Devices exist
2017-07-24 08:23:49.763 (Onkyo) Checking Main zone
2017-07-24 08:23:49.764 (Onkyo) Receiver main power device exists
2017-07-24 08:23:49.764 (Onkyo) Receiver input selector device exists
2017-07-24 08:23:49.765 (Onkyo) Receiver listening mode selector device exists
2017-07-24 08:23:49.766 (Onkyo) Receiver Tuner preset selector device exists
2017-07-24 08:23:49.766 (Onkyo) Receiver volume control device exists
2017-07-24 08:23:49.767 (Onkyo) Checking Zone 2
2017-07-24 08:23:49.768 (Onkyo) Receiver Zone 2 power device exists
2017-07-24 08:23:49.769 (Onkyo) Receiver input selector Zone 2 device exists
2017-07-24 08:23:49.769 (Onkyo) Receiver volume control device exists
2017-07-24 08:23:49.975 (Onkyo) Received XML
2017-07-24 08:23:50.130 (Onkyo) Update 0:'Off' (Onkyo - TX-NR646 Main Power)
2017-07-24 08:23:51.135 (Onkyo) Volume: 52
2017-07-24 08:23:51.136 (Onkyo) Update 2:'52' (Onkyo - TX-NR646 Main Volume)
2017-07-24 08:23:52.103 (Onkyo) Current Source: PC
2017-07-24 08:23:54.143 (Onkyo) Update 0:'Off' (Onkyo - TX-NR646 Zone2 Power)
2017-07-24 08:23:56.102 (Onkyo) Zone 2 Current Source: FM
If you enable debug, more detailed log information is recorded. So for now, try checking the log to see what is happening. The easiest way to restart the plugin is to select it in Hardware and press update.
Domoticz contains plugin support, but the plugins are not included. You need to download the plugin.py and put it within it's own folder within the plugin directory.
I've got the plugin.py on my Raspberry Pi in: /home/pi/domoticz/plugins/onkyo
I placed your plugin.py (renamed to Onkyo.py) into the folder:
/usr/local/domoticz/var/plugins/ (Path within Synology) and gave file correct permissions.
I restarted Domoticz but without an luck. The plugin is not visible.
I think I need to update Domoticz to the Domoticz version incl. Python......
I contacted Jorn (Jadahl.com) and I need the Domoticz release with Python plugin.
I now wait on the correct release because I otherwise need to downgrade (reinstall) Domoticz.
Thanks to Jorn (Jadahl.com) I have a new relase of Domoticz now which has Python Plugin.
I can now see in the hardware "Onkyo AV Receiver".
I added this as hardware, immediatly I see that hardware is Added and devices are created.
when looking at the devices nothing has been created.
In the logging I see this:
2017-07-25 15:37:39.972 (Onkyo AV Receiver) Loading XML from file
2017-07-25 15:37:39.972 (Onkyo AV Receiver) XML file does not yet exist
2017-07-25 15:37:42.003 (Onkyo AV Receiver) Loading XML from file
2017-07-25 15:37:42.004 (Onkyo AV Receiver) XML file does not yet exist
2017-07-25 15:37:44.031 (Onkyo AV Receiver) Loading XML from file
2017-07-25 15:37:44.032 (Onkyo AV Receiver) XML file does not yet exist
2017-07-25 15:37:46.011 (Onkyo AV Receiver) Loading XML from file
2017-07-25 15:37:46.011 (Onkyo AV Receiver) XML file does not yet exist
That is probably because your receiver does not support the NRI command. I use this command to fetch the receivers configuration and it delivers the amount of zones, available inputs, radio presets and supported listening modes in XML format. This is used, to create the switches and fill them with the appropriate information.
For now, without this information the plugin will not work. I'm planning on adding support for receivers that do not support this command, but it's not in the current version.
I've copied the script to the plugin directory on my RaspPi and I can select the "Onkyo AV Receiver" from the pull-down menu in the hardware config.
The only problem is that the remote address and port fields are disappearing as soon as I select the plugin. On the LAN version and other network devices these fields are there and working.
Working with V3.8134
I have removed the two Onkyo AV Receiver (LAN) hardware devices that I have.
I started a new one and clicked the Add button but nothing is happening....
Take a look at the log to see what is happening. If it logs 'XML file does not yet exist' a lot, it is because the receiver does not support the NRI command. Otherwise it should reveal what is happening, in that case, post the log so I can have a look at it.
Thanks!
It was some freaking strange caching problem in my browser that caused the problem.
My TX-NR656 was now discovered without a problem.The TX-NR509 probably does not support the NRI command?
Or is the plugin not looking for more devices when an Onkyo is discovered?
elmar wrote:Thanks!
It was some freaking strange caching problem in my browser that caused the problem.
My TX-NR656 was now discovered without a problem.The TX-NR509 probably does not support the NRI command?
Or is the plugin not looking for more devices when an Onkyo is discovered?
Elmar
I currently connects to the device that responds first. I could add support for multiple receivers in the future.