Yamaha AV Receiver Plugin

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

Re: Yamaha AV Receiver Plugin

Post by Dnpwwo » Monday 01 January 2018 23:15

@sion,

Download a copy of SQLiteBrowser and update the database directly (after backing it up obviously :!: :!: :!: )

Go to the "Browse Data" tab, select the Hardware table, set the Enabled field to 0 for the affected plugin and hit Write Changes.

Or you could wait and try the next beta. That has a number of fixes to the plugins and python event system.
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

sion
Posts: 122
Joined: Friday 08 January 2016 13:32
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Yamaha AV Receiver Plugin

Post by sion » Thursday 04 January 2018 13:26

ok,
so i reupgraded to the latest beta of domoticz.
but also upgraded python from 3.4 to 3.4.3 and its all now working perfectly, using zicht's changes all zone 2 features working perfectly to.

Is there a way to select airplay on zone 2?
running domoticz 3.4834 on rpi2, with
Hue bridge / bulbs.
lightwave rf sockets, mood controlers, sensors & contacts.
Home bridge / Siri.
Ha bridge / echo Alexa.
Hard wired alarm system - setting home / away status.

Next: harmony hub.

pro2call
Posts: 13
Joined: Monday 31 March 2014 16:28
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: (52.557965, 5.914462)
Contact:

Re: Yamaha AV Receiver Plugin

Post by pro2call » Monday 19 February 2018 17:47

Hello,

This plugin is working good.

is there also an option to combine the HDMI and AV inputs? or make them selectable i dont use all of them and also want to add "NET RADIO" and "Radio".

Please Help

raymond1972
Posts: 1
Joined: Wednesday 28 February 2018 14:00
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Yamaha AV Receiver Plugin

Post by raymond1972 » Wednesday 28 February 2018 14:06

Hello Thomas,

Great plugin.
Although I miss some options i definitely will use like scenes and radio input stations.
I still get some error in my domotica log.
Could you help me with that?

every now and then i get:
2018-02-28 13:02:40.510 Error: (Yamaha RX-V475) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
2018-02-28 13:02:40.510 Error: (Yamaha RX-V475) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
2018-02-28 13:02:40.510 Error: (Yamaha RX-V475) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
2018-02-28 13:02:40.510 Error: (Yamaha RX-V475) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
2018-02-28 13:02:40.510 Error: (Yamaha RX-V475) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.

Kind regards,
Raymond

getdown
Posts: 8
Joined: Friday 29 December 2017 23:56
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Yamaha AV Receiver Plugin

Post by getdown » Wednesday 28 February 2018 14:52

raymond1972 wrote:Hello Thomas,

Great plugin.
Although I miss some options i definitely will use like scenes and radio input stations.
I still get some error in my domotica log.
Could you help me with that?

every now and then i get:
2018-02-28 13:02:40.510 Error: (Yamaha RX-V475) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
2018-02-28 13:02:40.510 Error: (Yamaha RX-V475) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
2018-02-28 13:02:40.510 Error: (Yamaha RX-V475) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
2018-02-28 13:02:40.510 Error: (Yamaha RX-V475) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
2018-02-28 13:02:40.510 Error: (Yamaha RX-V475) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.

Kind regards,
Raymond
Hi,

Do you use beta or stable version of Domoticz ?

Wich version of python is install on your raspberry ?

Try to upgrade python and use the last beta or Domoticz and it should be ok.

Envoyé de mon ONEPLUS A3003 en utilisant Tapatalk


suchar
Posts: 2
Joined: Saturday 10 March 2018 23:09
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Yamaha AV Receiver Plugin

Post by suchar » Saturday 10 March 2018 23:19

Hi all,

I'm newbie and I'd like ask to help. I create two test buttons "Test tlacitko 1" and "Test tlacitko 2" and I'd like to change the Yamaha Source to "HDMI 1" after click the button.
And I'm not sure if the condition is write correctly. But after I click the button nothing hapend.
Please could anyone help me? Thanks
picture.PNG
picture.PNG (9.08 KiB) Viewed 1398 times

fennec62
Posts: 52
Joined: Sunday 26 October 2014 23:11
Target OS: Linux
Domoticz version:
Location: france
Contact:

Re: Yamaha AV Receiver Plugin

Post by fennec62 » Sunday 11 March 2018 14:18

Hi
thanks a lot for you job

I use plugin with RX-V473
But i have error

Code: Select all

2018-03-11 13:14:16.529 (rfxcom) Temp + Humidity (Temp ext Devant)
2018-03-11 13:14:19.435 (Yamaha) Calling message handler 'onHeartbeat'.
2018-03-11 13:14:19.435 (Yamaha) onHeartbeat called. Connected: False
2018-03-11 13:14:19.435 (Yamaha) Transport set to: 'TCP/IP', 10.0.0.156:50000.
2018-03-11 13:14:19.435 PluginSystem: Starting I/O service thread.
2018-03-11 13:14:19.435 (Yamaha) Connect directive received, action initiated successfully.
2018-03-11 13:14:19.485 (Yamaha) Calling message handler 'onConnect'.
2018-03-11 13:14:19.485 (Yamaha) onConnect called. Status: 0
2018-03-11 13:14:19.485 (Yamaha) onHeartbeat called. Connected: True
2018-03-11 13:14:19.485 (Yamaha) Sending 13 bytes of data:.
2018-03-11 13:14:19.485 (Yamaha) 40 4d 41 49 4e 3a 50 57 52 3d 3f 0d 0a .. .. .. .. .. .. .. @MAIN:PWR=?..
2018-03-11 13:14:19.485 (Yamaha) Sending 13 bytes of data:.
2018-03-11 13:14:19.485 (Yamaha) 40 4d 41 49 4e 3a 56 4f 4c 3d 3f 0d 0a .. .. .. .. .. .. .. @MAIN:VOL=?..
2018-03-11 13:14:19.485 (Yamaha) Sending 13 bytes of data:.
2018-03-11 13:14:19.485 (Yamaha) 40 4d 41 49 4e 3a 49 4e 50 3d 3f 0d 0a .. .. .. .. .. .. .. @MAIN:INP=?..
2018-03-11 13:14:19.485 (Yamaha) Sending 14 bytes of data:.
2018-03-11 13:14:19.485 (Yamaha) 40 4d 41 49 4e 3a 4d 55 54 45 3d 3f 0d 0a .. .. .. .. .. .. @MAIN:MUTE=?..
2018-03-11 13:14:19.485 (Yamaha) Sending 18 bytes of data:.
2018-03-11 13:14:19.485 (Yamaha) 40 4d 41 49 4e 3a 53 4f 55 4e 44 50 52 47 3d 3f 0d 0a .. .. @MAIN:SOUNDPRG=?..
2018-03-11 13:14:19.535 (Yamaha) Received 12 bytes of data:.
2018-03-11 13:14:19.535 (Yamaha) 40 4d 41 49 4e 3a 50 57 52 3d 4f 6e .. .. .. .. .. .. .. .. @MAIN:PWR=On
2018-03-11 13:14:19.535 (Yamaha) Calling message handler 'onMessage'.
2018-03-11 13:14:19.535 Error: (Yamaha) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
2018-03-11 13:14:19.535 (Yamaha) Received 15 bytes of data:.
2018-03-11 13:14:19.535 (Yamaha) 40 4d 41 49 4e 3a 56 4f 4c 3d 2d 34 34 2e 35 .. .. .. .. .. @MAIN:VOL=-44.5
2018-03-11 13:14:19.535 (Yamaha) Calling message handler 'onMessage'.
2018-03-11 13:14:19.535 Error: (Yamaha) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
2018-03-11 13:14:19.535 (Yamaha) Received 15 bytes of data:.
2018-03-11 13:14:19.535 (Yamaha) 40 4d 41 49 4e 3a 49 4e 50 3d 48 44 4d 49 31 .. .. .. .. .. @MAIN:INP=HDMI1
2018-03-11 13:14:19.535 (Yamaha) Calling message handler 'onMessage'.
2018-03-11 13:14:19.535 Error: (Yamaha) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
2018-03-11 13:14:19.535 (Yamaha) Received 14 bytes of data:.
2018-03-11 13:14:19.535 (Yamaha) 40 4d 41 49 4e 3a 4d 55 54 45 3d 4f 66 66 .. .. .. .. .. .. @MAIN:MUTE=Off
2018-03-11 13:14:19.535 (Yamaha) Calling message handler 'onMessage'.
2018-03-11 13:14:19.535 Error: (Yamaha) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
2018-03-11 13:14:19.536 (Yamaha) Received 25 bytes of data:.
2018-03-11 13:14:19.536 (Yamaha) 40 4d 41 49 4e 3a 53 4f 55 4e 44 50 52 47 3d 35 63 68 20 53 @MAIN:SOUNDPRG=5ch.S
2018-03-11 13:14:19.536 (Yamaha) 74 65 72 65 6f .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. tereo
2018-03-11 13:14:19.536 (Yamaha) Calling message handler 'onMessage'.
2018-03-11 13:14:19.536 Error: (Yamaha) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
On linux with domoticz 3.8153

Thanks for help

assenzuid
Posts: 166
Joined: Friday 13 November 2015 10:11
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands, Emmen Area
Contact:

Re: Yamaha AV Receiver Plugin

Post by assenzuid » Wednesday 14 March 2018 21:46

I have this error.

Code: Select all

Transport is not connected, write directive to 'Yamaha connection' ignored.
Running latest beta and installed the plugin with the plugin manager.

assenzuid
Posts: 166
Joined: Friday 13 November 2015 10:11
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands, Emmen Area
Contact:

Re: Yamaha AV Receiver Plugin

Post by assenzuid » Thursday 15 March 2018 12:06

I have an RX-A1010, the plugin works in the basic, but switching between sources isn't working (HDMI 1-7).

How I create a switch to switch between Tuner, or other input?

reboon
Posts: 1
Joined: Sunday 08 April 2018 17:58
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: NL
Contact:

Re: Yamaha AV Receiver Plugin

Post by reboon » Sunday 08 April 2018 18:23

Hi all, based on the great plugin from Thomas I changed the script so that it fits my needs. I used large part of his code and the images.
BTW the images you must place in folder /www/images in your domoticz home folder....

That is I wanted to have and have added:
  • 1 input device (per zone)
  • Add my own description to the inputs
  • Add ZONE2
  • Switch PARTY mode on/off
  • Add PARTY/all zone volume control that changes volume in all zones equally
If you run this script as per Thomas instruction it will create 6 devices:
1) Party & status that shows and switches Party mode ON/Off and shows Surround decode
2) Main zone Volume that also switches Main ON/OFF
3) Main zone Input (if you push Off as Input also Main will be switched OFF)
4) Zone2 Volume that also switches Zone2 ON/OFF
5) Zone2 Input (if you push Off as Input also Zone2 will be switched OFF)
6) Party/all zone Volume that also switches all zones ON/OFF

It is working great for me, and again THANKS to Thomas!!

PS attached Python script must be renamed to plugin.py and replace the file of Thomas

PS2 I use the Homebridge to be able to use Homekit from Apple. And these devices allow you to voice control your stereo, how cool is that 'He Siri, increase the volume a little' and 'turn party mode on', although I haven't been able to find a nice integration for the input selection or showing status....
Attachments
plugin.txt
(16.49 KiB) Downloaded 54 times

StasDemydiuk
Posts: 15
Joined: Saturday 14 January 2017 22:37
Target OS: Linux
Domoticz version: Beta
Contact:

Re: Yamaha AV Receiver Plugin

Post by StasDemydiuk » Sunday 15 April 2018 17:40

reboon wrote:
Sunday 08 April 2018 18:23
Hi all, based on the great plugin from Thomas I changed the script so that it fits my needs. I used large part of his code and the images.
BTW the images you must place in folder /www/images in your domoticz home folder....

That is I wanted to have and have added:
  • 1 input device (per zone)
  • Add my own description to the inputs
  • Add ZONE2
  • Switch PARTY mode on/off
  • Add PARTY/all zone volume control that changes volume in all zones equally
If you run this script as per Thomas instruction it will create 6 devices:
1) Party & status that shows and switches Party mode ON/Off and shows Surround decode
2) Main zone Volume that also switches Main ON/OFF
3) Main zone Input (if you push Off as Input also Main will be switched OFF)
4) Zone2 Volume that also switches Zone2 ON/OFF
5) Zone2 Input (if you push Off as Input also Zone2 will be switched OFF)
6) Party/all zone Volume that also switches all zones ON/OFF

It is working great for me, and again THANKS to Thomas!!

PS attached Python script must be renamed to plugin.py and replace the file of Thomas

PS2 I use the Homebridge to be able to use Homekit from Apple. And these devices allow you to voice control your stereo, how cool is that 'He Siri, increase the volume a little' and 'turn party mode on', although I haven't been able to find a nice integration for the input selection or showing status....
Great update! Thank you!!!
Just had issues with my latest beta of domoticz - it throws error in onMessage callback.
Additionally I've faced that the plugin is doing continuous updates to domoticz devices when receiver is in Standby mode,
rewriting the same values again and again:

Code: Select all

2018-04-15 15:55:08.189 (Yamaha RX-V683) @MAIN:PWR=Standby
2018-04-15 15:55:08.189 (Yamaha RX-V683) @ZONE2:PWR=Standby
2018-04-15 15:55:08.190 (Yamaha RX-V683) @MAIN:SOUNDPRG=Standard
2018-04-15 15:55:08.190 (Yamaha RX-V683) @MAIN:VOL=-48.0
2018-04-15 15:55:08.190 (Yamaha RX-V683) @MAIN:INP=HDMI2
2018-04-15 15:55:08.190 (Yamaha RX-V683) @MAIN:MUTE=Off
2018-04-15 15:55:08.190 (Yamaha RX-V683) @ZONE2:VOL=-36.0
2018-04-15 15:55:08.191 (Yamaha RX-V683) @ZONE2:MUTE=Off
2018-04-15 15:55:08.191 (Yamaha RX-V683) @ZONE2:INP=NET RADIO
2018-04-15 15:55:08.191 (Yamaha RX-V683) @SYS:PARTY=Off
I haven't found your git repository to create a PR, so forked from original one
https://github.com/stas-demydiuk/domoticz-yamaha-plugin

Thank you again for the great update!

DavidSof
Posts: 5
Joined: Sunday 22 April 2018 18:32
Target OS: NAS (Synology & others)
Domoticz version: 3.8153
Location: France
Contact:

Re: Yamaha AV Receiver Plugin

Post by DavidSof » Sunday 22 April 2018 18:38

Hi all, Thomas,

Thanks for the plugin, great idea! I'm trying to use it over a R-N602. First question is how is YNCA different from MusicCast control?

On my side, I also get this message. I'mu using a Synology NAS.

Code: Select all

2018-04-22 18:34:40.990 Error: (R-N602_OK) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
Python 3.5.1
Domoticz stable.

Any idea?

Thanks,
David

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

Re: Yamaha AV Receiver Plugin

Post by Dnpwwo » Monday 23 April 2018 13:26

you need to run the beta version of Domoticz
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

DavidSof
Posts: 5
Joined: Sunday 22 April 2018 18:32
Target OS: NAS (Synology & others)
Domoticz version: 3.8153
Location: France
Contact:

Re: Yamaha AV Receiver Plugin

Post by DavidSof » Monday 23 April 2018 15:27

Dnpwwo wrote:
Monday 23 April 2018 13:26
you need to run the beta version of Domoticz
Thanks. Just updated to the latest beta version. New errors coming up
2018-04-23 15:24:48.188 (R-N602_OK) Initialized version 2.0.0, author 'thomasvillagers'
2018-04-23 15:24:48.264 Error: (R-N602_OK): Async Read Exception: 104, Connection reset by peer
2018-04-23 15:24:48.293 PluginSystem: Restarting I/O service thread.
2018-04-23 15:24:48.293 Error: (R-N602_OK) 'onMessage' failed 'IndexError':'list index out of range'.
2018-04-23 15:24:48.293 Error: (R-N602_OK) ----> Line 380 in /usr/local/domoticz/var/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-04-23 15:24:48.293 Error: (R-N602_OK) ----> Line 314 in /usr/local/domoticz/var/plugins/yamaha-av-receiver/plugin.py, function onMessage
And it repeats like that on every command. Am I missing something?

DavidSof
Posts: 5
Joined: Sunday 22 April 2018 18:32
Target OS: NAS (Synology & others)
Domoticz version: 3.8153
Location: France
Contact:

Re: Yamaha AV Receiver Plugin

Post by DavidSof » Monday 23 April 2018 20:02

Replying to my message above,

I have change the port to 41100, which is the default port for Musiccast (supported by my R-N602), and there is no Python error anymore.
But unfortunately, It still does not work.

In fact I'm not sure this amp can support YNCA. Is there a list somewhere of Yamaha Amp supporting YNCA portocol?

Thanks!

Code: Select all

2018-04-23 20:00:39.600 PluginSystem: Starting I/O service thread.
2018-04-23 20:00:39.600 (R-N602_Plugin) Connect directive received, action initiated successfully.
2018-04-23 20:00:39.601 (R-N602_Plugin) Pushing 'onConnectCallback' on to queue
2018-04-23 20:00:39.601 (R-N602_Plugin) Pushing 'DisconnectedEvent' on to queue
2018-04-23 20:00:39.650 (R-N602_Plugin) Processing 'onConnectCallback' message
2018-04-23 20:00:39.650 (R-N602_Plugin) Calling message handler 'onConnect'.
2018-04-23 20:00:39.651 (R-N602_Plugin) onConnect called. Status: 111
2018-04-23 20:00:39.651 (R-N602_Plugin) Processing 'DisconnectedEvent' message
2018-04-23 20:00:39.651 (R-N602_Plugin) Disconnect event received for '192.168.1.131:41100'.
2018-04-23 20:00:39.651 (R-N602_Plugin) Pushing 'onDisconnectCallback' on to queue
2018-04-23 20:00:39.651 (R-N602_Plugin) Processing 'onDisconnectCallback' message
2018-04-23 20:00:39.651 (R-N602_Plugin) Calling message handler 'onDisconnect'.
2018-04-23 20:00:39.651 (R-N602_Plugin) onDisconnect called
2018-04-23 20:00:59.553 (R-N602_Plugin) Pushing 'onHeartbeatCallback' on to queue
2018-04-23 20:00:59.578 (R-N602_Plugin) Processing 'onHeartbeatCallback' message
2018-04-23 20:00:59.578 (R-N602_Plugin) Calling message handler 'onHeartbeat'.
2018-04-23 20:00:59.578 (R-N602_Plugin) onHeartbeat called. Connected: False
2018-04-23 20:01:19.556 (R-N602_Plugin) Pushing 'onHeartbeatCallback' on to queue
2018-04-23 20:01:19.604 (R-N602_Plugin) Processing 'onHeartbeatCallback' message
2018-04-23 20:01:19.604 (R-N602_Plugin) Calling message handler 'onHeartbeat'.
2018-04-23 20:01:19.604 (R-N602_Plugin) onHeartbeat called. Connected: False
2018-04-23 20:01:39.559 (R-N602_Plugin) Pushing 'onHeartbeatCallback' on to queue
2018-04-23 20:01:39.584 (R-N602_Plugin) Processing 'onHeartbeatCallback' message
2018-04-23 20:01:39.584 (R-N602_Plugin) Calling message handler 'onHeartbeat'.
2018-04-23 20:01:39.584 (R-N602_Plugin) onHeartbeat called. Connected: False
2018-04-23 20:01:39.584 (R-N602_Plugin) Pushing 'ConnectDirective' on to queue
2018-04-23 20:01:39.584 (R-N602_Plugin) Processing 'ConnectDirective' message
2018-04-23 20:01:39.584 (R-N602_Plugin) Transport set to: 'TCP/IP', 192.168.1.131:41100.
2018-04-23 20:01:39.584 PluginSystem: Starting I/O service thread.
2018-04-23 20:01:39.584 (R-N602_Plugin) Connect directive received, action initiated successfully.
2018-04-23 20:01:39.585 (R-N602_Plugin) Pushing 'onConnectCallback' on to queue
2018-04-23 20:01:39.585 (R-N602_Plugin) Pushing 'DisconnectedEvent' on to queue
2018-04-23 20:01:39.634 (R-N602_Plugin) Processing 'onConnectCallback' message
2018-04-23 20:01:39.634 (R-N602_Plugin) Calling message handler 'onConnect'.
2018-04-23 20:01:39.634 (R-N602_Plugin) onConnect called. Status: 111
2018-04-23 20:01:39.635 (R-N602_Plugin) Processing 'DisconnectedEvent' message
2018-04-23 20:01:39.635 (R-N602_Plugin) Disconnect event received for '192.168.1.131:41100'.
2018-04-23 20:01:39.635 (R-N602_Plugin) Pushing 'onDisconnectCallback' on to queue
2018-04-23 20:01:39.635 (R-N602_Plugin) Processing 'onDisconnectCallback' message
2018-04-23 20:01:39.635 (R-N602_Plugin) Calling message handler 'onDisconnect'.
2018-04-23 20:01:39.635 (R-N602_Plugin) onDisconnect called

assenzuid
Posts: 166
Joined: Friday 13 November 2015 10:11
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands, Emmen Area
Contact:

Re: Yamaha AV Receiver Plugin

Post by assenzuid » Tuesday 24 April 2018 20:25

Log still filled with

Code: Select all

2018-04-24 20:24:15.955 Error: (Yamaha RX-A1010) 'onHeartbeat' failed 'AttributeError':''BasePlugin' object has no attribute 'zones''.
2018-04-24 20:24:15.955 Error: (Yamaha RX-A1010) ----> Line 396 in /home/pi/domoticz/plugins/YamahaPlug/plugin.py, function onHeartbeat
2018-04-24 20:24:15.955 Error: (Yamaha RX-A1010) ----> Line 350 in /home/pi/domoticz/plugins/YamahaPlug/plugin.py, function onHeartbeat

mrkrabs
Posts: 42
Joined: Sunday 12 March 2017 15:42
Target OS: Raspberry Pi
Domoticz version: 3.9589
Contact:

Re: Yamaha AV Receiver Plugin

Post by mrkrabs » Saturday 21 July 2018 6:42

Hi, thanks for the great plugin! But unfortunately i am having an issue ever since i upgraded to the latest version. When i start the plugin, it floods the log with:

Code: Select all

2018-07-21 06:40:18.412 Status: (Yamaha) Started.
2018-07-21 06:40:19.184 Status: (Yamaha) Initialized version 2.0.0, author 'thomasvillagers'
2018-07-21 06:40:19.185 Status: (Yamaha) Entering work loop.
2018-07-21 06:40:19.457 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.457 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.457 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.457 Error: (Yamaha) ----> Line 132 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.458 Error: (Yamaha) ----> Line 106 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getMediaDevice
2018-07-21 06:40:19.463 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.463 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.463 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.463 Error: (Yamaha) ----> Line 136 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.463 Error: (Yamaha) ----> Line 201 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function setVolume
2018-07-21 06:40:19.464 Error: (Yamaha) ----> Line 112 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getVolumeDevice
2018-07-21 06:40:19.464 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.465 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.465 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.465 Error: (Yamaha) ----> Line 134 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.465 Error: (Yamaha) ----> Line 216 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function setInput
2018-07-21 06:40:19.466 Error: (Yamaha) ----> Line 109 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getInputDevice
2018-07-21 06:40:19.466 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.467 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.467 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.467 Error: (Yamaha) ----> Line 139 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.467 Error: (Yamaha) ----> Line 112 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getVolumeDevice
2018-07-21 06:40:19.468 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.468 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.468 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.469 Error: (Yamaha) ----> Line 141 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.469 Error: (Yamaha) ----> Line 204 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function setDspProgram
2018-07-21 06:40:19.469 Error: (Yamaha) ----> Line 115 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getDspProgramDevice
I have tried completely removing the plugin including the directory and reinstalling but with the same result. Does anyone have any ideas? Thank you.

Fleshi
Posts: 18
Joined: Tuesday 23 May 2017 21:18
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: Yamaha AV Receiver Plugin

Post by Fleshi » Wednesday 12 September 2018 21:52

mrkrabs wrote:
Saturday 21 July 2018 6:42
Hi, thanks for the great plugin! But unfortunately i am having an issue ever since i upgraded to the latest version. When i start the plugin, it floods the log with:

Code: Select all

2018-07-21 06:40:18.412 Status: (Yamaha) Started.
2018-07-21 06:40:19.184 Status: (Yamaha) Initialized version 2.0.0, author 'thomasvillagers'
2018-07-21 06:40:19.185 Status: (Yamaha) Entering work loop.
2018-07-21 06:40:19.457 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.457 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.457 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.457 Error: (Yamaha) ----> Line 132 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.458 Error: (Yamaha) ----> Line 106 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getMediaDevice
2018-07-21 06:40:19.463 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.463 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.463 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.463 Error: (Yamaha) ----> Line 136 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.463 Error: (Yamaha) ----> Line 201 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function setVolume
2018-07-21 06:40:19.464 Error: (Yamaha) ----> Line 112 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getVolumeDevice
2018-07-21 06:40:19.464 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.465 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.465 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.465 Error: (Yamaha) ----> Line 134 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.465 Error: (Yamaha) ----> Line 216 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function setInput
2018-07-21 06:40:19.466 Error: (Yamaha) ----> Line 109 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getInputDevice
2018-07-21 06:40:19.466 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.467 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.467 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.467 Error: (Yamaha) ----> Line 139 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.467 Error: (Yamaha) ----> Line 112 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getVolumeDevice
2018-07-21 06:40:19.468 Error: (Yamaha) 'onMessage' failed 'KeyError'.
2018-07-21 06:40:19.468 Error: (Yamaha) ----> Line 380 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.468 Error: (Yamaha) ----> Line 317 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function onMessage
2018-07-21 06:40:19.469 Error: (Yamaha) ----> Line 141 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function handleMessage
2018-07-21 06:40:19.469 Error: (Yamaha) ----> Line 204 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function setDspProgram
2018-07-21 06:40:19.469 Error: (Yamaha) ----> Line 115 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py, function getDspProgramDevice
I have tried completely removing the plugin including the directory and reinstalling but with the same result. Does anyone have any ideas? Thank you.
I have the same problem, did you find a solution?

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests