Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote loosing connection to NZ8 after latest update #42

Closed
roninf opened this issue Feb 20, 2024 · 62 comments
Closed

Remote loosing connection to NZ8 after latest update #42

roninf opened this issue Feb 20, 2024 · 62 comments

Comments

@roninf
Copy link

roninf commented Feb 20, 2024

Hi all,

since the latest update the integration that has been setup through the HA UI seems to loose connection to my NZ8. (setup using yaml is not accepted anymore?)
All sensors showing unavailable and the remote is not able to turn on/off the device. Its only working after the initial setup (for a few seconds). At least its seems so...

Any Idea what i could/should check ?

BR

@iloveicedgreentea
Copy link
Owner

first confirm you are putting in the right info

entity name (same as your old entity name like nz8 or whatever)
host IP
password
timeout seconds

If that doesnt work turn on debug logs and send me that

  default: warning
  logs:
    homeassistant.config_entries: debug
    custom_components.jvc_projectors: debug

@roninf
Copy link
Author

roninf commented Feb 20, 2024

Entity names are correct. :)
I think it kind of solved by itself, but i guess it takes longer than usual to show/provide updates on states of the different sensors.

@iloveicedgreentea
Copy link
Owner

When you first go through the UI config, it attemps to connect to the PJ. If that fails, it should not add the integration. So if it added, it should be working. It usually takes up to a minute to refresh all the attributes. Can you post any logs that you see to make sure there are no errors on adding? And you are running 4.2.0?

@iloveicedgreentea
Copy link
Owner

4.2.1 should hopefully fix any outstanding issues. If you have any more feel free to reopen this

@roninf
Copy link
Author

roninf commented Feb 21, 2024

Thanks very much for the prompt response and your work on this integration!! Running on 4.2.0 i guess.

@roninf
Copy link
Author

roninf commented Mar 8, 2024

I still have massive issues using the integration not quite sure if these are the correct logs:

2024-02-26 16:02:34.697 WARNING (MainThread) [homeassistant.helpers.entity] Update of remote.theater_projector is taking over 10 seconds
2024-02-26 16:02:54.695 WARNING (MainThread) [homeassistant.components.remote] Updating jvc_projectors remote took longer than the scheduled update interval 0:00:30
2024-02-26 16:03:24.697 WARNING (MainThread) [homeassistant.components.remote] Updating jvc_projectors remote took longer than the scheduled update interval 0:00:30
2024-02-26 16:03:33.789 ERROR (MainThread) [JVC_projectors] Got a blank msg
2024-02-26 16:03:33.890 ERROR (MainThread) [JVC_projectors] Got a blank msg
2024-02-26 16:03:34.071 ERROR (MainThread) [custom_components.jvc_projectors.remote] Error getting attribute: Connection lost -- Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 389, in drain
    await self._protocol._drain_helper()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 166, in _drain_helper
    raise ConnectionResetError('Connection lost')
ConnectionResetError: Connection lost

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/jvc_projectors/remote.py", line 251, in update_worker
    value = await getter()
            ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/jvc_projector.py", line 440, in get_hdr_data
    return await self._get_attribute("hdr_data", ACKs.info_ack, HdrData)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/jvc_projector.py", line 314, in _get_attribute
    state, res = await self.commander.do_reference_op(command, ack)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 268, in do_reference_op
    msg, success = await self.send_command(
                   ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 82, in send_command
    return await self._do_command(send_command, ack, command_type)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 164, in _do_command
    raise ConnectionClosedError(err) from err
jvc_projector.error_classes.ConnectionClosedError: Connection lost
2024-02-26 16:03:54.701 ERROR (MainThread) [homeassistant.helpers.entity] Update for remote.theater_projector fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 377, in drain
    raise exc
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1061, in write
    n = self._sock.send(data)
        ^^^^^^^^^^^^^^^^^^^^^
BrokenPipeError: [Errno 32] Broken pipe

@iloveicedgreentea
Copy link
Owner

Can you try 4.2.3? You will have to show beta versions in hacs.

@roninf
Copy link
Author

roninf commented Mar 9, 2024

I have used 4.2.3 now and it shows online right now but i have had this several times before. I will see and let you know.

@roninf
Copy link
Author

roninf commented Mar 12, 2024

So it happened again i was able to turn on the projector using the integration but afterwards the projector is kind of dead. Not reacting to any command neither using ip nor IR with the regular remote. While its still showing a picture you cant even turn it off. The only way is cutting power... weird.

Logs show:

Got a blank msg
Received ack: b'1\n\x06\x89\x01I' != expected ack: b'\x06\x89\x01IS\n'
Received ack: b'F\n@\x89\x01P' != expected ack: b'\x06\x89\x01IS\n'
Received ack: b'M40\n\x06\x89' != expected ack: b'\x06\x89\x01IS\n'
Received ack: b'\x01IN\n' != expected ack: b'\x06\x89\x01PM\n'
Error getting attribute: replace() argument 1 must be str, not bytes -- Traceback (most recent call last): File "/config/custom_components/jvc_projectors/remote.py", line 251, in update_worker value = await getter() ^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/jvc_projector/jvc_projector.py", line 399, in get_software_version state.replace(ACKs.info_ack.value, b"") TypeError: replace() argument 1 must be str, not bytes 
Received ack: b'@\x89\x01PW3' != expected ack: b'\x06\x89\x01PW\n'
Got a blank msg
Received ack: b'\n' != expected ack: b'\x06\x89\x01PW\n'
Received ack: b'@\x89\x01PW1' != expected ack: b'\x06\x89\x01PW\n'

After powering it on again the remote (IR) is working again, the integration is not.

@iloveicedgreentea
Copy link
Owner

I am working on another rewrite to fix these issues. 2.4.3 has been stable for me but seems there are edge cases. Should be out this week or sooner

@roninf
Copy link
Author

roninf commented Mar 13, 2024

Ok thanks very much, i ll take a look then.

@roninf
Copy link
Author

roninf commented Mar 16, 2024

Right now i am on Beta 2.4.6 i guess and it seems that the remote can turn on the projector but does not get any feedback if the projector is on or not. So it shows offline while the projector is on.

Don`t know if its related but its shows a timeout now:

Logger: custom_components.jvc_projectors.remote
Quelle: custom_components/jvc_projectors/remote.py:116
Integration: JVC Projector ([Dokumentation](https://github.com/iloveicedgreentea/jvc_homeassistant))
Erstmals aufgetreten: 19:59:05 (1 Vorkommnisse)
Zuletzt protokolliert: 19:59:05
Timeout while trying to connect to 10.2.0.50

After reloading the integration, its shows the correct values.

@iloveicedgreentea
Copy link
Owner

please try 2.4.7 that should fix issues with attributes

@roninf
Copy link
Author

roninf commented Mar 17, 2024

Seems that it switches to online for a second, but its showing offline immediately again. After a few more seconds it shows all values correct. Hopefully its solved now :)

@iloveicedgreentea
Copy link
Owner

how about 4.2.9? Just had to rewrite a lot more logic but it seems to be stable for me now

@roninf
Copy link
Author

roninf commented Mar 20, 2024

I am at work right now, but i will update this afternoon and let you know.

@roninf
Copy link
Author

roninf commented Mar 20, 2024

By the way not related to this issue but might be usefull: for the NZ series you can now (software version 3) adjust laserpower from 0 to 100 not only in low/mid/high. Your approach is still working though....

@iloveicedgreentea
Copy link
Owner

yeah I implemented that a few version ago as laser_value I still have to do an overhaul of the readme

@roninf
Copy link
Author

roninf commented Mar 20, 2024

Ok so it seems to work fine fow now. But after turning on the projector it still shows on for second and the switched back to offline until (i guess) the jvc is polled again. After that its shows the correct values (i can live with that :) ) and it seems to be more responsive than the last versions.

@iscofield
Copy link

Having the same issue as this was working before the update and now for the life of me I can’t get it to connect to the projector at all. It always just says false with no updates even on 4.2.9.

Did you have to do anything else to get it to work?

@roninf
Copy link
Author

roninf commented Mar 21, 2024

No i have always been able to connect/configure (if i understood your issue correctly) the integration but it was not working anymore. Setup itself has more or less never been an issue for me. I have had issues that my projector kind of crashed hence not reacting to any command be it ip or ir. But that seem to be solved.

You could try to deinstall the integration completely and check wether there are still files left. Reboot HA and start over.

@iscofield
Copy link

I messed around with it more this morning and it can turn the projector on, but the problem is none of the attributes ever populate. I had the projector up and running last night and was uninstalling / reinstalling and rebooting HA but it never populated.

Same thing again this morning. I used the HA plugin to tun on the projector and 10 minutes later, the plugin still says the device is off, no attributes, etc.

Screenshot 2024-03-21 at 7 43 04 AM

Obviously the plugin can connect to the device as it can turn it on and it says connection alive is true. But for some reason, it's all the metadata that's broken?

@iscofield
Copy link

iscofield commented Mar 22, 2024

Worked on this more tonight and seems to be working now? After removing / reinstalling, using different entity names to ensure no older configuration was used, etc. I can turn it on, but the plug in immediately toggles off after turning the projector on. Then a few seconds later, now it displays all the information and is now triggering my MadVR envy automations again. Not sure what exactly did the trick but we're back in business! Thanks for the plugin!

Nope, this doesn't work. It was a red herring. If you use the plugin to turn on the projector, then it will eventually display the status, but if anything else turns the projector on, such as the IR remote or a Harmony remote, then the plugin never detects the projector is on. It's as if the entire plugin is gated behind it sending the power on command, otherwise it doesn't poll the projector?

@roninf
Copy link
Author

roninf commented Mar 22, 2024

Thats the same i described ealier on but i think one can live with it. Just did another test i turned on the projector using IR but the RemoteIntegration never reported the change its just stayed on showing offline....

@iscofield
Copy link

Hmm yes in my testing last night I was only doing it with the plugin but my normal setup is for my harmony remote to turn on the projector via IR. I’ll test that this morning to see if it’s the same for me. As that is what my issue was the first time is the projector was turned on via the harmony and the plugin never recognized it being on. If that’s the case, then it seems like the plugin only works if it has exclusive control and either the projector doesn’t report the status correctly depending on whether it’s controlled by IP or IR, or the plugin has some initialization logic that only fires when it sends the power on command vs just reporting what the projector is doing if it’s turned on via another source, which is my setup.

@iscofield
Copy link

iscofield commented Mar 22, 2024

Yea....I spoke to soon. Doesn't work if you power on the projector via IR. So for some reason, the most recent updates (whenever it switched from YAML config to UI config) it no longer works if the plugin doesn't seemingly have complete control and initiates the power on.

It's as if the entire plugin is gated behind it sending the power on command, otherwise it doesn't poll the projector?

@iloveicedgreentea
Copy link
Owner

Are you using the latest beta version? It should detect if its on, regardless of how its turned on as long as the integration has a connection open

@iscofield
Copy link

Yep, using 4.2.9. That's what I see in HACS for the current version when I click "redownload". I don't see a place on the actual integration page to check the installed version there, but I don't see why they'd be different.

@roninf
Copy link
Author

roninf commented Mar 23, 2024

While the projector is off, the connection status is false. If I turn on the projector via the IR remote or my Harmony, it stays as false and never switches. If I turn on the projector via the plugin, then it will say true and everything will populate (after it sits for a bit, then says the remote is off, then comes back).

Will grab the debugs later today/tonight and send them over.

Exactly the same for me.

@roninf
Copy link
Author

roninf commented Mar 23, 2024

The only thing I've noticed is the low latency attribute doesn't seem to be accurate compared to what the menus in the projector say.

I recognized that as well, i cant turn on low latency as well.

@roninf
Copy link
Author

roninf commented Mar 23, 2024

I have had the following error last nigh i don`t know if its related:

Logger: custom_components.jvc_projectors.remote
Quelle: custom_components/jvc_projectors/remote.py:219
Integration: JVC Projector ([Dokumentation](https://github.com/iloveicedgreentea/jvc_homeassistant))
Erstmals aufgetreten: 22. März 2024 um 23:52:24 (1 Vorkommnisse)
Zuletzt protokolliert: 22. März 2024 um 23:52:24
Unhandled exception in handle_queue: b'PW' is not a valid InputLevel

This morning i recognized the integration showing the NZ8 on while it was definitely off.

@iloveicedgreentea
Copy link
Owner

Can you try 4.4.03 please

@roninf
Copy link
Author

roninf commented Apr 8, 2024

I will check it out as soon as possible.

@iloveicedgreentea
Copy link
Owner

I will check it out as soon as possible.

4.4.04 now, or whatever the latest is at the time. I am actively developing stuff

@roninf
Copy link
Author

roninf commented Apr 8, 2024

Looks good so far. (4.4.04) Powered on immediately and showing the states as well as it seems. I will go on testing.

@iloveicedgreentea
Copy link
Owner

Cool I am working on fixing some other edge cases too (one person reported it). It seems that for some reason if you make custom sensors based on these attributes it somehow breaks stuff. Not sure why but I can't replicate it

@iloveicedgreentea
Copy link
Owner

4.4.05 fixes a potential issue with queues

@roninf
Copy link
Author

roninf commented Apr 8, 2024

Must correct myself, just turned off the projector using the remote. The integration still shows it running. Will do further testing tomorrow.

@iloveicedgreentea
Copy link
Owner

yeah the latest version should fix that

@roninf
Copy link
Author

roninf commented Apr 8, 2024

I am on 4.4.0.4. Just tried to turn off the integration but it stays on no matter how often i press the switch off button of the integration.

@iloveicedgreentea
Copy link
Owner

4.4.05 is the latest version as of now

@roninf
Copy link
Author

roninf commented Apr 8, 2024

Got it. Thanks!

@roninf
Copy link
Author

roninf commented Apr 9, 2024

I was able turn on and off the Projector once using the integration. A second time it did just nothing - unfortunately.

@roninf
Copy link
Author

roninf commented Apr 9, 2024

Reloading the integration now shows the correct values.

@roninf
Copy link
Author

roninf commented Apr 9, 2024

Next short update. After a while the integration switches to show offline again while the projector is on.
Even more the integration seem to have crashed the projector, even the ir remote was not working anymore. I had to pull the plug.

@iloveicedgreentea
Copy link
Owner

Is this on the latest version? There have been newer ones since then that issue should have been fixed already. If you encounter issues please send me debug logs because I dont encounter these issues with my setup. Only difference I see is I have an nz7, you have nz8, and another person reporting issues has nz9. I wonder if theres something different with the nz7 model because otherwise, I have no idea why some users have issues

But anyway try the latest version and let me know

@mrpedaling
Copy link

I've got an nz7, I'll get the latest version and report back after tonight's watching.

@mrpedaling
Copy link

Ran with 4.4.0.7, no hangs or restarts needed. I didn't check low latency, but other attributes looked correct (like laser level and installation mode).

@iloveicedgreentea
Copy link
Owner

I was finally able to replicate the issues. It was a result of sending commands and shifting the queue position.

v4.4.08 fixes it for me

This was referenced May 31, 2024
@iloveicedgreentea
Copy link
Owner

I rewrote this with sync code primarily because the JVC protocol is highly fragile and synchronous and I was fighting an uphill battle doing it async. I added the new features like laser value (0-100) and other stuff, let me know if something is missing.

Please try the latest 3.7.x beta in HACS which is now v3.7.34

Keep in mind this removes config flow so you will need to add it to your configuration.yaml again (see readme)

The alternative is to use the integration that is in the official repo but that is lacking a lot of features.

I am focusing my efforts on writing a home assistant like thing focused on theaters and theater devices

Let me know if this version has any major issues. I have tested it for over a week now and it has been fine for me.

@anevard
Copy link

anevard commented Jun 1, 2024

Running 4.2.1. I am having issues with the projector being turned Off by IR and it showing as On. It is resolved if I restart HA.

Also is it possible to test for the standby state etc. Seems the power_state is only true or false.

I am a noob with HA so when I tried to switch to this version from 4.2.1 it just crashed HA and none of my custom_components would load. Back up with 4.2.1 but any guidance would be appreciated.

EDIT: Crash resolved, running 3.7.3 ?.4 But it won't load entity.

@iloveicedgreentea
Copy link
Owner

EDIT: Crash resolved, running 3.7.3 ?.4 But it won't load entity.

You will need to add a new one via config yaml or remove the old one and change the new name to match the old one

@anevard
Copy link

anevard commented Jun 23, 2024

Unfortunately I am not able to get the beta working. I don’t seem to be able to correctly understand how to add it to the configuration.yaml as it never works.

The 4.2.1 version works but regularly loses connection with the projector and all sensors stay stuck in their last state until the integration is reloaded. Even upon reload I see pipe errors.

Here is an error log before the reload if that helps in any way. Please excuse this if it has already been dealt with in the beta rewrites.

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:941 
First occurred: June 22, 2024 at 11:48:31 PM (1179 occurrences) 
Last logged: 9:37:32 AM

Update for remote.nx7 fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 160, in _do_command
    await self.writer.drain()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 380, in drain
    raise exc
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1065, in write
    n = self._sock.send(data)
        ^^^^^^^^^^^^^^^^^^^^^
BrokenPipeError: [Errno 32] Broken pipe

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1289, in async_device_update
    await self.async_update()
  File "/config/custom_components/jvc_projectors/remote.py", line 351, in async_update
    self._state = await self.jvc_client.is_on()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/jvc_projector.py", line 517, in is_on
    return await self._get_power_state() in pw_status
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/jvc_projector.py", line 510, in _get_power_state
    return await self._get_attribute("power_status", ACKs.power_ack, PowerStates)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/jvc_projector.py", line 314, in _get_attribute
    state, res = await self.commander.do_reference_op(command, ack)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 268, in do_reference_op
    msg, success = await self.send_command(
                   ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 82, in send_command
    return await self._do_command(send_command, ack, command_type)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jvc_projector/command_runner.py", line 164, in _do_command
    raise ConnectionClosedError(err) from err
jvc_projector.error_classes.ConnectionClosedError: [Errno 32] Broken pipe

@iloveicedgreentea
Copy link
Owner

Unfortunately I am not able to get the beta working. I don’t seem to be able to correctly understand how to add it to the configuration.yaml as it never works.

Install the file editor add on

Install the latest beta from HACS & restart HA

In configuration.yaml add this

remote:
  - platform: jvc_projectors
    name: nz7 (or whatever name you want)
    password: (your password you set if NZ model)
    host: (your ip address of the unit)

Disable the existing integration (don't delete yet)

Restart HA

You should see remote.nz7 now

If everything works, you can delete the existing integration and rename entities in your automations if needed

Yes those issues are fixed in the latest beta. I probably won't add config flow to this because there is already an official integration but maybe one day if I have free time.

@iloveicedgreentea
Copy link
Owner

I am going to close this issue if you have further issues please open a new one. I will probably release the latest beta as official soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants