Generic Denon / Marantz python plugin

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

Re: Generic Denon / Marantz python plugin

Post by nixalsschrott » Tuesday 30 January 2018 9: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.
Domoticz Beta v3.9317 for DSM 6.1 | Aeon Labs Z-Wave USB Stick | Cyrus SmartHome 4-in-1 Multisensor | Qubino ZMNHCD1 - Roller Shutter | NEO COOLCAM NAS-WR01ZE Power Plug | WEMOS D1 MINI (ESP8266) Sensors CO2/TEMP/BARO | Denon AVR

User avatar
gielie
Posts: 239
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 » Tuesday 30 January 2018 15:01

nixalsschrott wrote:
Tuesday 30 January 2018 9: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?
- 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

BCrippsy38
Posts: 12
Joined: Friday 11 August 2017 17:15
Target OS: Raspberry Pi
Domoticz version: 3.8833
Contact:

Re: Generic Denon / Marantz python plugin

Post by BCrippsy38 » Thursday 08 February 2018 2:28

is there a HEOS code for the source list?

BCrippsy38
Posts: 12
Joined: Friday 11 August 2017 17:15
Target OS: Raspberry Pi
Domoticz version: 3.8833
Contact:

Re: Generic Denon / Marantz python plugin

Post by BCrippsy38 » Friday 09 February 2018 3: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.

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

Re: Generic Denon / Marantz python plugin

Post by nixalsschrott » Friday 23 February 2018 16:09

BCrippsy38 wrote:
Friday 09 February 2018 3: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 v3.9317 for DSM 6.1 | Aeon Labs Z-Wave USB Stick | Cyrus SmartHome 4-in-1 Multisensor | Qubino ZMNHCD1 - Roller Shutter | NEO COOLCAM NAS-WR01ZE Power Plug | WEMOS D1 MINI (ESP8266) Sensors CO2/TEMP/BARO | Denon AVR

BCrippsy38
Posts: 12
Joined: Friday 11 August 2017 17:15
Target OS: Raspberry Pi
Domoticz version: 3.8833
Contact:

Re: Generic Denon / Marantz python plugin

Post by BCrippsy38 » Friday 23 February 2018 17:04

nixalsschrott wrote:
Friday 23 February 2018 16:09
BCrippsy38 wrote:
Friday 09 February 2018 3: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: beta
Location: Germany
Contact:

Re: Generic Denon / Marantz python plugin

Post by nixalsschrott » Saturday 24 February 2018 8: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.
Domoticz Beta v3.9317 for DSM 6.1 | Aeon Labs Z-Wave USB Stick | Cyrus SmartHome 4-in-1 Multisensor | Qubino ZMNHCD1 - Roller Shutter | NEO COOLCAM NAS-WR01ZE Power Plug | WEMOS D1 MINI (ESP8266) Sensors CO2/TEMP/BARO | Denon AVR

BCrippsy38
Posts: 12
Joined: Friday 11 August 2017 17:15
Target OS: Raspberry Pi
Domoticz version: 3.8833
Contact:

Re: Generic Denon / Marantz python plugin

Post by BCrippsy38 » Saturday 24 February 2018 20:18

nixalsschrott wrote:
Saturday 24 February 2018 8: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: 767
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 » Friday 02 March 2018 8:09

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: 711
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 30 June 2018 11:06

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: 767
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 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
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: 711
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 30 June 2018 11:39

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: 711
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 30 June 2018 12:37

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: 767
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 » Sunday 01 July 2018 3:37

@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: 711
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: Generic Denon / Marantz python plugin

Post by simon_rb » Wednesday 04 July 2018 21:24

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: 239
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 » Friday 20 July 2018 7:43

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?
- 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

User avatar
Dnpwwo
Posts: 767
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 » Friday 20 July 2018 8:01

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: 26
Joined: Saturday 09 September 2017 19:27
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Generic Denon / Marantz python plugin

Post by tomdh76 » Thursday 27 September 2018 10:49

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: 1
Joined: Friday 28 September 2018 13:23
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Generic Denon / Marantz python plugin

Post by Droombox » Friday 28 September 2018 13:42

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: 767
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 » Sunday 30 September 2018 9:23

@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