Closed arretx closed 9 months ago
Hey there @etsinko, @onfreund, mind taking a look at this issue as it has been labeled with an integration (monoprice
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
monoprice documentation monoprice source (message by IssueLinks)
That's strange. There hasn't been any change to the integration in this release (and for quite a while now), and I also made sure the pyserial
dependency has stayed in the same version.
A couple of questions:
I'll back everything up again and migrate to the newest core to see if the problem comes back. No other changes, correct. I don't know about Python or its version. I just go with the latest core releases to HA. The adapter for the amp is a simple ethernet to rs232 converter. The amp doesn't support direct ethernet, unfortunately. ;). After I upgrade again, I'll see if I can't increase the logging level and grab some log information.
The amp doesn't support direct ethernet, unfortunately. ;)
I know, but you can have a computer connected to it and run serial over ip. Not relevant in this case though.
Please update after the upgrade.
Any news? Did you try 2023.11.2?
Hello in a similar situation .. suddenly this integration stopped working with latest upgrade currently on 2023.11.2
The one thing I noticed though was this error
Logger: homeassistant.components.monoprice
Source: components/monoprice/__init__.py:32
Integration: Monoprice 6-Zone Amplifier (documentation, issues)
First occurred: 4:22:00 PM (19 occurrences)
Last logged: 4:42:08 PM
Error connecting to Monoprice controller at /dev/ttyUSB0
when i login and check the /dev dir I see ttyUSB1
So it seems like the port has changed.. I was trying to check how to update my configuration so it looks at ttyUSB1 instead. The only place I can see this setting is in the UI under
Edit the name of this config entry
but I changed that value and restarted the host .. didn't help. I guess I could remove/readded the whole integration again but was hoping to avoid all that drama.
I did some more poking. I removed all the monoprice integrations/readded and pointed to USB1. Then I restarted and see this
it's just repeating over and over
OK last post :)
I did a hard reboot of the host for HASS. Then I noticed the USB0 had returned .. I removed the monoprice integration and readded it .. presto it works .. no idea what happened it's all working now on version
Note .. I have automated nightly backups .. if I run into any surprising issue after an upgrade it's always nice to have a backup I can restore the system to!
I lied .. was working then randomly stopped .. I see this error now .. after switching back to USB0
@pookieman seems like you're seeing different errors. Are you seeing the broken pipe error that the OP is?
Also, @pookieman which hardware are you running on?
@pookieman seems like you're seeing different errors. Are you seeing the broken pipe error that the OP is?
@OnFreund I'm not .. I just stumbled across this when I ran into issue's y'day
Also, @pookieman which hardware are you running on?
@OnFreund so I'm running HA OS version on a Proxmox VM
After I sent that last post last night I restarted the whole VM .. it's been almost a day and the error hasn't re-occurred - if it does I'll collect more info and post.
And I haven't had a chance to test upgrade again, but I'll do it as soon as I can.
I too am having this issue. It works fine for a day or so but then breaks and I have to restart the integration.
It's not actually reoccurred for me (yet)
Is it coincidence? Today at 12:00 noon, the last automation that uses the amplifier was triggered. At about the same time, Core update 2024.1.0 was released.
This isn't the only integration I've experienced this with, but this one definitely quit responding exactly around the same time the new core version was released.
I have not yet upgraded. What would cause integrations to quit working simply because there's a pending update?
I don't think it's directly related, but it could be that your hardware is reaching some capacity. Maybe try a powered USB hub for your adapter?
It must be directly related as upgrading to 24.1.0 fixed it. I don’t use a USB adapter. I have an Ethernet to Serial adapter with its own power source.
[image: photo] Jon Griffith REALTOR®, HomeSmart
480-463-4062| @.***
http://realtor.jongriffith.com 10601 N. Hayden Road, Suite I-100 | @RealScottsdale http://facebook.com/realscottsdaleliving http://twitter.com/realscottsdale http://www.youtube.com/realscottsdaleliving https://www.linkedin.com/in/jonathangriffith Create your own email signature https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=
On Thu, Jan 4, 2024 at 12:12 AM On Freund @.***> wrote:
I don't think it's directly related, but it could be that your hardware is reaching some capacity. Maybe try a powered USB hub for your adapter?
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/103399#issuecomment-1876562228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHURKUROK2P75TQVJJFCDETYMZI6XAVCNFSM6AAAAAA65YDYY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZWGU3DEMRSHA . You are receiving this because you authored the thread.Message ID: @.***>
It must be directly related as upgrading to 24.1.0 fixed it.
Most likely coincidental - there have been no recent changes to the integration (the last major one was 2 years ago). The only other explanation I can think of is that 23.10 and 23.11 were somehow using your system resources heavily causing the serial stack to fail.
I don’t use a USB adapter. I have an Ethernet to Serial adapter with its own power source.
What does it connect to on your machine? A NIC? What's your connection string?
This problem originally started back at the end of October, perhaps even on November 1. My last post on it was November 16th, and I decided to take a risk by upgrading to the previous version which was 2023.11 As I think back to it, the original problem began around that same time and I chose not to upgrade to 2023.11 until after the 16th of November. When I brought the system up to 2023.11.3, it started working again, so I thought nothing of it.
It's currently working, as I've upgraded to 24.1.0.
The strange thing about it is that any time there is a pending update that I haven't applied (core updates, not anything else) certain integrations of HA stop working until I update. This one is now behaving the same way.
So, what I'll do is watch the behavior when the next update is released and see if the problem happens again.
Like you suggest, it could be resource related, but I'm not sure how as I've allocated plenty of resources to the VM running HA. My unraid box has 32GB ram and 42.3 billion cores (exxageration, obviously). I'll keep a lookout and follow up if it happens again at that time. Otherwise, it's a gremlin.
ok, based on that description, my hypothesis is some resource leak. The availability of an update is probably correlated with a long uptime, and the upgrade causes a restart which releases the resources and makes everything work again. I doubt it's related specifically to the Monoprice integration though.
I agree. Sounds likely. In every case it has resolved itself with an upgrade, but it certainly does color the stability experience. Thanks for the quick response.
The problem
Home Assistant 2023.10.5 Supervisor 2023.10.1 Operating System 11.1 Frontend 20231005.0 - latest
I'm running this as a VM on Unraid (qcow2, I believe)
The integration failing: Monoprice
What version of Home Assistant Core has the issue?
2023.11.1
What was the last working version of Home Assistant Core?
2023.10.5
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Monoprice
Link to integration documentation on our website
https://www.home-assistant.io/integrations/monoprice/
Diagnostics information
There seems to be no debug link on the integration page. I have already rolled back to the previous HAOS to avoid the problem.
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
Strange behavior. What happens is the devices (6 of which are enabled, the remaining 12 are disabled) fail to respond to any controls issued from the media_player control for each zone, producing the
BrokenPipeError: [Errno 32]
If I delete the integration and reconfigure it from scratch, it works for a short period of time, and then fails again.
Since there's an RS232 to Ethernet Adapter between the Monoprice Amp and Home Assistant, I thought perhaps that might be the problem, but it's working as expected. No manner of rebooting those devices changes anything.
I crossed my fingers and rolled back to my most recent version with a full restore and everything was back to normal, except for one big problem that I revealed that's not related. A full restore wiped out my mapped Media folder in the Storage setup which is on my NAS. I'll save that issue for another day.