Generic Denon / Marantz python plugin

Python and python framework
italoc
Posts: 28
Joined: Monday 13 February 2017 14:57
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Generic Denon / Marantz python plugin

Post by italoc » Monday 22 May 2017 9:47

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?

Andyyyy
Posts: 41
Joined: Saturday 13 July 2013 23:46
Target OS: -
Domoticz version:
Contact:

Re: Generic Denon / Marantz python plugin

Post by Andyyyy » Tuesday 23 May 2017 13:10

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

rjblake
Posts: 113
Joined: Friday 21 October 2016 9:25
Target OS: NAS (Synology & others)
Domoticz version:
Location: Netherlands
Contact:

Re: Generic Denon / Marantz python plugin

Post by rjblake » Wednesday 24 May 2017 0:26

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?

Andyyyy
Posts: 41
Joined: Saturday 13 July 2013 23:46
Target OS: -
Domoticz version:
Contact:

Re: Generic Denon / Marantz python plugin

Post by Andyyyy » Wednesday 24 May 2017 10:11

Hi,
it is the last quote mark in the Sources section.
snip.PNG
snip.PNG (6.93 KiB) Viewed 1138 times
Andyyyy

elgringo
Posts: 94
Joined: Thursday 18 May 2017 8:08
Target OS: Raspberry Pi
Domoticz version: Left
Contact:

Re: Generic Denon / Marantz python plugin

Post by elgringo » Thursday 25 May 2017 10:50

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
Last edited by elgringo on Wednesday 07 June 2017 7:18, edited 1 time in total.

User avatar
gielie
Posts: 162
Joined: Tuesday 12 January 2016 12:40
Target OS: Raspberry Pi
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Generic Denon / Marantz python plugin

Post by gielie » Monday 05 June 2017 13:09

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?
- Vision ZU1401 USB Stick
- Aeotec MultiSensor 6
- FIBARO FGS222
- FIBARO FGWPE Wall Plug
- Everspring AN157
- Neo CoolCam Power plug
- Neo CoolCam PIR Sensor
- Popp Smoke Detector
- Toon
- Kodi Media Server

rjblake
Posts: 113
Joined: Friday 21 October 2016 9:25
Target OS: NAS (Synology & others)
Domoticz version:
Location: Netherlands
Contact:

Re: Generic Denon / Marantz python plugin

Post by rjblake » Tuesday 13 June 2017 15:13

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.

rjblake
Posts: 113
Joined: Friday 21 October 2016 9:25
Target OS: NAS (Synology & others)
Domoticz version:
Location: Netherlands
Contact:

Re: Generic Denon / Marantz python plugin

Post by rjblake » Tuesday 13 June 2017 15:14

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.

Thunderbolt
Posts: 12
Joined: Saturday 03 August 2013 12:51
Target OS: -
Domoticz version:
Contact:

Re: Generic Denon / Marantz python plugin

Post by Thunderbolt » Sunday 18 June 2017 0:28

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]

lbuijk
Posts: 1
Joined: Friday 14 July 2017 22:00
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Generic Denon / Marantz python plugin

Post by lbuijk » Friday 14 July 2017 23:52

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)

simon_rb
Posts: 674
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Generic Denon / Marantz python plugin

Post by simon_rb » Saturday 12 August 2017 12:30

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

User avatar
G3rard
Posts: 825
Joined: Wednesday 04 March 2015 23:15
Target OS: Linux
Domoticz version: V3.8153
Location: The Netherlands
Contact:

Re: Generic Denon / Marantz python plugin

Post by G3rard » 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
(19.82 KiB) Downloaded 73 times
Ubuntu Server 14.04 | Domoticz v3.8153 | RFXtrx433E | Z-Wave Aeotec Z-Stick S2
Frontpage | Sonos PHP | Dark th3me | Sony Bravia Python plugin | Sonos Python plugin

simon_rb
Posts: 674
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Generic Denon / Marantz python plugin

Post by simon_rb » Sunday 13 August 2017 1:13

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 :D

madiep
Posts: 2
Joined: Thursday 31 August 2017 13:44
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Generic Denon / Marantz python plugin

Post by madiep » Saturday 02 September 2017 12:11

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?

User avatar
Dnpwwo
Posts: 588
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Generic Denon / Marantz python plugin

Post by Dnpwwo » Saturday 02 September 2017 12:24

@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.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw

madiep
Posts: 2
Joined: Thursday 31 August 2017 13:44
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Generic Denon / Marantz python plugin

Post by madiep » Saturday 02 September 2017 13:59

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

simon_rb
Posts: 674
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Generic Denon / Marantz python plugin

Post by simon_rb » Sunday 24 September 2017 20:56

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest