Generic Denon / Marantz python plugin
Moderator: leecollings
-
- Posts: 1
- Joined: Sunday 14 October 2018 12:49
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Generic Denon / Marantz python plugin
Hi, currently Marantz/Denon plug-in works ok with my Marantz SR5012 but, if I power on my Marantz from domoticz, either main zone and second zone power on.... there’s a way to force only main zone to power on?
Did you have same situation?
Inviato dal mio iPad utilizzando Tapatalk
Did you have same situation?
Inviato dal mio iPad utilizzando Tapatalk
-
- Posts: 7
- Joined: Monday 17 July 2017 10:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Generic Denon / Marantz python plugin
Hi,
Wonder if anyone can help me with a repeated error message below?
Error: (Marantz Amplifier) Telnet has not responded to 10 pings, terminating connection.
Error: (Marantz Amplifier) Disconnected from: 192.168.1.146:23
I have a Melody Stream M-CR510 and most of the time the plugin works fine, however, maybe 1 in 20 it fails. I use it to turn off the amp before lots of other gear and it if fails I get nasty speaker damaging thumps so reliability is important for me.
I'm not sure of the significance of the error message as I'll also see successful connections as below.
2018-12-06 20:23:31.261 Error: (Marantz Amplifier) Telnet has not responded to 10 pings, terminating connection.
2018-12-06 20:23:31.312 Error: (Marantz Amplifier) Disconnected from: 192.168.1.146:23
2018-12-06 20:23:41.325 (Marantz Amplifier) Connected successfully to: 192.168.1.146:23
2018-12-06 20:23:41.387 (Marantz Amplifier) Update 0:'Off' (Marantz Amplifier - Power)
2018-12-06 20:23:41.390 (Marantz Amplifier) Update 0:'0' (Marantz Amplifier - Main Zone)
2018-12-06 20:23:41.401 (Marantz Amplifier) Update 0:'28' (Marantz Amplifier - Main Volume)
Running on a Pi as below
Version: 4.9700
Build Hash: a3a45906
Compile Date: 2018-06-23 15:24:51
dzVents Version: 2.4.6
Python Version: 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 20170124]
Thanks to the developer and any ideas much appreciated.
Wonder if anyone can help me with a repeated error message below?
Error: (Marantz Amplifier) Telnet has not responded to 10 pings, terminating connection.
Error: (Marantz Amplifier) Disconnected from: 192.168.1.146:23
I have a Melody Stream M-CR510 and most of the time the plugin works fine, however, maybe 1 in 20 it fails. I use it to turn off the amp before lots of other gear and it if fails I get nasty speaker damaging thumps so reliability is important for me.
I'm not sure of the significance of the error message as I'll also see successful connections as below.
2018-12-06 20:23:31.261 Error: (Marantz Amplifier) Telnet has not responded to 10 pings, terminating connection.
2018-12-06 20:23:31.312 Error: (Marantz Amplifier) Disconnected from: 192.168.1.146:23
2018-12-06 20:23:41.325 (Marantz Amplifier) Connected successfully to: 192.168.1.146:23
2018-12-06 20:23:41.387 (Marantz Amplifier) Update 0:'Off' (Marantz Amplifier - Power)
2018-12-06 20:23:41.390 (Marantz Amplifier) Update 0:'0' (Marantz Amplifier - Main Zone)
2018-12-06 20:23:41.401 (Marantz Amplifier) Update 0:'28' (Marantz Amplifier - Main Volume)
Running on a Pi as below
Version: 4.9700
Build Hash: a3a45906
Compile Date: 2018-06-23 15:24:51
dzVents Version: 2.4.6
Python Version: 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 20170124]
Thanks to the developer and any ideas much appreciated.
- Dnpwwo
- Posts: 819
- 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
There are a couple of versions of this plugin kicking around.
Can you supply a link to one you are using?
Can you supply a link to one you are using?
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
-
- Posts: 7
- Joined: Monday 17 July 2017 10:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Generic Denon / Marantz python plugin
Firstly thanks for replying. Sorry it's a slow reply from me I'll have to work out how to get notifications on update.
I think the URL was https://github.com/dnpwwo/Domoticz-Denon-Plugin and also if I look at the plugin on the the filesystem it matches the source at github with the line plugin key="Denon4306" version="3.2.5".
If there's anything I can do to troubleshoot I'd be keen to try.
Cheers
Pete
I think the URL was https://github.com/dnpwwo/Domoticz-Denon-Plugin and also if I look at the plugin on the the filesystem it matches the source at github with the line plugin key="Denon4306" version="3.2.5".
If there's anything I can do to troubleshoot I'd be keen to try.
Cheers
Pete
- Dnpwwo
- Posts: 819
- 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
@autopete,
How often does this happen? It looks like a network issue.
If it happens a lot you could turn debugging on to help work out exactly how often much may help pin point the problem.
Every heartbeat (10 seconds) the plugin polls the amplifier for details about status of various components. After receiving no response after 10 heartbeats it disconnects and attempts to reconnect. This gives you a total of around 110 seconds time if the amplifier stops responding before the plugin reconnects.
You could edit the plugin.py file and change line 363 to make the time it waits be less than 10 heartbeats which might make things better but won't address the underlying problem.
How often does this happen? It looks like a network issue.
If it happens a lot you could turn debugging on to help work out exactly how often much may help pin point the problem.
Every heartbeat (10 seconds) the plugin polls the amplifier for details about status of various components. After receiving no response after 10 heartbeats it disconnects and attempts to reconnect. This gives you a total of around 110 seconds time if the amplifier stops responding before the plugin reconnects.
You could edit the plugin.py file and change line 363 to make the time it waits be less than 10 heartbeats which might make things better but won't address the underlying problem.
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
-
- Posts: 7
- Joined: Monday 17 July 2017 10:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Generic Denon / Marantz python plugin
Thanks again for replying.
Yes it happens all the time. I've wired cat 6 cable between the Marantz amp and the Pi executing the plugin with the other problems, maybe its the amp. I've turned on debug and added a trace from the output. If you have time and spot anything odd be great to know.
I'll have a play with self.oustandingPings > 10 and see what happens.
Cheers !
Yes it happens all the time. I've wired cat 6 cable between the Marantz amp and the Pi executing the plugin with the other problems, maybe its the amp. I've turned on debug and added a trace from the output. If you have time and spot anything odd be great to know.
I'll have a play with self.oustandingPings > 10 and see what happens.
Cheers !
- Attachments
-
- marantz-diagnotics.txt
- (12.55 KiB) Downloaded 73 times
- Dnpwwo
- Posts: 819
- 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
@autopete,
I Don't think playing with outstanding pings will make a difference.
My log looks like this:
with debug on while yours has no message handling at all, even though your debug mask has requested it. After connection the plugin goes through a whole bootstrap process to assess the amplifiers capabilities but yours does not.
One difference is that I use network discovery and you don't but that shouldn't matter.
I Don't think playing with outstanding pings will make a difference.
My log looks like this:
Code: Select all
2018-12-11 21:11:44.323 (Denon) Protocol set to: 'Line'.
2018-12-11 21:11:44.323 (Denon) Transport set to: 'TCP/IP', xxx.xxx.xxx.xxx:23.
2018-12-11 21:11:44.323 (Denon) Connect directive received, action initiated successfully.
2018-12-11 21:11:44.374 (Denon) Connected successfully to: xxx.xxx.xxx.xxx:23
2018-12-11 21:11:44.374 (Denon) Sending 4 bytes of data
2018-12-11 21:11:44.374 (Denon) 50 57 3f 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. PW?.
2018-12-11 21:11:44.424 (Denon) Received 10 bytes of data
2018-12-11 21:11:44.425 (Denon) 50 57 53 54 41 4e 44 42 59 0d .. .. .. .. .. .. .. .. .. .. PWSTANDBY.
2018-12-11 21:11:44.425 (Denon) Received 10 bytes of data
2018-12-11 21:11:44.425 (Denon) 53 53 48 44 50 20 4f 46 46 0d .. .. .. .. .. .. .. .. .. .. SSHDP.OFF.
2018-12-11 21:11:44.425 (Denon) onMessage called with Data: 'PWSTANDBY'
2018-12-11 21:11:44.425 ($Denon - Power) Updating device from 0:'Off' to have values 0:'Off'.
2018-12-11 21:11:44.430 (Denon) Update 0:'Off' ($Denon - Power)
2018-12-11 21:11:44.430 (Denon) Updating device from 0:'0' to have values 0:'0'.
2018-12-11 21:11:44.435 (Denon) Update 0:'0' (Denon)
2018-12-11 21:11:44.435 (Denon - Volume) Updating device from 0:'50' to have values 0:'50'.
2018-12-11 21:11:44.449 (Denon) Update 0:'50' (Denon - Volume)
2018-12-11 21:11:44.449 (Denon - Zone 2) Updating device from 0:'0' to have values 0:'0'.
2018-12-11 21:11:44.456 (Denon) Update 0:'0' (Denon - Zone 2)
2018-12-11 21:11:44.456 (Denon - Volume 2) Updating device from 0:'33' to have values 0:'33'.
2018-12-11 21:11:44.460 (Denon) Update 0:'33' (Denon - Volume 2)
2018-12-11 21:11:44.460 (Denon - Zone 3) Updating device from 0:'0' to have values 0:'0'.
2018-12-11 21:11:44.464 (Denon) Update 0:'0' (Denon - Zone 3)
2018-12-11 21:11:44.465 (Denon - Volume 3) Updating device from 0:'43' to have values 0:'43'.
2018-12-11 21:11:44.472 (Denon) Update 0:'43' (Denon - Volume 3)
2018-12-11 21:11:44.472 (Denon) onMessage called with Data: 'SSHDP OFF'
2018-12-11 21:11:44.518 Status: LUA: Device 'Denon' event, status 'Off'.
2018-12-11 21:11:44.537 Status: LUA: Denon event fired on 'Denon', value 'Off', Lounge Kodi state 'Off', Lounge Radio state 'Off'
2018-12-11 21:11:44.576 Status: LUA: Device 'Denon - Volume' event, status 'Off'.
2018-12-11 21:11:44.605 Status: LUA: Device 'Denon - Zone 2' event, status 'Off'.
2018-12-11 21:11:45.025 (Denon) Sending 4 bytes of data
2018-12-11 21:11:45.025 (Denon) 5a 4d 3f 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ZM?.
2018-12-11 21:11:45.075 (Denon) Received 6 bytes of data
2018-12-11 21:11:45.075 (Denon) 5a 4d 4f 46 46 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. ZMOFF.
2018-12-11 21:11:45.076 (Denon) onMessage called with Data: 'ZMOFF'
2018-12-11 21:11:46.028 (Denon) Sending 4 bytes of data
2018-12-11 21:11:46.028 (Denon) 5a 32 3f 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Z2?.
2018-12-11 21:11:46.079 (Denon) Received 6 bytes of data
2018-12-11 21:11:46.079 (Denon) 5a 32 44 56 44 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. Z2DVD.
2018-12-11 21:11:46.079 (Denon) Received 5 bytes of data
2018-12-11 21:11:46.079 (Denon) 5a 32 33 33 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Z233.
2018-12-11 21:11:46.097 (Denon) onMessage called with Data: 'Z2DVD'
2018-12-11 21:11:46.097 (Denon) onMessage called with Data: 'Z233'
2018-12-11 21:11:46.148 (Denon) Received 6 bytes of data
2018-12-11 21:11:46.148 (Denon) 5a 32 4f 46 46 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. Z2OFF.
2018-12-11 21:11:46.148 (Denon) onMessage called with Data: 'Z2OFF'
2018-12-11 21:11:47.049 (Denon) Sending 4 bytes of data
2018-12-11 21:11:47.050 (Denon) 5a 33 3f 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Z3?.
2018-12-11 21:11:47.100 (Denon) Received 6 bytes of data
2018-12-11 21:11:47.100 (Denon) 5a 33 44 56 44 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. Z3DVD.
2018-12-11 21:11:47.100 (Denon) Received 5 bytes of data
2018-12-11 21:11:47.100 (Denon) 5a 33 34 33 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Z343.
2018-12-11 21:11:47.100 (Denon) onMessage called with Data: 'Z3DVD'
2018-12-11 21:11:47.100 (Denon) onMessage called with Data: 'Z343'
2018-12-11 21:11:47.151 (Denon) Received 6 bytes of data
2018-12-11 21:11:47.151 (Denon) 5a 33 4f 46 46 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. Z3OFF.
2018-12-11 21:11:47.151 (Denon) onMessage called with Data: 'Z3OFF'
One difference is that I use network discovery and you don't but that shouldn't matter.
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
-
- Posts: 7
- Joined: Monday 17 July 2017 10:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Generic Denon / Marantz python plugin
Maybe its the amp. I've changed the cable, used another router port. Various desperate attempts at restarting the amp domoticz etc. Also tried with and without discovery (not sure I did this correctly though). Sometimes it connects sometimes not.
For example in the trace below it connects, updates the status then logs the "last response seen n heartbeats ago" message. Very odd!
For example in the trace below it connects, updates the status then logs the "last response seen n heartbeats ago" message. Very odd!
Code: Select all
2018-12-12 21:38:55.373 (Marantz Amplifier) onHeartbeat called, last response seen 0 heartbeats ago.
2018-12-12 21:38:55.373 (Marantz Amplifier) Protocol set to: 'Line'.
2018-12-12 21:38:55.373 (Marantz Amplifier) Transport set to: 'TCP/IP', 192.168.1.104:23.
2018-12-12 21:38:55.373 PluginSystem: Starting I/O service thread.
2018-12-12 21:38:55.373 (Marantz Amplifier) Connect directive received, action initiated successfully.
2018-12-12 21:38:55.424 (Marantz Amplifier) Connected successfully to: 192.168.1.104:23
2018-12-12 21:38:55.424 (Marantz Amplifier) Sending 4 bytes of data
2018-12-12 21:38:55.474 (Marantz Amplifier) Received 10 bytes of data
2018-12-12 21:38:55.474 (Marantz Amplifier) onMessage called with Data: 'PWSTANDBY'
2018-12-12 21:38:55.474 (Marantz Amplifier - Power) Updating device from 0:'Off' to have values 0:'Off'.
2018-12-12 21:38:55.486 (Marantz Amplifier) Update 0:'Off' (Marantz Amplifier - Power)
2018-12-12 21:38:55.486 (Marantz Amplifier - Main Zone) Updating device from 0:'0' to have values 0:'0'.
2018-12-12 21:38:55.491 (Marantz Amplifier) Update 0:'0' (Marantz Amplifier - Main Zone)
2018-12-12 21:38:55.491 (Marantz Amplifier - Main Volume) Updating device from 0:'28' to have values 0:'28'.
2018-12-12 21:38:55.495 (Marantz Amplifier) Update 0:'28' (Marantz Amplifier - Main Volume)
2018-12-12 21:38:56.046 (Marantz Amplifier) Sending 4 bytes of data
2018-12-12 21:38:57.048 (Marantz Amplifier) Sending 4 bytes of data
2018-12-12 21:38:58.000 (Marantz Amplifier) Sending 4 bytes of data
2018-12-12 21:39:05.371 (Marantz Amplifier) onHeartbeat called, last response seen 0 heartbeats ago.
2018-12-12 21:39:05.371 (Marantz Amplifier) onHeartbeat: self.lastMessage PW, Sending 'ZM'.
2018-12-12 21:39:05.371 (Marantz Amplifier) Sending 4 bytes of data
2018-12-12 21:39:15.349 (Marantz Amplifier) onHeartbeat called, last response seen 1 heartbeats ago.
2018-12-12 21:39:15.349 (Marantz Amplifier) onHeartbeat: self.lastMessage PW, Sending 'ZM'.
2018-12-12 21:39:15.349 (Marantz Amplifier) Sending 4 bytes of data
2018-12-12 21:39:25.367 (Marantz Amplifier) onHeartbeat called, last response seen 2 heartbeats ago.
2018-12-12 21:39:25.367 (Marantz Amplifier) onHeartbeat: self.lastMessage PW, Sending 'ZM'.
2018-12-12 21:39:25.367 (Marantz Amplifier) Sending 4 bytes of data
2018-12-12 21:39:35.333 (Marantz Amplifier) onHeartbeat called, last response seen 3 heartbeats ago.
2018-12-12 21:39:35.333 (Marantz Amplifier) onHeartbeat: self.lastMessage PW, Sending 'ZM'.
2018-12-12 21:39:35.334 (Marantz Amplifier) Sending 4 bytes of data
2018-12-12 21:39:45.349 (Marantz Amplifier) onHeartbeat called, last response seen 4 heartbeats ago.
2018-12-12 21:39:45.349 (Marantz Amplifier) onHeartbeat: self.lastMessage PW, Sending 'ZM'.
2018-12-12 21:39:45.349 (Marantz Amplifier) Sending 4 bytes of data
2018-12-12 21:39:55.365 (Marantz Amplifier) onHeartbeat called, last response seen 5 heartbeats ago.
2018-12-12 21:39:55.365 (Marantz Amplifier) onHeartbeat: self.lastMessage PW, Sending 'ZM'.
2018-12-12 21:39:55.365 (Marantz Amplifier) Sending 4 bytes of data
2018-12-12 21:40:05.335 (Marantz Amplifier) onHeartbeat called, last response seen 6 heartbeats ago.
2018-12-12 21:40:05.335 (Marantz Amplifier) onHeartbeat: self.lastMessage PW, Sending 'ZM'.
2018-12-12 21:40:05.335 (Marantz Amplifier) Sending 4 bytes of data
2018-12-12 21:40:15.354 (Marantz Amplifier) onHeartbeat called, last response seen 7 heartbeats ago.
2018-12-12 21:40:15.354 (Marantz Amplifier) onHeartbeat: self.lastMessage PW, Sending 'ZM'.
2018-12-12 21:40:15.354 (Marantz Amplifier) Sending 4 bytes of data
2018-12-12 21:40:25.384 (Marantz Amplifier) onHeartbeat called, last response seen 8 heartbeats ago.
2018-12-12 21:40:25.384 (Marantz Amplifier) onHeartbeat: self.lastMessage PW, Sending 'ZM'.
2018-12-12 21:40:25.384 (Marantz Amplifier) Sending 4 bytes of data
-
- Posts: 2
- Joined: Saturday 28 January 2017 20:15
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Generic Denon / Marantz python plugin
Plugin works like a charm, thx! Is there a way to use the source selection from "Denon - Main Zone" in a scene? When I add "Denon - Main Zone" to a scene it just give me the options: ON/OFF/STOP.
Re: Generic Denon / Marantz python plugin
I am using a Denon AVR-2300W, the correct sourcelist for this receiver is:
OFF|SAT/CBL|DVD|BD|GAME|AUX1|AUX2|MPLAY|TV|TUNER|USB/IPOD|CD|BT|NETHOME|SERVER|IRP
Edit: Not all of them seem to work. Will update list.
OFF|SAT/CBL|DVD|BD|GAME|AUX1|AUX2|MPLAY|TV|TUNER|USB/IPOD|CD|BT|NETHOME|SERVER|IRP
Edit: Not all of them seem to work. Will update list.
-
- Posts: 19
- Joined: Sunday 13 September 2015 20:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Generic Denon / Marantz python plugin
Hi, i want to use this plugin with a marantz sr6006, i installed it in domoticz and now i can only use it to switch power on and off.
The input selector doesnt work correct when i select off the receiver turns off and when i select any of the other options it turns on but other then that it does nothing. i have updated the sourcelist to what i think are the correct values.
What should i do to get this working?
The input selector doesnt work correct when i select off the receiver turns off and when i select any of the other options it turns on but other then that it does nothing. i have updated the sourcelist to what i think are the correct values.
What should i do to get this working?
Last edited by savage007 on Monday 11 February 2019 8:22, edited 6 times in total.
- Dnpwwo
- Posts: 819
- 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
@savage007,
Turn on debug and post the log otherwise it is hard for people to comment.
Turn on debug and post the log otherwise it is hard for people to comment.
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
-
- Posts: 19
- Joined: Sunday 13 September 2015 20:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Generic Denon / Marantz python plugin
Hi,
I've been looking at the script and when i replace this line in function onCommand :
self.DenonConn.Send(Message='SI'+self.selectorMap[Level]+'\r', Delay=delay)
with :
self.DenonConn.Send(Message='SISAT\r', Delay=delay)
The reciever switches to SAT.
Here's a piece of the log:
2019-02-08 18:32:40.411 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:32:40.411 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:32:40.411 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:32:40.411 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:33:08.295 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:33:08.308 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:33:08.308 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:33:08.308 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:33:14.144 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:33:14.182 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:33:14.182 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:33:14.182 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:33:19.393 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:33:24.838 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:33:24.876 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:33:24.876 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:33:24.876 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:35:40.761 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:35:40.788 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:35:40.788 (sr6006) Received 7 bytes of data
2019-02-08 18:35:40.788 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:35:40.788 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:35:40.788 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:35:50.706 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:35:50.719 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:35:50.719 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:35:50.719 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:35:50.719 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:35:50.719 (sr6006) Sending 6 bytes of data
2019-02-08 18:35:50.761 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:35:50.769 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:35:50.770 (sr6006) Received 7 bytes of data
2019-02-08 18:35:50.770 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:35:50.770 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:35:50.770 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:36:00.709 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:36:00.752 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:36:00.752 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:36:00.752 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:36:00.752 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:36:00.752 (sr6006) Sending 6 bytes of data
2019-02-08 18:36:00.766 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:36:00.803 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:36:00.803 (sr6006) Received 7 bytes of data
2019-02-08 18:36:00.803 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:36:00.803 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:36:00.803 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:36:10.712 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:36:10.745 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:36:10.745 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:36:10.746 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:36:10.746 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:36:10.746 (sr6006) Sending 6 bytes of data
2019-02-08 18:36:10.780 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:36:10.796 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:36:10.796 (sr6006) Received 7 bytes of data
2019-02-08 18:36:10.796 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:36:10.796 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:36:10.796 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:36:20.716 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:36:20.731 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:36:20.731 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:36:20.731 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:36:20.731 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:36:20.731 (sr6006) Sending 6 bytes of data
2019-02-08 18:36:20.786 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:36:20.832 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:36:20.832 (sr6006) Received 7 bytes of data
2019-02-08 18:36:20.832 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:36:20.832 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:36:20.832 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:36:21.230 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-08 18:36:21.233 (sr6006) Processing 'onCommandCallback' message
2019-02-08 18:36:21.233 (sr6006) Calling message handler 'onCommand'.
2019-02-08 18:36:21.233 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 30
2019-02-08 18:36:21.230 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:36:21.233 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:36:21.233 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:21.233 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:23.699 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-08 18:36:23.741 (sr6006) Processing 'onCommandCallback' message
2019-02-08 18:36:23.741 (sr6006) Calling message handler 'onCommand'.
2019-02-08 18:36:23.741 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 80
2019-02-08 18:36:23.698 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:36:23.741 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:36:23.741 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:23.741 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:26.190 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-08 18:36:26.199 (sr6006) Processing 'onCommandCallback' message
2019-02-08 18:36:26.199 (sr6006) Calling message handler 'onCommand'.
2019-02-08 18:36:26.199 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 30
2019-02-08 18:36:26.189 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:36:26.199 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:36:26.199 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:26.199 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:28.570 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-08 18:36:28.607 (sr6006) Processing 'onCommandCallback' message
2019-02-08 18:36:28.607 (sr6006) Calling message handler 'onCommand'.
2019-02-08 18:36:28.607 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 50
2019-02-08 18:36:28.570 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:36:28.607 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:36:28.607 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:28.607 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:30.719 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:36:30.764 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:36:30.764 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:36:30.765 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:36:30.765 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:36:30.765 (sr6006) Sending 6 bytes of data
2019-02-08 18:36:30.801 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:36:30.815 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:36:30.815 (sr6006) Received 7 bytes of data
2019-02-08 18:36:30.815 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:36:30.815 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:36:30.815 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:36:34.022 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-08 18:36:34.025 (sr6006) Processing 'onCommandCallback' message
2019-02-08 18:36:34.025 (sr6006) Calling message handler 'onCommand'.
2019-02-08 18:36:34.025 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 60
2019-02-08 18:36:34.021 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:36:34.025 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:36:34.025 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:34.025 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:40.722 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:36:40.750 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:36:40.750 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:36:40.750 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:36:40.750 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:36:40.750 (sr6006) Sending 6 bytes of data
2019-02-08 18:36:40.806 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:36:40.850 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:36:40.850 (sr6006) Received 7 bytes of data
2019-02-08 18:36:40.850 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:36:40.850 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:36:40.850 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:36:50.725 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:36:50.730 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:36:50.730 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:36:50.730 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:36:50.730 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:36:50.730 (sr6006) Sending 6 bytes of data
2019-02-08 18:36:50.775 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:36:50.780 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:36:50.780 (sr6006) Received 7 bytes of data
2019-02-08 18:36:50.780 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:36:50.780 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:36:50.781 (sr6006) Calling message handler 'onMessage'.
I've been looking at the script and when i replace this line in function onCommand :
self.DenonConn.Send(Message='SI'+self.selectorMap[Level]+'\r', Delay=delay)
with :
self.DenonConn.Send(Message='SISAT\r', Delay=delay)
The reciever switches to SAT.
Here's a piece of the log:
2019-02-08 18:32:40.411 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:32:40.411 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:32:40.411 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:32:40.411 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:33:08.295 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:33:08.308 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:33:08.308 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:33:08.308 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:33:14.144 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:33:14.182 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:33:14.182 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:33:14.182 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:33:19.393 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:33:24.838 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:33:24.876 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:33:24.876 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:33:24.876 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:35:40.761 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:35:40.788 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:35:40.788 (sr6006) Received 7 bytes of data
2019-02-08 18:35:40.788 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:35:40.788 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:35:40.788 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:35:50.706 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:35:50.719 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:35:50.719 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:35:50.719 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:35:50.719 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:35:50.719 (sr6006) Sending 6 bytes of data
2019-02-08 18:35:50.761 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:35:50.769 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:35:50.770 (sr6006) Received 7 bytes of data
2019-02-08 18:35:50.770 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:35:50.770 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:35:50.770 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:36:00.709 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:36:00.752 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:36:00.752 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:36:00.752 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:36:00.752 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:36:00.752 (sr6006) Sending 6 bytes of data
2019-02-08 18:36:00.766 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:36:00.803 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:36:00.803 (sr6006) Received 7 bytes of data
2019-02-08 18:36:00.803 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:36:00.803 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:36:00.803 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:36:10.712 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:36:10.745 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:36:10.745 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:36:10.746 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:36:10.746 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:36:10.746 (sr6006) Sending 6 bytes of data
2019-02-08 18:36:10.780 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:36:10.796 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:36:10.796 (sr6006) Received 7 bytes of data
2019-02-08 18:36:10.796 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:36:10.796 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:36:10.796 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:36:20.716 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:36:20.731 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:36:20.731 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:36:20.731 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:36:20.731 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:36:20.731 (sr6006) Sending 6 bytes of data
2019-02-08 18:36:20.786 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:36:20.832 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:36:20.832 (sr6006) Received 7 bytes of data
2019-02-08 18:36:20.832 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:36:20.832 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:36:20.832 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:36:21.230 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-08 18:36:21.233 (sr6006) Processing 'onCommandCallback' message
2019-02-08 18:36:21.233 (sr6006) Calling message handler 'onCommand'.
2019-02-08 18:36:21.233 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 30
2019-02-08 18:36:21.230 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:36:21.233 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:36:21.233 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:21.233 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:23.699 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-08 18:36:23.741 (sr6006) Processing 'onCommandCallback' message
2019-02-08 18:36:23.741 (sr6006) Calling message handler 'onCommand'.
2019-02-08 18:36:23.741 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 80
2019-02-08 18:36:23.698 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:36:23.741 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:36:23.741 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:23.741 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:26.190 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-08 18:36:26.199 (sr6006) Processing 'onCommandCallback' message
2019-02-08 18:36:26.199 (sr6006) Calling message handler 'onCommand'.
2019-02-08 18:36:26.199 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 30
2019-02-08 18:36:26.189 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:36:26.199 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:36:26.199 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:26.199 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:28.570 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-08 18:36:28.607 (sr6006) Processing 'onCommandCallback' message
2019-02-08 18:36:28.607 (sr6006) Calling message handler 'onCommand'.
2019-02-08 18:36:28.607 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 50
2019-02-08 18:36:28.570 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:36:28.607 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:36:28.607 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:28.607 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:30.719 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:36:30.764 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:36:30.764 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:36:30.765 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:36:30.765 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:36:30.765 (sr6006) Sending 6 bytes of data
2019-02-08 18:36:30.801 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:36:30.815 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:36:30.815 (sr6006) Received 7 bytes of data
2019-02-08 18:36:30.815 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:36:30.815 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:36:30.815 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:36:34.022 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-08 18:36:34.025 (sr6006) Processing 'onCommandCallback' message
2019-02-08 18:36:34.025 (sr6006) Calling message handler 'onCommand'.
2019-02-08 18:36:34.025 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 60
2019-02-08 18:36:34.021 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-08 18:36:34.025 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-08 18:36:34.025 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:34.025 Error: (sr6006) ----> Line 294 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-08 18:36:40.722 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:36:40.750 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:36:40.750 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:36:40.750 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:36:40.750 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:36:40.750 (sr6006) Sending 6 bytes of data
2019-02-08 18:36:40.806 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:36:40.850 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:36:40.850 (sr6006) Received 7 bytes of data
2019-02-08 18:36:40.850 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:36:40.850 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:36:40.850 (sr6006) Calling message handler 'onMessage'.
2019-02-08 18:36:50.725 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-08 18:36:50.730 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-08 18:36:50.730 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-08 18:36:50.730 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-08 18:36:50.730 (sr6006) Processing 'WriteDirective' message
2019-02-08 18:36:50.730 (sr6006) Sending 6 bytes of data
2019-02-08 18:36:50.775 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-08 18:36:50.780 (sr6006) Processing 'ReadEvent' message
2019-02-08 18:36:50.780 (sr6006) Received 7 bytes of data
2019-02-08 18:36:50.780 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-08 18:36:50.780 (sr6006) Processing 'onMessageCallback' message
2019-02-08 18:36:50.781 (sr6006) Calling message handler 'onMessage'.
- Dnpwwo
- Posts: 819
- 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
@savage007,
What have you specified in the 'Source' paramater on the hardware page?
My guess would be that you have not told the plugin that 'SAT' is a device you use.
What have you specified in the 'Source' paramater on the hardware page?
My guess would be that you have not told the plugin that 'SAT' is a device you 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
-
- Posts: 19
- Joined: Sunday 13 September 2015 20:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Generic Denon / Marantz python plugin
I can see the plugin tries to send a command to switch to level 110 which is SAT but it fails with : 'onCommand' failed 'KeyError'
2019-02-11 11:02:15.906 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-11 11:02:15.936 (sr6006) Processing 'onCommandCallback' message
2019-02-11 11:02:15.936 (sr6006) Calling message handler 'onCommand'.
2019-02-11 11:02:15.936 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 110
2019-02-11 11:02:15.905 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-11 11:02:15.936 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-11 11:02:15.936 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-11 11:02:15.936 Error: (sr6006) ----> Line 295 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-11 11:02:17.786 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-11 11:02:17.794 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-11 11:02:17.794 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-11 11:02:17.794 (sr6006) onHeartbeat called, last response seen 0 heartbeats ago.
2019-02-11 11:02:17.794 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-11 11:02:17.794 (sr6006) onHeartbeat: self.lastMessage Z3, Sending 'TP'.
2019-02-11 11:02:17.794 (sr6006) Processing 'WriteDirective' message
2019-02-11 11:02:17.794 (sr6006) Sending 6 bytes of data
2019-02-11 11:02:17.794 (sr6006) 54 50 41 4e 3f 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. TPAN?.
2019-02-11 11:02:17.820 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-11 11:02:17.845 (sr6006) Processing 'ReadEvent' message
2019-02-11 11:02:17.845 (sr6006) Received 7 bytes of data
2019-02-11 11:02:17.845 (sr6006) 54 50 41 4e 41 31 0d .. .. .. .. .. .. .. .. .. .. .. .. .. TPANA1.
2019-02-11 11:02:17.845 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-11 11:02:17.845 (sr6006) Processing 'onMessageCallback' message
2019-02-11 11:02:17.845 (sr6006) Calling message handler 'onMessage'.
2019-02-11 11:02:17.845 (sr6006) onMessage called with Data: 'TPANA1'
2019-02-11 11:02:17.845 (sr6006) TPAN received. Key: 0, Detail A1
2019-02-11 11:02:19.631 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-11 11:02:19.649 (sr6006) Processing 'onCommandCallback' message
2019-02-11 11:02:19.649 (sr6006) Calling message handler 'onCommand'.
2019-02-11 11:02:19.649 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 100
2019-02-11 11:02:19.630 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-11 11:02:19.649 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-11 11:02:19.649 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-11 11:02:19.649 Error: (sr6006) ----> Line 295 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
These are the sources aivailable to the receiver :
formMainZone_MainZoneXml.xml :
<?xml version="1.0" encoding="ISO-8859-1"?>
<item>
<Power>
<value>STANDBY</value>
</Power>
<ZonePower>
<value>OFF</value>
</ZonePower>
<InputFuncList>
<value>SOURCE</value>
<value>TUNER</value>
<value>HDRADIO</value>
<value>CD</value>
<value>PHONO</value>
<value>M-XPORT</value>
<value>NET/USB</value>
<value>DVD</value>
<value>BD</value>
<value>TV</value>
<value>SAT</value>
<value>VCR</value>
<value>GAME</value>
<value>AUX1</value>
<value>AUX2</value>
</InputFuncList>
<RenameSource>
<value/>
<value>TUNER </value>
<value/>
<value>CD </value>
<value>PHONO </value>
<value>M-XPort </value>
<value>NET/USB </value>
<value>DVD </value>
<value>BD </value>
<value>TV </value>
<value>SAT </value>
<value>VCR </value>
<value>GAME </value>
<value>AUX1 </value>
<value>AUX2 </value>
</RenameSource>
2019-02-11 11:02:15.906 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-11 11:02:15.936 (sr6006) Processing 'onCommandCallback' message
2019-02-11 11:02:15.936 (sr6006) Calling message handler 'onCommand'.
2019-02-11 11:02:15.936 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 110
2019-02-11 11:02:15.905 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-11 11:02:15.936 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-11 11:02:15.936 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-11 11:02:15.936 Error: (sr6006) ----> Line 295 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-11 11:02:17.786 (sr6006) Pushing 'onHeartbeatCallback' on to queue
2019-02-11 11:02:17.794 (sr6006) Processing 'onHeartbeatCallback' message
2019-02-11 11:02:17.794 (sr6006) Calling message handler 'onHeartbeat'.
2019-02-11 11:02:17.794 (sr6006) onHeartbeat called, last response seen 0 heartbeats ago.
2019-02-11 11:02:17.794 (sr6006) Pushing 'WriteDirective' on to queue
2019-02-11 11:02:17.794 (sr6006) onHeartbeat: self.lastMessage Z3, Sending 'TP'.
2019-02-11 11:02:17.794 (sr6006) Processing 'WriteDirective' message
2019-02-11 11:02:17.794 (sr6006) Sending 6 bytes of data
2019-02-11 11:02:17.794 (sr6006) 54 50 41 4e 3f 0d .. .. .. .. .. .. .. .. .. .. .. .. .. .. TPAN?.
2019-02-11 11:02:17.820 (sr6006) Pushing 'ReadEvent' on to queue
2019-02-11 11:02:17.845 (sr6006) Processing 'ReadEvent' message
2019-02-11 11:02:17.845 (sr6006) Received 7 bytes of data
2019-02-11 11:02:17.845 (sr6006) 54 50 41 4e 41 31 0d .. .. .. .. .. .. .. .. .. .. .. .. .. TPANA1.
2019-02-11 11:02:17.845 (sr6006) Pushing 'onMessageCallback' on to queue
2019-02-11 11:02:17.845 (sr6006) Processing 'onMessageCallback' message
2019-02-11 11:02:17.845 (sr6006) Calling message handler 'onMessage'.
2019-02-11 11:02:17.845 (sr6006) onMessage called with Data: 'TPANA1'
2019-02-11 11:02:17.845 (sr6006) TPAN received. Key: 0, Detail A1
2019-02-11 11:02:19.631 (sr6006) Pushing 'onCommandCallback' on to queue
2019-02-11 11:02:19.649 (sr6006) Processing 'onCommandCallback' message
2019-02-11 11:02:19.649 (sr6006) Calling message handler 'onCommand'.
2019-02-11 11:02:19.649 (sr6006) onCommand called for Unit 2: Parameter 'Set Level', Level: 100
2019-02-11 11:02:19.630 Status: User: Admin initiated a switch command (68/sr6006 - Main Zone/Set Level)
2019-02-11 11:02:19.649 Error: (sr6006) 'onCommand' failed 'KeyError'.
2019-02-11 11:02:19.649 Error: (sr6006) ----> Line 450 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
2019-02-11 11:02:19.649 Error: (sr6006) ----> Line 295 in '/home/edwin/domoticz/plugins/Domoticz-Denon-Plugin/plugin.py', function onCommand
These are the sources aivailable to the receiver :
formMainZone_MainZoneXml.xml :
<?xml version="1.0" encoding="ISO-8859-1"?>
<item>
<Power>
<value>STANDBY</value>
</Power>
<ZonePower>
<value>OFF</value>
</ZonePower>
<InputFuncList>
<value>SOURCE</value>
<value>TUNER</value>
<value>HDRADIO</value>
<value>CD</value>
<value>PHONO</value>
<value>M-XPORT</value>
<value>NET/USB</value>
<value>DVD</value>
<value>BD</value>
<value>TV</value>
<value>SAT</value>
<value>VCR</value>
<value>GAME</value>
<value>AUX1</value>
<value>AUX2</value>
</InputFuncList>
<RenameSource>
<value/>
<value>TUNER </value>
<value/>
<value>CD </value>
<value>PHONO </value>
<value>M-XPort </value>
<value>NET/USB </value>
<value>DVD </value>
<value>BD </value>
<value>TV </value>
<value>SAT </value>
<value>VCR </value>
<value>GAME </value>
<value>AUX1 </value>
<value>AUX2 </value>
</RenameSource>
- Attachments
-
- Naamloos1.png (31.51 KiB) Viewed 2494 times
-
- Naamloos.png (127.59 KiB) Viewed 2495 times
-
- Posts: 19
- Joined: Sunday 13 September 2015 20:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Generic Denon / Marantz python plugin
I found this somewhere : A 'KeyError' normally means that the plugin has accessed a non-existent Key in a Dictionary.
@Dnpwwo : This is actualy a quote from you
What does this mean for the script?
Is the dictionary the sources list? ( Off|SOURCE|TUNER|HDRADIO|CD|PHONO|M-XPORT|NET/USB|DVD|BD|TV|SAT|VCR|GAME|AUX1|AUX2 )
@Dnpwwo : This is actualy a quote from you
What does this mean for the script?
Is the dictionary the sources list? ( Off|SOURCE|TUNER|HDRADIO|CD|PHONO|M-XPORT|NET/USB|DVD|BD|TV|SAT|VCR|GAME|AUX1|AUX2 )
-
- Posts: 19
- Joined: Sunday 13 September 2015 20:24
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Generic Denon / Marantz python plugin
This is weird, i copied your script from github and pasted in plugin.py, saved it and updated the device in domoticz.
Now it works, no more errors!
Now it works, no more errors!
- Dnpwwo
- Posts: 819
- 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
Very strange indeed.
Glad you got it sorted.
Glad you got it sorted.
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
-
- Posts: 2
- Joined: Thursday 14 February 2019 8:52
- Target OS: NAS (Synology & others)
- Domoticz version: 4.9700
- Location: Netherlands
- Contact:
Re: Generic Denon / Marantz python plugin
Hi, great plugin!
I installed it today and it is working fine for my Denon receiver, however after adding my second Marantz receiver in hardware I noticed that switching off the Marantz device also switches off my Denon receiver, eventhough I created separate hardware instances for Denon and Marantz receiver.
Do I need to configure something else?
Thanks,
I installed it today and it is working fine for my Denon receiver, however after adding my second Marantz receiver in hardware I noticed that switching off the Marantz device also switches off my Denon receiver, eventhough I created separate hardware instances for Denon and Marantz receiver.
Do I need to configure something else?
Thanks,
- Dnpwwo
- Posts: 819
- 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
@hk88,
Assuming you are using the latest version from here: https://github.com/dnpwwo/Domoticz-Deno ... /plugin.py
There should be no issue running multiple instances of the plugin.
Are you using auto-detect for one or more of them? That could be the problem because both instances may pickup the SSDP broadcast from the same amp. If you are running more than one you would need to turn auto-detect off and specify the IP addresses manually for both amps.
Assuming you are using the latest version from here: https://github.com/dnpwwo/Domoticz-Deno ... /plugin.py
There should be no issue running multiple instances of the plugin.
Are you using auto-detect for one or more of them? That could be the problem because both instances may pickup the SSDP broadcast from the same amp. If you are running more than one you would need to turn auto-detect off and specify the IP addresses manually for both amps.
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
Who is online
Users browsing this forum: No registered users and 1 guest