Page 3 of 7
Re: Generic Denon / Marantz python plugin
Posted: Monday 22 May 2017 9:47
by italoc
i'm trying to use this plugin width latest beta of domoticz, but in hardware if i select DENON plugin i can't add the hardware, i obtain this error
" Do not enable this option for devices that do not receive data! "
any ideas?
Re: Generic Denon / Marantz python plugin
Posted: Tuesday 23 May 2017 13:10
by Andyyyy
Hello rjblake,
i found the problem for me in your code....marked in red
rjblake wrote:
# Changed for Denon AVR-X2300W
<param field="Mode3" label="Sources" width="550px" required="true" default="Off|SAT/CBL|DVD|BD|GAME|AUX1|MPLAY|TV|AUX2|TUNER|USB/IPOD|CD|BT|IRP|FVP”/>
<param field="Mode6" label="Debug" width="75px">
<options>
<option label="True" value="Debug"/>
<option label="False" value="Normal" default="true" />
</options>
</param>
</params>
</plugin>
"""
THX, Andyyyy
Re: Generic Denon / Marantz python plugin
Posted: Wednesday 24 May 2017 0:26
by rjblake
Andyyyy - glad you found it - was going to suggest using the standard script as opposed to mine. Can't see any red text, so not sure what was different?
Re: Generic Denon / Marantz python plugin
Posted: Wednesday 24 May 2017 10:11
by Andyyyy
Hi,
it is the last quote mark in the Sources section.

- snip.PNG (6.93 KiB) Viewed 6397 times
Andyyyy
Re: Generic Denon / Marantz python plugin
Posted: Thursday 25 May 2017 10:50
by elgringo
Plugin works great!
I have a Marantz SR5009. When I enable it via the amin zone selction from 'Off' to 'Tuner', both the main zone and zone will enabled and switch to tuner.
Is this a bug?
And is it possible to disable zone2?
EDIT: I rewrote the plugin only for Zone 1
Re: Generic Denon / Marantz python plugin
Posted: Monday 05 June 2017 13:09
by gielie
After the latest beta update and the changes they made in python the Denon plugin doesn't work anymore.
Does someone have a solution to make the plugin working again?
Re: Generic Denon / Marantz python plugin
Posted: Tuesday 13 June 2017 15:13
by rjblake
Andyyyy wrote:Hi,
it is the last quote mark in the Sources section.
snip.PNG
Andyyyy
Ah - damn the different types of "''s ...and being colourblind! I've corrected in my earlier post in case anyone else just does a copy/paste.
Re: Generic Denon / Marantz python plugin
Posted: Tuesday 13 June 2017 15:14
by rjblake
gielie wrote:After the latest beta update and the changes they made in python the Denon plugin doesn't work anymore.
Does someone have a solution to make the plugin working again?
Have not updated my Domoticz for a few weeks. Will look into it. I know there was/is a change planned to the Python plugin and how it is being handled. This is documented here
https://www.domoticz.com/forum/viewtopi ... 95#p134695. Also, there was an issue with Python not starting with one of the recent beta versions, so this may be related and fixed in a later beta version.
Re: Generic Denon / Marantz python plugin
Posted: Sunday 18 June 2017 0:28
by Thunderbolt
After trying to find the reason why Domoticz is crashing randomly, I found the reason in the denon plugin.
When it's activated, domoticz is crashing randomly a few times a day. I activated the log and found something, but I don't know what it means.
Maybe someone of you can help me.
Domoticz Version: 3.7976
Python version '3.4.2'
plugin key="Denon4306" version="2.5.4"
Here are the last enries in the log:
2017-06-17 23:52:11.176 (RFXtrx) Temp (Unknown)
2017-06-17 23:52:19.269 Hardware Monitor: Fetching data (System sensors)
2017-06-17 23:52:19.285 (X3300) Calling message handler 'onHeartbeat'.
2017-06-17 23:52:19.286 (X3300) onHeartbeat: self.lastMessage PW, Sending 'ZM'.
2017-06-17 23:52:19.286 (X3300) Sending 4 bytes of data:.
2017-06-17 23:52:19.286 Error: Domoticz received fatal signal 11 !...
2017-06-17 23:52:19.287 (X3300) 5a 4d 3f 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ZM?.
2017-06-17 23:52:19.292 Error: /home/pi/domoticz/domoticz() [0x1cca74]
2017-06-17 23:52:19.292 Error: /home/pi/domoticz/domoticz(_Z14signal_handleri+0x58) [0x1ccb2c]
2017-06-17 23:52:19.292 Error: /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76a8f180]
Re: Generic Denon / Marantz python plugin
Posted: Friday 14 July 2017 23:52
by lbuijk
italoc wrote:i'm trying to use this plugin width latest beta of domoticz, but in hardware if i select DENON plugin i can't add the hardware, i obtain this error
" Do not enable this option for devices that do not receive data! "
any ideas?
Did you get a solution? I have the same problem....
(Domoticz 3.8072)
Re: Generic Denon / Marantz python plugin
Posted: Saturday 12 August 2017 12:30
by simon_rb
Whats the correct way of loading this plugin? Can't quite workout on after reading through this thread. I have tried various methods all resulting with many errors.
Cheers
Re: Generic Denon / Marantz python plugin
Posted: Saturday 12 August 2017 23:32
by G3rard
@simon_rb, I use the attached plugin with Domoticz v3.8153 stable.
Just remove _.txt from the filename, I couldn't upload it otherwise.
Re: Generic Denon / Marantz python plugin
Posted: Sunday 13 August 2017 1:13
by simon_rb
G3rard wrote: Saturday 12 August 2017 23:32
@simon_rb, I use the attached plugin with Domoticz v3.8153 stable.
Just remove _.txt from the filename, I couldn't upload it otherwise.
plugin.py_.txt
Cheers G3rard.. Come to my rescue again!
Working now

Re: Generic Denon / Marantz python plugin
Posted: Saturday 02 September 2017 12:11
by madiep
I'm kinda new to this all, but I have a set-up that's working for me now. Last thing I wanted to add is this plugin, which is my first plugin. Can't seem to get it work though.
I'm running:
- Pi Zero +W
- Raspbian Stretch
- Python v3.5.3-1
- Domoticz V3.8153
I created a folder denon in the plugins folder, then I created a file called plugin.py with nano and pasted the contents of the txt file above in it. I used sudo chmod 775 to give it the appropriate permissions. Then restarted domoticz.
The error I am seeing in the log is:
Code: Select all
Error: PluginList: Parsing '/home/pi/domoticz/plugins/denon/', 'Error document empty.' at line 0 column 0 in XML
What am I missing?
Re: Generic Denon / Marantz python plugin
Posted: Saturday 02 September 2017 12:24
by Dnpwwo
@madiep,
There are a few versions of this plugin floating around so you need to be more specific.
There is an example that ships with Domoticz under /plugins/examples but there are others as well. If you are running a current beta there is one i the 'python-enabled' branch that will auto-discovery the receiver for you. For most you need to specifiy a fixed IP address.
If you post where you got the plugin file (and the version number from inside the file) from and what make/model of receiver you have that will help.
Re: Generic Denon / Marantz python plugin
Posted: Saturday 02 September 2017 13:59
by madiep
Txs for your help. I was talking about this one:
G3rard wrote: Saturday 12 August 2017 23:32
@simon_rb, I use the attached plugin with Domoticz v3.8153 stable.
Just remove _.txt from the filename, I couldn't upload it otherwise.
download/file.php?id=12388
I think I just fixed it by removing the three quotation marks in the first uncommented line. So the plugin is now loading fine, and I am able to add my receiver in the hardware menu.
The next issue I am having is finding devices. The log shows me some errors:
Code: Select all
2017-09-02 14:27:16.494 Error: (Denon) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/denon/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2017-09-02 14:27:16.494 Error: (Denon) Module Import failed, exception: 'SyntaxError'
2017-09-02 14:27:16.494 Error: (Denon) Import detail: File: /home/pi/domoticz/plugins/denon/plugin.py, Line: -1351624480, offset: 10
2017-09-02 14:27:16.494 Error: (Denon) Error Line ''
2017-09-02 14:28:30.227 Error: Denon hardware (2) thread seems to have ended unexpectedly
Re: Generic Denon / Marantz python plugin
Posted: Sunday 24 September 2017 20:56
by simon_rb
Looking at upgrading my Denon to the X4300 as its last years model an going cheaper. I assume this plugin will not work as I think the http stuff has been removed from the 4300 & 6300 amps. I currently control mine using TEL NET and I think thats still working.. I think. Just wondered if anyone on here has had success with the X4300?
Cheers
Re: Generic Denon / Marantz python plugin
Posted: Friday 26 January 2018 7:52
by nixalsschrott
Dear friends,
what’s about the latest 2017 series from Denon, eg x1400H - are the latest models still supported? I have tried with the Telnet script, but do not get any response from Receiver, when changing values through remote control. Actually I am not able to install the generic script, because I get error - script is not starting and Receiver does not show up in hardware selection.
Kind regards
Matty
Re: Generic Denon / Marantz python plugin
Posted: Friday 26 January 2018 10:20
by LouiS22
nixalsschrott wrote: Friday 26 January 2018 7:52
Dear friends,
what’s about the latest 2017 series from Denon, eg x1400H - are the latest models still supported? I have tried with the Telnet script, but do not get any response from Receiver, when changing values through remote control. Actually I am not able to install the generic script, because I get error - script is not starting and Receiver does not show up in hardware selection.
Kind regards
Matty
Works fine for me, I also own x1400H. To tell the truth I don't recall which plugin was the correct one, but gonna upload it once I get home.
Re: Generic Denon / Marantz python plugin
Posted: Friday 26 January 2018 16:54
by nixalsschrott
Super. Thanks I’m advance. What Domoticz version you are using actually? I am on latest stable.