Yamaha AV Receiver Plugin

Python and python framework

Moderator: leecollings

gschmidt
Posts: 200
Joined: Thursday 20 December 2018 11:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Yamaha AV Receiver Plugin

Post by gschmidt »

Anyone tested the yamaha receiver plugin i.c.w. google home voice commands (controlicz)?
gschmidt
Posts: 200
Joined: Thursday 20 December 2018 11:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Yamaha AV Receiver Plugin

Post by gschmidt »

Hi,

Installed the Yamaha plugin to control my RX-V671 Receiver and it is working, nice Plugin!

I have only issue...
Since only 4 scene buttons are available, my idea was to create "Group (Scenes)" in Domoticz. This way you can unlimited create scenes.
However the existing "Yamaha AV Receiver - DSP Program Main" Switch has 20 levels (= 20 different DSP programs, I removed Spotify because this is no option for my receiver).
When I set the "Level" in the "Group Scene" above 100%, the "Yamaha AV Receiver - DSP Program Main" Switch always selects the 10th level.

E.g.: If Level 110% was selected it should switch to DSP "Standard", but it switches to "Music Video" which is the 10th level

It looks like that when creating a "Group (Scene)" the amount of levels have a maximum of 10...
Is this a Yamaha Plugin issue or a Domoticz Group issue?

Greetzzz,

Gerben
tjabas
Posts: 562
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Yamaha AV Receiver Plugin

Post by tjabas »

A couple of days ago this plugin stopped working, has there been any changes on the plugin?

i get these error messages:


2019-01-31 21:52:46.614 Error: (Yamaha surround) 'onHeartbeat' failed 'AttributeError':''BasePlugin' object has no attribute 'zones''.
2019-01-31 21:52:46.614 Error: (Yamaha surround) ----> Line 447 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py', function onHeartbeat
2019-01-31 21:52:46.614 Error: (Yamaha surround) ----> Line 401 in '/home/pi/domoticz/plugins/yamaha-av-receiver/plugin.py', function onHeartbeat

i have deleted and reinstalled it several times ,but nothing helps
i run the lates domoticz beta.
tjabas
Posts: 562
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Yamaha AV Receiver Plugin

Post by tjabas »

i guess that these problems begun after i had installed the roborock plugin, is there anyone else who have problems with the yamaha plugin?
Carthman
Posts: 31
Joined: Friday 08 February 2019 8:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: France
Contact:

Re: Yamaha AV Receiver Plugin

Post by Carthman »

Hi,

This plugin is working fine with my Yamaha 3070 !
It's very nice to switch on the receiver remotly (is in my Home-Cinema on the basement).

Do you know if there is incoming improvements ?
I'm looking to have a live status of the receiver (playing a movie, paused,...) !

Many thanks !
keson
Posts: 4
Joined: Sunday 19 February 2017 11:07
Target OS: Linux
Domoticz version: 2021.1
Location: Czech
Contact:

Re: Yamaha AV Receiver Plugin

Post by keson »

Hi there!
Just purchased the Yamaha Receiver and I wanted to add it to my latest version of Domoticz (updated to latest beta 4.10427 just now, installed python 3.4, installed the python script into plugins, but I do not see it under new hardware list. What am I doing wrong?
Calzor Suzay
Posts: 145
Joined: Tuesday 08 July 2014 15:10
Target OS: -
Domoticz version: 4.9700
Location: UK
Contact:

Re: Yamaha AV Receiver Plugin

Post by Calzor Suzay »

Any reason why with this running I can't use other software?
With it running, the app on my phone cannot return the data and I can't modify anything like volume, source etc.
Calzor Suzay
Posts: 145
Joined: Tuesday 08 July 2014 15:10
Target OS: -
Domoticz version: 4.9700
Location: UK
Contact:

Re: Yamaha AV Receiver Plugin

Post by Calzor Suzay »

No one else have this issue?
I've had to disable the plugin for now which is a shame as it worked really well, I just can't control the amp from anything else remotely whilst it's running. Seems to lock the resource or whatever open.

Happy to run tests etc.
gschmidt
Posts: 200
Joined: Thursday 20 December 2018 11:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Yamaha AV Receiver Plugin

Post by gschmidt »

tjabas wrote: Friday 01 February 2019 10:16 i guess that these problems begun after i had installed the roborock plugin, is there anyone else who have problems with the yamaha plugin?
Yep I got the same problem after installing the Domoticz-Google Plugin.
After removing both plugins and reinstall yamaha plugin everything was OK again
PieterS
Posts: 197
Joined: Wednesday 31 May 2017 16:06
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: NL
Contact:

Re: Yamaha AV Receiver Plugin

Post by PieterS »

Installed the latest version from Github in Domoticz V 4.9700 on my Synology with DSM 6.2 and Python version 3.5.1.

I use a Yamaha RX-A730 Receiver and its IP is set to 192.168.1.21. I can control it with a browser on port 80

No devices visible in Domoticz. Got some errors in log. It seems there happens a lot. But no success for really creating devices in Domoticz. Devices are invisible... :roll:

Any help appreciated so that I control my receiver in Domoticz.

Code: Select all

2019-03-02 19:48:52.285  Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
2019-03-02 19:48:52.285  Status: Build Hash: a3a4590-modified, Date: 2018-06-23 16:24:51
2019-03-02 19:48:52.285  Status: Startup Path: /usr/local/domoticz/
2019-03-02 19:48:57.113  Status: PluginSystem: Started, Python version '3.5.1'.
2019-03-02 19:48:57.118  Active notification Subsystems: email, http (2/13)
2019-03-02 19:48:57.530  Status: WebServer(HTTP) started on address: :: with port 8084
2019-03-02 19:48:57.753  Status: WebServer(SSL) started on address: :: with port 8443
2019-03-02 19:48:57.754  Status: Proxymanager started.
2019-03-02 19:49:01.648  Status: (Yamaha AV Receiver) Started.
2019-03-02 19:49:01.648  Status: EventSystem: reset all events...
2019-03-02 19:49:01.847  Status: PluginSystem: Entering work loop.
2019-03-02 19:49:01.903  Status: (Yamaha AV Receiver) Entering work loop.
2019-03-02 19:49:01.903  Status: (Yamaha AV Receiver) Initialized version 2.0.2, author 'thomasvillagers'
2019-03-02 19:49:02.156  Status: OpenZWave: using config in: /usr/local/domoticz/Config/
[32m2019-03-02 19:49:02.280 Always, OpenZwave Version 1.4.3084 Starting Up
[39m2019-03-02 19:49:02.280  Status: OpenZWave: Starting...
2019-03-02 19:49:02.280  Status: OpenZWave: Version: 1.4-3084-ge67f12cb-dirty
2019-03-02 19:49:02.396  Status: Python EventSystem: Initalizing event module.
2019-03-02 19:49:02.402  Status: EventSystem: Started
2019-03-02 19:49:02.402  Status: EventSystem: Queue thread started...
2019-03-02 19:49:02.502  [1;31mError: (Yamaha AV Receiver) 'onMessage' failed 'KeyError'.[0;0m
2019-03-02 19:49:02.502  [1;31mError: (Yamaha AV Receiver) ----> Line 431 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:49:02.502  [1;31mError: (Yamaha AV Receiver) ----> Line 368 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:49:02.502  [1;31mError: (Yamaha AV Receiver) ----> Line 150 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function handleMessage[0;0m
2019-03-02 19:49:02.502  [1;31mError: (Yamaha AV Receiver) ----> Line 121 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function getMediaDevice[0;0m
And furtheron in the log:

Code: Select all

2019-03-02 19:52:07.676  Status: (Yamaha AV Receiver) Stop directive received.
2019-03-02 19:52:07.677  (Yamaha AV Receiver) onStop called
2019-03-02 19:52:07.776  Status: (Yamaha AV Receiver) Stopping threads.
2019-03-02 19:52:07.948  Status: (Yamaha AV Receiver) Exiting work loop.
2019-03-02 19:52:07.948  Status: (Yamaha AV Receiver) Stopped.
2019-03-02 19:52:07.948  Status: (Yamaha AV Receiver) Started.
2019-03-02 19:52:08.034  Status: (Yamaha AV Receiver) Initialized version 2.0.2, author 'thomasvillagers'
2019-03-02 19:52:08.034  Status: (Yamaha AV Receiver) Entering work loop.
2019-03-02 19:52:08.085  (Yamaha AV Receiver) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2019-03-02 19:52:08.086  (Yamaha AV Receiver) onStart called
2019-03-02 19:52:08.086  (Yamaha AV Receiver) Creating images from file '/usr/local/domoticz/var/plugins/Yamaha AV Receiver/icons.zip'.
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Create Media Device - Main
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Creating device 'Main'.
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Create Volume Device - Main
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Creating device 'Volume Main'.
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Create Input Device - Main
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Creating device 'Input Main'.
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Create DSP Program Device - Main
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Creating device 'DSP Program'.
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Create Scene Device - Main
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Creating device 'Scene Main'.
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Create Straight Mode Device - Main
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Creating device 'Straight Mode'.
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Pushing 'ProtocolDirective' on to queue
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Pushing 'ConnectDirective' on to queue
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Pushing 'PollIntervalDirective' on to queue
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Processing 'ProtocolDirective' message
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Protocol set to: 'Line'.
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Processing 'ConnectDirective' message
2019-03-02 19:52:08.089  (Yamaha AV Receiver) Transport set to: 'TCP/IP', 192.168.1.21:50000.
2019-03-02 19:52:08.090  PluginSystem: Starting I/O service thread.
2019-03-02 19:52:08.090  (Yamaha AV Receiver) Connect directive received, action initiated successfully.
2019-03-02 19:52:08.090  (Yamaha AV Receiver) Processing 'PollIntervalDirective' message
2019-03-02 19:52:08.090  (Yamaha AV Receiver) Heartbeat interval set to: 20.
2019-03-02 19:52:08.090  (Yamaha AV Receiver) Pushing 'onConnectCallback' on to queue
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Processing 'onConnectCallback' message
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Calling message handler 'onConnect'.
2019-03-02 19:52:08.140  (Yamaha AV Receiver) onConnect called. Status: 0
2019-03-02 19:52:08.140  (Yamaha AV Receiver) onHeartbeat called. Connected: True
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Pushing 'WriteDirective' on to queue
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Pushing 'WriteDirective' on to queue
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Pushing 'WriteDirective' on to queue
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Pushing 'WriteDirective' on to queue
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Pushing 'WriteDirective' on to queue
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Pushing 'WriteDirective' on to queue
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Processing 'WriteDirective' message
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Sending 13 bytes of data
2019-03-02 19:52:08.140  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 50 57 52 3d 3f 0d 0a .. .. .. .. .. .. ..     @MAIN:PWR=?..
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Processing 'WriteDirective' message
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Sending 13 bytes of data
2019-03-02 19:52:08.140  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 56 4f 4c 3d 3f 0d 0a .. .. .. .. .. .. ..     @MAIN:VOL=?..
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Processing 'WriteDirective' message
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Sending 13 bytes of data
2019-03-02 19:52:08.140  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 49 4e 50 3d 3f 0d 0a .. .. .. .. .. .. ..     @MAIN:INP=?..
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Processing 'WriteDirective' message
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Sending 14 bytes of data
2019-03-02 19:52:08.140  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 4d 55 54 45 3d 3f 0d 0a .. .. .. .. .. ..     @MAIN:MUTE=?..
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Processing 'WriteDirective' message
2019-03-02 19:52:08.140  (Yamaha AV Receiver) Sending 18 bytes of data
2019-03-02 19:52:08.141  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 53 4f 55 4e 44 50 52 47 3d 3f 0d 0a .. ..     @MAIN:SOUNDPRG=?..
2019-03-02 19:52:08.141  (Yamaha AV Receiver) Processing 'WriteDirective' message
2019-03-02 19:52:08.141  (Yamaha AV Receiver) Sending 18 bytes of data
2019-03-02 19:52:08.141  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 53 54 52 41 49 47 48 54 3d 3f 0d 0a .. ..     @MAIN:STRAIGHT=?..
2019-03-02 19:52:08.174  (Yamaha AV Receiver) Pushing 'ReadEvent' on to queue
2019-03-02 19:52:08.191  (Yamaha AV Receiver) Processing 'ReadEvent' message
2019-03-02 19:52:08.191  (Yamaha AV Receiver) Received 14 bytes of data
2019-03-02 19:52:08.191  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 50 57 52 3d 4f 6e 0d 0a .. .. .. .. .. ..     @MAIN:PWR=On..
2019-03-02 19:52:08.191  (Yamaha AV Receiver) Pushing 'onMessageCallback' on to queue
2019-03-02 19:52:08.191  (Yamaha AV Receiver) Processing 'onMessageCallback' message
2019-03-02 19:52:08.191  (Yamaha AV Receiver) Calling message handler 'onMessage'.
2019-03-02 19:52:08.191  (Yamaha AV Receiver) onMessage called
2019-03-02 19:52:08.191  (Yamaha AV Receiver) @MAIN:PWR=On
2019-03-02 19:52:08.191  [1;31mError: (Yamaha AV Receiver) 'onMessage' failed 'KeyError'.[0;0m
2019-03-02 19:52:08.191  [1;31mError: (Yamaha AV Receiver) ----> Line 431 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:08.191  [1;31mError: (Yamaha AV Receiver) ----> Line 368 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:08.191  [1;31mError: (Yamaha AV Receiver) ----> Line 150 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function handleMessage[0;0m
2019-03-02 19:52:08.191  [1;31mError: (Yamaha AV Receiver) ----> Line 121 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function getMediaDevice[0;0m
2019-03-02 19:52:08.194  (Yamaha AV Receiver) Pushing 'ReadEvent' on to queue
2019-03-02 19:52:08.241  (Yamaha AV Receiver) Processing 'ReadEvent' message
2019-03-02 19:52:08.241  (Yamaha AV Receiver) Received 101 bytes of data
2019-03-02 19:52:08.241  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 56 4f 4c 3d 2d 35 32 2e 30 0d 0a 40 4d 41     @MAIN:VOL=-52.0..@MA
2019-03-02 19:52:08.241  (Yamaha AV Receiver)     49 4e 3a 49 4e 50 3d 4e 45 54 20 52 41 44 49 4f 0d 0a 40 4d     IN:INP=NET.RADIO..@M
2019-03-02 19:52:08.241  (Yamaha AV Receiver)     41 49 4e 3a 4d 55 54 45 3d 4f 66 66 0d 0a 40 4d 41 49 4e 3a     AIN:MUTE=Off..@MAIN:
2019-03-02 19:52:08.241  (Yamaha AV Receiver)     53 4f 55 4e 44 50 52 47 3d 32 63 68 20 53 74 65 72 65 6f 0d     SOUNDPRG=2ch.Stereo.
2019-03-02 19:52:08.241  (Yamaha AV Receiver)     0a 40 4d 41 49 4e 3a 53 54 52 41 49 47 48 54 3d 4f 66 66 0d     .@MAIN:STRAIGHT=Off.
2019-03-02 19:52:08.241  (Yamaha AV Receiver)     0a .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     .
2019-03-02 19:52:08.241  (Yamaha AV Receiver) Pushing 'onMessageCallback' on to queue
2019-03-02 19:52:08.242  (Yamaha AV Receiver) Pushing 'onMessageCallback' on to queue
2019-03-02 19:52:08.242  (Yamaha AV Receiver) Pushing 'onMessageCallback' on to queue
2019-03-02 19:52:08.242  (Yamaha AV Receiver) Pushing 'onMessageCallback' on to queue
2019-03-02 19:52:08.242  (Yamaha AV Receiver) Pushing 'onMessageCallback' on to queue
2019-03-02 19:52:08.242  (Yamaha AV Receiver) Processing 'onMessageCallback' message
2019-03-02 19:52:08.242  (Yamaha AV Receiver) Calling message handler 'onMessage'.
2019-03-02 19:52:08.242  (Yamaha AV Receiver) onMessage called
2019-03-02 19:52:08.242  (Yamaha AV Receiver) @MAIN:VOL=-52.0
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) 'onMessage' failed 'KeyError'.[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 431 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 368 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 154 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function handleMessage[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 233 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function setVolume[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 127 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function getVolumeDevice[0;0m
2019-03-02 19:52:08.242  (Yamaha AV Receiver) Processing 'onMessageCallback' message
2019-03-02 19:52:08.242  (Yamaha AV Receiver) Calling message handler 'onMessage'.
2019-03-02 19:52:08.242  (Yamaha AV Receiver) onMessage called
2019-03-02 19:52:08.242  (Yamaha AV Receiver) @MAIN:INP=NET RADIO
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) 'onMessage' failed 'KeyError'.[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 431 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 368 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 152 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function handleMessage[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 254 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function setInput[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 124 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function getInputDevice[0;0m
2019-03-02 19:52:08.242  (Yamaha AV Receiver) Processing 'onMessageCallback' message
2019-03-02 19:52:08.242  (Yamaha AV Receiver) Calling message handler 'onMessage'.
2019-03-02 19:52:08.242  (Yamaha AV Receiver) onMessage called
2019-03-02 19:52:08.242  (Yamaha AV Receiver) @MAIN:MUTE=Off
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) 'onMessage' failed 'KeyError'.[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 431 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 368 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 157 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function handleMessage[0;0m
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) ----> Line 127 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function getVolumeDevice[0;0m
2019-03-02 19:52:08.242  (Yamaha AV Receiver) Processing 'onMessageCallback' message
2019-03-02 19:52:08.242  (Yamaha AV Receiver) Calling message handler 'onMessage'.
2019-03-02 19:52:08.242  (Yamaha AV Receiver) onMessage called
2019-03-02 19:52:08.242  (Yamaha AV Receiver) @MAIN:SOUNDPRG=2ch Stereo
2019-03-02 19:52:08.242  [1;31mError: (Yamaha AV Receiver) 'onMessage' failed 'KeyError'.[0;0m
2019-03-02 19:52:08.243  [1;31mError: (Yamaha AV Receiver) ----> Line 431 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:08.243  [1;31mError: (Yamaha AV Receiver) ----> Line 368 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:08.243  [1;31mError: (Yamaha AV Receiver) ----> Line 159 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function handleMessage[0;0m
2019-03-02 19:52:08.243  [1;31mError: (Yamaha AV Receiver) ----> Line 236 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function setDspProgram[0;0m
2019-03-02 19:52:08.243  [1;31mError: (Yamaha AV Receiver) ----> Line 130 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function getDspProgramDevice[0;0m
2019-03-02 19:52:08.243  (Yamaha AV Receiver) Processing 'onMessageCallback' message
2019-03-02 19:52:08.243  (Yamaha AV Receiver) Calling message handler 'onMessage'.
2019-03-02 19:52:08.243  (Yamaha AV Receiver) onMessage called
2019-03-02 19:52:08.243  (Yamaha AV Receiver) @MAIN:STRAIGHT=Off
2019-03-02 19:52:17.536  (Yamaha AV Receiver) Pushing 'onHeartbeatCallback' on to queue
2019-03-02 19:52:17.555  (Yamaha AV Receiver) Processing 'onHeartbeatCallback' message
2019-03-02 19:52:17.555  (Yamaha AV Receiver) Calling message handler 'onHeartbeat'.
2019-03-02 19:52:17.555  (Yamaha AV Receiver) onHeartbeat called. Connected: True
2019-03-02 19:52:17.555  (Yamaha AV Receiver) Pushing 'WriteDirective' on to queue
2019-03-02 19:52:17.555  (Yamaha AV Receiver) Pushing 'WriteDirective' on to queue
2019-03-02 19:52:17.555  (Yamaha AV Receiver) Pushing 'WriteDirective' on to queue
2019-03-02 19:52:17.555  (Yamaha AV Receiver) Pushing 'WriteDirective' on to queue
2019-03-02 19:52:17.555  (Yamaha AV Receiver) Pushing 'WriteDirective' on to queue
2019-03-02 19:52:17.555  (Yamaha AV Receiver) Pushing 'WriteDirective' on to queue
2019-03-02 19:52:17.555  (Yamaha AV Receiver) Processing 'WriteDirective' message
2019-03-02 19:52:17.556  (Yamaha AV Receiver) Sending 13 bytes of data
2019-03-02 19:52:17.556  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 50 57 52 3d 3f 0d 0a .. .. .. .. .. .. ..     @MAIN:PWR=?..
2019-03-02 19:52:17.556  (Yamaha AV Receiver) Processing 'WriteDirective' message
2019-03-02 19:52:17.556  (Yamaha AV Receiver) Sending 13 bytes of data
2019-03-02 19:52:17.556  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 56 4f 4c 3d 3f 0d 0a .. .. .. .. .. .. ..     @MAIN:VOL=?..
2019-03-02 19:52:17.556  (Yamaha AV Receiver) Processing 'WriteDirective' message
2019-03-02 19:52:17.556  (Yamaha AV Receiver) Sending 13 bytes of data
2019-03-02 19:52:17.556  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 49 4e 50 3d 3f 0d 0a .. .. .. .. .. .. ..     @MAIN:INP=?..
2019-03-02 19:52:17.556  (Yamaha AV Receiver) Processing 'WriteDirective' message
2019-03-02 19:52:17.556  (Yamaha AV Receiver) Sending 14 bytes of data
2019-03-02 19:52:17.556  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 4d 55 54 45 3d 3f 0d 0a .. .. .. .. .. ..     @MAIN:MUTE=?..
2019-03-02 19:52:17.556  (Yamaha AV Receiver) Processing 'WriteDirective' message
2019-03-02 19:52:17.556  (Yamaha AV Receiver) Sending 18 bytes of data
2019-03-02 19:52:17.556  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 53 4f 55 4e 44 50 52 47 3d 3f 0d 0a .. ..     @MAIN:SOUNDPRG=?..
2019-03-02 19:52:17.556  (Yamaha AV Receiver) Processing 'WriteDirective' message
2019-03-02 19:52:17.556  (Yamaha AV Receiver) Sending 18 bytes of data
2019-03-02 19:52:17.556  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 53 54 52 41 49 47 48 54 3d 3f 0d 0a .. ..     @MAIN:STRAIGHT=?..
2019-03-02 19:52:17.590  (Yamaha AV Receiver) Pushing 'ReadEvent' on to queue
2019-03-02 19:52:17.606  (Yamaha AV Receiver) Processing 'ReadEvent' message
2019-03-02 19:52:17.606  (Yamaha AV Receiver) Received 14 bytes of data
2019-03-02 19:52:17.606  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 50 57 52 3d 4f 6e 0d 0a .. .. .. .. .. ..     @MAIN:PWR=On..
2019-03-02 19:52:17.606  (Yamaha AV Receiver) Pushing 'onMessageCallback' on to queue
2019-03-02 19:52:17.606  (Yamaha AV Receiver) Processing 'onMessageCallback' message
2019-03-02 19:52:17.606  (Yamaha AV Receiver) Calling message handler 'onMessage'.
2019-03-02 19:52:17.606  (Yamaha AV Receiver) onMessage called
2019-03-02 19:52:17.606  (Yamaha AV Receiver) @MAIN:PWR=On
2019-03-02 19:52:17.606  [1;31mError: (Yamaha AV Receiver) 'onMessage' failed 'KeyError'.[0;0m
2019-03-02 19:52:17.606  [1;31mError: (Yamaha AV Receiver) ----> Line 431 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:17.606  [1;31mError: (Yamaha AV Receiver) ----> Line 368 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:17.607  [1;31mError: (Yamaha AV Receiver) ----> Line 150 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function handleMessage[0;0m
2019-03-02 19:52:17.607  [1;31mError: (Yamaha AV Receiver) ----> Line 121 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function getMediaDevice[0;0m
2019-03-02 19:52:17.610  (Yamaha AV Receiver) Pushing 'ReadEvent' on to queue
2019-03-02 19:52:17.657  (Yamaha AV Receiver) Processing 'ReadEvent' message
2019-03-02 19:52:17.657  (Yamaha AV Receiver) Received 101 bytes of data
2019-03-02 19:52:17.657  (Yamaha AV Receiver)     40 4d 41 49 4e 3a 56 4f 4c 3d 2d 35 32 2e 30 0d 0a 40 4d 41     @MAIN:VOL=-52.0..@MA
2019-03-02 19:52:17.657  (Yamaha AV Receiver)     49 4e 3a 49 4e 50 3d 4e 45 54 20 52 41 44 49 4f 0d 0a 40 4d     IN:INP=NET.RADIO..@M
2019-03-02 19:52:17.657  (Yamaha AV Receiver)     41 49 4e 3a 4d 55 54 45 3d 4f 66 66 0d 0a 40 4d 41 49 4e 3a     AIN:MUTE=Off..@MAIN:
2019-03-02 19:52:17.657  (Yamaha AV Receiver)     53 4f 55 4e 44 50 52 47 3d 32 63 68 20 53 74 65 72 65 6f 0d     SOUNDPRG=2ch.Stereo.
2019-03-02 19:52:17.657  (Yamaha AV Receiver)     0a 40 4d 41 49 4e 3a 53 54 52 41 49 47 48 54 3d 4f 66 66 0d     .@MAIN:STRAIGHT=Off.
2019-03-02 19:52:17.657  (Yamaha AV Receiver)     0a .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..     .
2019-03-02 19:52:17.657  (Yamaha AV Receiver) Pushing 'onMessageCallback' on to queue
2019-03-02 19:52:17.657  (Yamaha AV Receiver) Pushing 'onMessageCallback' on to queue
2019-03-02 19:52:17.657  (Yamaha AV Receiver) Pushing 'onMessageCallback' on to queue
2019-03-02 19:52:17.657  (Yamaha AV Receiver) Pushing 'onMessageCallback' on to queue
2019-03-02 19:52:17.657  (Yamaha AV Receiver) Pushing 'onMessageCallback' on to queue
2019-03-02 19:52:17.657  (Yamaha AV Receiver) Processing 'onMessageCallback' message
2019-03-02 19:52:17.657  (Yamaha AV Receiver) Calling message handler 'onMessage'.
2019-03-02 19:52:17.657  (Yamaha AV Receiver) onMessage called
2019-03-02 19:52:17.657  (Yamaha AV Receiver) @MAIN:VOL=-52.0
2019-03-02 19:52:17.657  [1;31mError: (Yamaha AV Receiver) 'onMessage' failed 'KeyError'.[0;0m
2019-03-02 19:52:17.657  [1;31mError: (Yamaha AV Receiver) ----> Line 431 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:17.657  [1;31mError: (Yamaha AV Receiver) ----> Line 368 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:17.657  [1;31mError: (Yamaha AV Receiver) ----> Line 154 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function handleMessage[0;0m
2019-03-02 19:52:17.657  [1;31mError: (Yamaha AV Receiver) ----> Line 233 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function setVolume[0;0m
2019-03-02 19:52:17.657  [1;31mError: (Yamaha AV Receiver) ----> Line 127 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function getVolumeDevice[0;0m
2019-03-02 19:52:17.657  (Yamaha AV Receiver) Processing 'onMessageCallback' message
2019-03-02 19:52:17.657  (Yamaha AV Receiver) Calling message handler 'onMessage'.
2019-03-02 19:52:17.657  (Yamaha AV Receiver) onMessage called
2019-03-02 19:52:17.657  (Yamaha AV Receiver) @MAIN:INP=NET RADIO
2019-03-02 19:52:17.657  [1;31mError: (Yamaha AV Receiver) 'onMessage' failed 'KeyError'.[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 431 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 368 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 152 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function handleMessage[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 254 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function setInput[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 124 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function getInputDevice[0;0m
2019-03-02 19:52:17.658  (Yamaha AV Receiver) Processing 'onMessageCallback' message
2019-03-02 19:52:17.658  (Yamaha AV Receiver) Calling message handler 'onMessage'.
2019-03-02 19:52:17.658  (Yamaha AV Receiver) onMessage called
2019-03-02 19:52:17.658  (Yamaha AV Receiver) @MAIN:MUTE=Off
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) 'onMessage' failed 'KeyError'.[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 431 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 368 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 157 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function handleMessage[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 127 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function getVolumeDevice[0;0m
2019-03-02 19:52:17.658  (Yamaha AV Receiver) Processing 'onMessageCallback' message
2019-03-02 19:52:17.658  (Yamaha AV Receiver) Calling message handler 'onMessage'.
2019-03-02 19:52:17.658  (Yamaha AV Receiver) onMessage called
2019-03-02 19:52:17.658  (Yamaha AV Receiver) @MAIN:SOUNDPRG=2ch Stereo
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) 'onMessage' failed 'KeyError'.[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 431 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 368 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function onMessage[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 159 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function handleMessage[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 236 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function setDspProgram[0;0m
2019-03-02 19:52:17.658  [1;31mError: (Yamaha AV Receiver) ----> Line 130 in /usr/local/domoticz/var/plugins/Yamaha AV Receiver/plugin.py, function getDspProgramDevice[0;0m
2019-03-02 19:52:17.658  (Yamaha AV Receiver) Processing 'onMessageCallback' message
2019-03-02 19:52:17.658  (Yamaha AV Receiver) Calling message handler 'onMessage'.
2019-03-02 19:52:17.658  (Yamaha AV Receiver) onMessage called
2019-03-02 19:52:17.658  (Yamaha AV Receiver) @MAIN:STRAIGHT=Off
Synology with Domoticz build (V2024.7) in Docker
jluc2808
Posts: 49
Joined: Thursday 18 January 2018 6:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Yamaha AV Receiver Plugin

Post by jluc2808 »

hello,
i have an error which i couldn't understand this append every 20 seconds
2019-08-18 17:18:54.403 Error: (Ampli RX-840): Async Read Exception (192.168.1.165:50000): 104, Connection reset by peer

if i look at line 104 :
Domoticz.Device(Name="Input " + self.zoneName, Unit=self.inputDeviceUnit, TypeName="Selector Switch", Options=inputControlOptions, Image=iconID, Used=1).Create()

the sequence is :
if self.inputDeviceUnit not in Devices:
Domoticz.Debug("Create Input Device - " + self.zoneName)
Domoticz.Device(Name="Input " + self.zoneName, Unit=self.inputDeviceUnit, TypeName="Selector Switch", Options=inputControlOptions, Image=iconID, Used=1).Create()

otherwise everything is working find , all my devices are created and i can control every of them.

any suggestion are welcome
thanks
jean-luc
jluc2808
Posts: 49
Joined: Thursday 18 January 2018 6:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Yamaha AV Receiver Plugin

Post by jluc2808 »

hello,
any suggestion to this error :
2019-08-18 17:18:54.403 Error: (Ampli RX-840): Async Read Exception (192.168.1.165:50000): 104, Connection reset by peer

how could i get more detail on the error handler
when i add the code
except:
pass

class PartyMode:
def __init__(self):
self.mediaDeviceUnit = 1
except:
pass

i get an error message syntax errors
Carthman
Posts: 31
Joined: Friday 08 February 2019 8:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: France
Contact:

Re: Yamaha AV Receiver Plugin

Post by Carthman »

Hello !

My Yamaha plugin is globally working fine, I just don't have any status (On/Off) of the Yamaha Main Switch.
I see entries in the log, but just with the hours of switching on or off, and the lines are empty.

The consequence is that I can't use it to switch on other devices.

Thanks for help and Merry Christmas !
Carthman
Posts: 31
Joined: Friday 08 February 2019 8:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: France
Contact:

Re: Yamaha AV Receiver Plugin

Post by Carthman »

I also tried to add a slave device to the Yamaha Main Switch, and nothing happened !
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest