Generic Denon / Marantz python plugin

Python and python framework

Moderator: leecollings

nixalsschrott
Posts: 39
Joined: Tuesday 11 July 2017 10:26
Target OS: NAS (Synology & others)
Domoticz version: 2020.2
Location: Germany
Contact:

Re: Generic Denon / Marantz python plugin

Post by nixalsschrott »

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
THNKs.
Working for me too on v3.8153 stable running on Synology NAS with DENON X1400H (script version="2.6.2"). I only do not get any selector switch for the sources.
Tried several scripts and versions before, but nothing worked. Seems to be pretty dependend from Domoticz version which script is running.
Kind regards

// EDIT: After some time running, the script causes problems and Domoticz shutting down. With active plugin restart of Domoticz is not possible. After removing the script Domoticz starting again. Strange. Therefore still searching for correct version.
Domoticz Beta | Aeon Labs Z-Wave USB Stick Gen5 | Cyrus SmartHome 4-in-1 Multisensor | Qubino ZMNHCD1 - Roller Shutter | NEO COOLCAM NAS-WR01ZE Power Plug | Fibaro FGRGB-101 | WEMOS D1 MINI (ESP8266) Sensors CO2/TEMP/BARO |
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Generic Denon / Marantz python plugin

Post by gielie »

nixalsschrott wrote: Tuesday 30 January 2018 8:50
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
THNKs.
Working for me too on v3.8153 stable running on Synology NAS with DENON X1400H (script version="2.6.2"). I only do not get any selector switch for the sources.
Tried several scripts and versions before, but nothing worked. Seems to be pretty dependend from Domoticz version which script is running.
Kind regards

// EDIT: After some time running, the script causes problems and Domoticz shutting down. With active plugin restart of Domoticz is not possible. After removing the script Domoticz starting again. Strange. Therefore still searching for correct version.
You should use the latest plugin, https://github.com/dnpwwo/Domoticz-Deno ... /plugin.py 3.2
This one works great with my 2400H.
I only won't get my internet radio working, does someone know were i can find the selector preset options?
Like i used to own a 2100 and the code for internet radio was Iradio but for my 2400 this does not work, what are all the codes i can use in the selector?
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
BCrippsy38
Posts: 7
Joined: Friday 11 August 2017 17:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8833
Contact:

Re: Generic Denon / Marantz python plugin

Post by BCrippsy38 »

is there a HEOS code for the source list?
BCrippsy38
Posts: 7
Joined: Friday 11 August 2017 17:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8833
Contact:

Re: Generic Denon / Marantz python plugin

Post by BCrippsy38 »

Having trouble getting the script working with my AVR-S930H. What should be put in the "Discovery Field"? I left it as SDKClass=Receiver and can control the Main zone volume but the source selector doesn't work. Zone 2 turns on when I try to select a Main zone source but the source doesn't change.
nixalsschrott
Posts: 39
Joined: Tuesday 11 July 2017 10:26
Target OS: NAS (Synology & others)
Domoticz version: 2020.2
Location: Germany
Contact:

Re: Generic Denon / Marantz python plugin

Post by nixalsschrott »

BCrippsy38 wrote: Friday 09 February 2018 2:32 Having trouble getting the script working with my AVR-S930H. What should be put in the "Discovery Field"? I left it as SDKClass=Receiver and can control the Main zone volume but the source selector doesn't work. Zone 2 turns on when I try to select a Main zone source but the source doesn't change.
Did you find a solution? Perhaps it is due to incorrect naming for the sources? Where do I find the correct naming for the sources?
After updating to latest Beta and using latest scrip from github the script is running well, but with exception of the selector switch.
Domoticz Beta | Aeon Labs Z-Wave USB Stick Gen5 | Cyrus SmartHome 4-in-1 Multisensor | Qubino ZMNHCD1 - Roller Shutter | NEO COOLCAM NAS-WR01ZE Power Plug | Fibaro FGRGB-101 | WEMOS D1 MINI (ESP8266) Sensors CO2/TEMP/BARO |
BCrippsy38
Posts: 7
Joined: Friday 11 August 2017 17:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8833
Contact:

Re: Generic Denon / Marantz python plugin

Post by BCrippsy38 »

nixalsschrott wrote: Friday 23 February 2018 15:09
BCrippsy38 wrote: Friday 09 February 2018 2:32 Having trouble getting the script working with my AVR-S930H. What should be put in the "Discovery Field"? I left it as SDKClass=Receiver and can control the Main zone volume but the source selector doesn't work. Zone 2 turns on when I try to select a Main zone source but the source doesn't change.
Did you find a solution? Perhaps it is due to incorrect naming for the sources? Where do I find the correct naming for the sources?
After updating to latest Beta and using latest scrip from github the script is running well, but with exception of the selector switch.
Yes actually I got it working last night, the actual source names are in the protocol sheet in the download section.
https://usa.denon.com/us/product/hometh ... s/avrs930h

My source string is: Off|DVD|BD|TV|SAT/CBL|MPLAY|GAME|TUNER|NET
Heos is the 'NET' source.

Now my only issue is getting the HEOS plugin working, looks like there's a known bug but not sure if it has been fixed.
nixalsschrott
Posts: 39
Joined: Tuesday 11 July 2017 10:26
Target OS: NAS (Synology & others)
Domoticz version: 2020.2
Location: Germany
Contact:

Re: Generic Denon / Marantz python plugin

Post by nixalsschrott »

OK. Finally found the correct values. I can now switch the source and changes are also reflected in Domoticz. But nevertheless it still switches zone 2 on, when changing source input in Domoticz.
Domoticz Beta | Aeon Labs Z-Wave USB Stick Gen5 | Cyrus SmartHome 4-in-1 Multisensor | Qubino ZMNHCD1 - Roller Shutter | NEO COOLCAM NAS-WR01ZE Power Plug | Fibaro FGRGB-101 | WEMOS D1 MINI (ESP8266) Sensors CO2/TEMP/BARO |
BCrippsy38
Posts: 7
Joined: Friday 11 August 2017 17:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8833
Contact:

Re: Generic Denon / Marantz python plugin

Post by BCrippsy38 »

nixalsschrott wrote: Saturday 24 February 2018 7:56 OK. Finally found the correct values. I can now switch the source and changes are also reflected in Domoticz. But nevertheless it still switches zone 2 on, when changing source input in Domoticz.
When you create the device hardware try turning auto-detect off, leave discovery match blank and just fill in your static IP. worked for me with my S930H
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Generic Denon / Marantz python plugin

Post by Dnpwwo »

Changing Auto-detect (or Discovery Mode) does not affect how the plugin function. It just controls how the amplifier is found.
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
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Generic Denon / Marantz python plugin

Post by simon_rb »

Is this working with the new stable? I had it installed and after updating it doesn't work anymore? If it does I'll try and find whats wrong with my system.

Many Thanks
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Generic Denon / Marantz python plugin

Post by Dnpwwo »

@simon_rb,

Works on the current beta so should work on the latest stable. Key questions:
  • What platform are you on
  • What version of Python
  • What version of the plugin are you using
  • Can you turn on debug logging and post the log
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
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Generic Denon / Marantz python plugin

Post by simon_rb »

Dnpwwo wrote: Saturday 30 June 2018 11:12 @simon_rb,

Works on the current beta so should work on the latest stable. Key questions:
  • What platform are you on
  • What version of Python
  • What version of the plugin are you using
  • Can you turn on debug logging and post the log
Thanks, I think it maybe an older version. I set it up a few months ago.. I'm out now. I shall post above once back.

I know I'm on Raspberry Pi running Python 3.4

Thanks for the quick reply!

Quick update. Logged in remotely to Pi and tried to run Git Pull and get fatal: Not a git repository (or any of the parent directories): .git. So I rang git init then git pull with url.. I'll let you know how it goes

No idea how I installed it! lol
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Generic Denon / Marantz python plugin

Post by simon_rb »

I think its an issue with my python maybe as removed old Denon Plugin which was 2.6.2 and installed the latest. This doesn't have errors from what I've seen but it hasn't made any new devices to add.

Can Ii update python to 3.6 maybe? Would that work?

Many Thanks
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Generic Denon / Marantz python plugin

Post by Dnpwwo »

@simon_rb,

I would recommend staying with the version of Python 3 that comes with your version of Linux. Python 3.4 & 3.5 work well as long as your are on a recent beta (or new stable). Python 3.5 had a linking issue with open ssl until recently but now resolved.

The version I support is here: https://github.com/dnpwwo/Domoticz-Denon-Plugin which still works and is an version 3.2.3, make sure you take a copy of your current one in case you want to go back. This version should auto discover your amplifier which is good if you don't have a static IP address on it.
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
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Generic Denon / Marantz python plugin

Post by simon_rb »

After removing the old version, installing the new I have managed to get it all working!

Super super thanks! Fancy looking at the Sony Bravia plugin for us :lol: :lol: :lol:
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Generic Denon / Marantz python plugin

Post by gielie »

I have used this plugin for a while but after the latest beta it’s corrupting my whole system with a segmentation fault. Somebody got a clue what is happening?
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Generic Denon / Marantz python plugin

Post by Dnpwwo »

What version are you running?
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
tomdh76
Posts: 20
Joined: Saturday 09 September 2017 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Generic Denon / Marantz python plugin

Post by tomdh76 »

Thx for this plugin it works great (using latest version). I have only one problem (I see it described before in posts but no solution as far as I can see): if I turn the power on all my 2 zones are powered on while I would like to have only the main zone turned on.
Droombox
Posts: 4
Joined: Friday 28 September 2018 13:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Generic Denon / Marantz python plugin

Post by Droombox »

Dnpwwo wrote: Friday 20 July 2018 8:01 What version are you running?
I have also troubles to get the plugin working. I use domoticz V4.9700 on a PI 2. I think the trouble is Python when i use Phyton -v it returns Python 2.7.13 . :roll: I know this is a wrong version so i used this site to get it upgraded. http://www.ramoonus.nl/2018/06/30/insta ... pberry-pi/
But without any luck still Phyton -v returns 2.7.13. Can you please help me with the Python?

Best regards,
Droombox
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Generic Denon / Marantz python plugin

Post by Dnpwwo »

@Droombox,

Python -v will always call Python 2.x

Try Python3 -v to see what Python version is installed.

More importantly look at the Domoticz log on start up to see if it has picked up a version it can use.
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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest