home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.03k stars 29.11k forks source link

UPB integration will not work with export file no matter what i do #121568

Closed dtomcat closed 2 days ago

dtomcat commented 1 week ago

The problem

I followed the advice on all the forums and cannot get this to work. I placed the file in the /config directory... tried changing permissions and even the name of the file... tried different puncuation. every time, it says invalid or missing.

What version of Home Assistant Core has the issue?

core-2024.7.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

UPB

Link to integration documentation on our website

https://www.home-assistant.io/integrations/upb

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Cannot get logs for UPB since I cannot add it.

Additional information

No response

home-assistant[bot] commented 1 week ago

Hey there @gwww, mind taking a look at this issue as it has been labeled with an integration (upb) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `upb` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign upb` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


upb documentation upb source (message by IssueLinks)

gwww commented 1 week ago

Please provide debug logs. Add the following to your configuration.yaml:

logger:
  logs:
    upb_lib: debug
    homeassistant.components.upb: debug
dtomcat commented 1 week ago

Added the above... no logs. (waited until .2 came out so I could test ... in hopes of saying it's fixed) updated to .2 still same issue

Where will logs show up? sorry

dtomcat commented 1 week ago

this is the only thing I see:

 Logger: homeassistant.components.upb.config_flow
Source: components/upb/config_flow.py:46
integration: Universal Powerline Bus (UPB) (documentation, issues)
First occurred: 3:10:17 PM (1 occurrences)
Last logged: 3:10:17 PM

Missing or invalid UPB file: upb.upe
dtomcat commented 1 week ago

i did see this too... right after... though not listed in my devices... had small hope... no luck:

Logger: upb_lib.upb
Source: runner.py:190
First occurred: 3:10:28 PM (1 occurrences)
Last logged: 3:10:28 PM

Timeout communicating with UPB device 'Kitchen Hallway Overhead Light' (1_6_0)
dtomcat commented 1 week ago

so tried again, same error... but with .2 it's definitely seeing it now and trying to talk to each device. after it says missing or invalid.

Logger: upb_lib.upb
Source: runner.py:190
First occurred: 3:17:47 PM (10 occurrences)
Last logged: 3:19:22 PM

Timeout communicating with UPB device 'Master Bedroom Hallway Light' (1_13_0)
Timeout communicating with UPB device 'Garage IO Module 0' (1_10_0)
Timeout communicating with UPB device 'Guest Bedroom Light' (1_11_0)
Timeout communicating with UPB device 'Computer Room Light' (1_12_0)
Timeout communicating with UPB device 'Computer Room Fan 0' (1_17_0)
gwww commented 1 week ago

A proper log will help. The log file will be in /config/home-assistant.log. Add the config to turn on logs as I describe above and then restart HA. From there try to add the integration.

From the bit I can see above, it appears that your UPB network ID is 1. Is that correct?

dtomcat commented 1 week ago

A proper log will help. The log file will be in /config/home-assistant.log. Add the config to turn on logs as I describe above and then restart HA. From there try to add the integration.

From the bit I can see above, it appears that your UPB network ID is 1. Is that correct?

2024-07-10 16:22:51.143 INFO (MainThread) [upb_lib.upb] Using flags: {'': True}
2024-07-10 16:22:51.143 ERROR (MainThread) [homeassistant.components.upb.config_flow] Missing or invalid UPB file: upb.upe
2024-07-10 16:22:51.174 INFO (MainThread) [upb_lib.upb] Connecting to UPB PIM at serial:///dev/ttyUSB1
2024-07-10 16:22:51.181 DEBUG (MainThread) [upb_lib.proto] connected callback
2024-07-10 16:22:51.181 INFO (MainThread) [upb_lib.upb] Connected to UPB PIM
2024-07-10 16:22:51.182 DEBUG (MainThread) [upb_lib.proto] queued write ''
2024-07-10 16:22:51.182 DEBUG (MainThread) [upb_lib.proto] write_data ''
2024-07-10 16:22:51.187 DEBUG (MainThread) [upb_lib.proto] queued write '70028E'
2024-07-10 16:22:51.188 DEBUG (MainThread) [upb_lib.upb] Synchronizing status of UPB network...
2024-07-10 16:22:51.188 DEBUG (MainThread) [upb_lib.proto] queued write '07000104FF30C5'
2024-07-10 16:22:51.188 DEBUG (MainThread) [upb_lib.proto] queued write '07000106FF30C3'
2024-07-10 16:22:51.188 DEBUG (MainThread) [upb_lib.proto] queued write '07000103FF30C6'
2024-07-10 16:22:51.189 DEBUG (MainThread) [upb_lib.proto] queued write '07000101FF30C8'
2024-07-10 16:22:51.189 DEBUG (MainThread) [upb_lib.proto] queued write '07000102FF30C7'
2024-07-10 16:22:51.189 DEBUG (MainThread) [upb_lib.proto] queued write '07000110FF30B9'
2024-07-10 16:22:51.190 DEBUG (MainThread) [upb_lib.proto] queued write '07000105FF30C4'
2024-07-10 16:22:51.190 DEBUG (MainThread) [upb_lib.proto] queued write '07000107FF30C2'
2024-07-10 16:22:51.190 DEBUG (MainThread) [upb_lib.proto] queued write '07000108FF30C1'
2024-07-10 16:22:51.190 DEBUG (MainThread) [upb_lib.proto] queued write '07000109FF30C0'
2024-07-10 16:22:51.191 DEBUG (MainThread) [upb_lib.proto] queued write '0700010DFF30BC'
2024-07-10 16:22:51.191 DEBUG (MainThread) [upb_lib.proto] queued write '0700010AFF30BF'
2024-07-10 16:22:51.191 DEBUG (MainThread) [upb_lib.proto] queued write '0700010BFF30BE'
2024-07-10 16:22:51.191 DEBUG (MainThread) [upb_lib.proto] queued write '0700010CFF30BD'
2024-07-10 16:22:51.192 DEBUG (MainThread) [upb_lib.proto] queued write '0700010EFF30BB'
2024-07-10 16:22:51.192 DEBUG (MainThread) [upb_lib.proto] queued write '0700010FFF30BA'
2024-07-10 16:22:51.194 DEBUG (MainThread) [upb_lib.proto] queued write '07000111FF30B8'
2024-07-10 16:22:51.226 DEBUG (MainThread) [upb_lib.proto] data_received:  'PE'
2024-07-10 16:22:51.227 DEBUG (MainThread) [upb_lib.proto] write_data '70028E'
2024-07-10 16:22:51.271 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:22:51.272 DEBUG (MainThread) [upb_lib.proto] write_data '07000104FF30C5'
2024-07-10 16:22:51.334 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:22:51.622 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:22:52.099 DEBUG (MainThread) [upb_lib.proto] data_received:  'PU080001FF0486640A'
2024-07-10 16:22:52.100 DEBUG (MainThread) [upb_lib.devices] (DSR) Device Computer Room Overhead Light level is 100
2024-07-10 16:22:52.100 DEBUG (MainThread) [upb_lib.proto] write_data '07000106FF30C3'
2024-07-10 16:22:52.171 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:22:52.459 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:22:57.101 DEBUG (MainThread) [upb_lib.proto] Timeout waiting for packet; retrying 1 more times.
2024-07-10 16:22:57.102 DEBUG (MainThread) [upb_lib.proto] write_data '07000106FF30C3'
2024-07-10 16:22:57.165 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:22:57.463 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:02.103 DEBUG (MainThread) [upb_lib.proto] Timeout waiting for packet; retrying 0 more times.
2024-07-10 16:23:02.104 WARNING (MainThread) [upb_lib.upb] Timeout communicating with UPB device 'Kitchen Hallway Overhead Light' (1_6_0)
2024-07-10 16:23:02.105 DEBUG (MainThread) [upb_lib.proto] write_data '07000103FF30C6'
2024-07-10 16:23:02.168 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:02.464 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:02.923 DEBUG (MainThread) [upb_lib.proto] data_received:  'PU080001FF0386006F'
2024-07-10 16:23:02.924 DEBUG (MainThread) [upb_lib.devices] (DSR) Device Front Porch Light level is 0
2024-07-10 16:23:02.924 DEBUG (MainThread) [upb_lib.proto] write_data '07000101FF30C8'
2024-07-10 16:23:02.986 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:03.283 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:03.751 DEBUG (MainThread) [upb_lib.proto] data_received:  'PU080001FF01860071'
2024-07-10 16:23:03.752 DEBUG (MainThread) [upb_lib.devices] (DSR) Device Outside Accent Lights level is 0
2024-07-10 16:23:03.753 DEBUG (MainThread) [upb_lib.proto] write_data '07000102FF30C7'
2024-07-10 16:23:03.823 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:04.112 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:04.570 DEBUG (MainThread) [upb_lib.proto] data_received:  'PU080001FF02860070'
2024-07-10 16:23:04.571 DEBUG (MainThread) [upb_lib.devices] (DSR) Device Relax Room Light level is 0
2024-07-10 16:23:04.572 DEBUG (MainThread) [upb_lib.proto] write_data '07000110FF30B9'
2024-07-10 16:23:04.642 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:04.930 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:09.573 DEBUG (MainThread) [upb_lib.proto] Timeout waiting for packet; retrying 1 more times.
2024-07-10 16:23:09.574 DEBUG (MainThread) [upb_lib.proto] write_data '07000110FF30B9'
2024-07-10 16:23:09.636 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:09.935 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:14.574 DEBUG (MainThread) [upb_lib.proto] Timeout waiting for packet; retrying 0 more times.
2024-07-10 16:23:14.575 WARNING (MainThread) [upb_lib.upb] Timeout communicating with UPB device 'Guest Bathroom Exhaust' (1_16_0)
2024-07-10 16:23:14.576 DEBUG (MainThread) [upb_lib.proto] write_data '07000105FF30C4'
2024-07-10 16:23:14.638 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:14.935 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:19.578 DEBUG (MainThread) [upb_lib.proto] Timeout waiting for packet; retrying 1 more times.
2024-07-10 16:23:19.579 DEBUG (MainThread) [upb_lib.proto] write_data '07000105FF30C4'
2024-07-10 16:23:19.641 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:19.929 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:24.580 DEBUG (MainThread) [upb_lib.proto] Timeout waiting for packet; retrying 0 more times.
2024-07-10 16:23:24.581 WARNING (MainThread) [upb_lib.upb] Timeout communicating with UPB device 'Outside Front Lights' (1_5_0)
2024-07-10 16:23:24.582 DEBUG (MainThread) [upb_lib.proto] write_data '07000107FF30C2'
2024-07-10 16:23:24.645 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:24.950 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:29.582 DEBUG (MainThread) [upb_lib.proto] Timeout waiting for packet; retrying 1 more times.
2024-07-10 16:23:29.583 DEBUG (MainThread) [upb_lib.proto] write_data '07000107FF30C2'
2024-07-10 16:23:29.646 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:29.952 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:34.584 DEBUG (MainThread) [upb_lib.proto] Timeout waiting for packet; retrying 0 more times.
2024-07-10 16:23:34.585 WARNING (MainThread) [upb_lib.upb] Timeout communicating with UPB device 'Hallway Light' (1_7_0)
2024-07-10 16:23:34.586 DEBUG (MainThread) [upb_lib.proto] write_data '07000108FF30C1'
2024-07-10 16:23:34.649 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:34.946 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:39.586 DEBUG (MainThread) [upb_lib.proto] Timeout waiting for packet; retrying 1 more times.
2024-07-10 16:23:39.587 DEBUG (MainThread) [upb_lib.proto] write_data '07000108FF30C1'
2024-07-10 16:23:39.651 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:39.948 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:44.588 DEBUG (MainThread) [upb_lib.proto] Timeout waiting for packet; retrying 0 more times.
2024-07-10 16:23:44.589 WARNING (MainThread) [upb_lib.upb] Timeout communicating with UPB device 'Entry Light' (1_8_0)
2024-07-10 16:23:44.589 DEBUG (MainThread) [upb_lib.proto] write_data '07000109FF30C0'
2024-07-10 16:23:44.653 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:44.950 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:45.427 DEBUG (MainThread) [upb_lib.proto] data_received:  'PU080001FF09860069'
2024-07-10 16:23:45.428 DEBUG (MainThread) [upb_lib.devices] (DSR) Device Entry Light level is 0
2024-07-10 16:23:45.429 DEBUG (MainThread) [upb_lib.proto] write_data '0700010DFF30BC'
2024-07-10 16:23:45.500 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:45.778 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:50.429 DEBUG (MainThread) [upb_lib.proto] Timeout waiting for packet; retrying 1 more times.
2024-07-10 16:23:50.430 DEBUG (MainThread) [upb_lib.proto] write_data '0700010DFF30BC'
2024-07-10 16:23:50.493 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:50.781 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
2024-07-10 16:23:55.431 DEBUG (MainThread) [upb_lib.proto] Timeout waiting for packet; retrying 0 more times.
2024-07-10 16:23:55.432 WARNING (MainThread) [upb_lib.upb] Timeout communicating with UPB device 'Master Bedroom Hallway Light' (1_13_0)
2024-07-10 16:23:55.433 DEBUG (MainThread) [upb_lib.proto] write_data '0700010AFF30BF'
2024-07-10 16:23:55.505 DEBUG (MainThread) [upb_lib.proto] data_received:  'PA'
2024-07-10 16:23:55.801 DEBUG (MainThread) [upb_lib.proto] data_received:  'PN'
dtomcat commented 1 week ago

sorry... yes network ID is 1

gwww commented 1 week ago

I’m on my phone but it appears that some devices are working and some are timing out. Is that right?

So the bug that I introduced seems to be fixed.

As to the timeouts that’s a problem with the UPB network. Has your PIM moved from where it was working?

dtomcat commented 1 week ago

So kind of fixed it. Not all devices are connected … so it makes sense that they time out…. Problem is since I get the invalid error… no devices show up for me to control or see … only in the log

On Jul 10, 2024, at 4:50 PM, Glenn Waters @.***> wrote:



I’m on my phone but it appears that some devices are working and some are timing out. Is that right?

So the bug that I introduced seems to be fixed.

As to the timeouts that’s a problem with the UPB network. Has your PIM moved from where it was working?

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/121568#issuecomment-2221655796, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAJ44AQ6RIKO2SQZUQWWBCTZLW3B5AVCNFSM6AAAAABKRW4ILSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRRGY2TKNZZGY. You are receiving this because you authored the thread.Message ID: @.***>

gwww commented 1 week ago

To the missing or invalid error please send me your .upe file and I will take a look. I suspect that it is invalid, because the only way you are going to get devices responding is that the config file had to have been read. You can find my email in here: https://github.com/gwww/upb-lib/blob/fe6d9d4ce73639de59df5913327cd769adb32546/pyproject.toml

gwww commented 1 week ago

I know why there is the log message about missing or invalid upe file. You can safely ignore it. I will figure out a fix but the message is erroneous. It's all around the async loading of the config file and the order of connecting versus loading.

I'll leave this issue open until it is fixed.

dtomcat commented 1 week ago

Is there a way to manually add the devices since HA sees them?

gwww commented 1 week ago

All the devices in your upe file will be added regardless of whether you can connect to them. There’s no other way to add devices.

dtomcat commented 1 week ago

Ok. I’ll wait :/

wrook62 commented 1 week ago

I'm having the same problem adding UPB to HA 2024.7.0, 7.1, and 7.1. Home Assistant Core

Missing or invalid UPB UPStart export file, check the name and path of the file.

I get the above after entering 10.10.10.10 (not the real address if PCS PWG, but entered in that format) upb_network.upe

I did a test install on Raspberry Pi 3B+ with HA 2024.6.x?? prior to the 2024.7.0. The file was recognized and loaded the .upe. I was having other problems staying connected. I did erase the password file. Accordingly, I decided to un-install the integration.

I'm running the standard HA installation.

I received an HA Yellow in the mail and did an initial installation of 2024.7.0. When I saw the new release, I also upgraded the Pi 3B+ installation, getting the sam error.

When I tried to install the integration again, I never got passed the first page and the above error.

Log details (WARNING) Logger: upb_lib.upb Source: runner.py:190 First occurred: 6:36:06 PM (187 occurrences) Last logged: 6:39:35 PM

PIM at tcp://192.168.1.1 disconnected Could not connect to UPB PIM (). Retrying in 2 seconds Could not connect to UPB PIM (). Retrying in 4 seconds Could not connect to UPB PIM (). Retrying in 8 seconds

Logger: homeassistant Source: /usr/src/homeassistant/homeassistant/runner.py:148 First occurred: 6:34:57 PM (10 occurrences) Last logged: 6:38:58 PM

Error doing job: Exception in callback _SelectorDatagramTransport._read_ready() (None) Error doing job: Exception in callback SsdpSearchResponder._send_responses(('2604:4c70:c60g:d300::1', 38510, 0, 0), [b'HTTP/1.1 20...ORG:1\r\n\r\n', b'HTTP/1.1 20...ORG:1\r\n\r\n', b'HTTP/1.1 20...ORG:1\r\n\r\n']) (None) Traceback (most recent call last): File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1238, in _read_ready self._protocol.datagram_received(data, addr) File "/usr/local/lib/python3.12/site-packages/async_upnp_client/ssdp.py", line 321, in datagram_received self.on_data(request_line, headers) File "/usr/local/lib/python3.12/site-packages/async_upnp_client/server.py", line 531, in _on_data self._send_responses(remote_addr, responses) File "/usr/local/lib/python3.12/site-packages/async_upnp_client/server.py", line 714, in _send_responses self._response_socket.sendto(response, remote_addr) OSError: [Errno 101] Network unreachable

The home-assistant.log.fault file is empty.

Here is the top of the home-assistant.log file:

2024-07-12 18:34:57.342 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorDatagramTransport._read_ready() (None) Traceback (most recent call last): File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, self._args) File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1238, in _read_ready self._protocol.datagram_received(data, addr) File "/usr/local/lib/python3.12/site-packages/async_upnp_client/ssdp.py", line 321, in datagram_received self.on_data(request_line, headers) File "/usr/local/lib/python3.12/site-packages/async_upnp_client/server.py", line 531, in _on_data self._send_responses(remote_addr, responses) File "/usr/local/lib/python3.12/site-packages/async_upnp_client/server.py", line 714, in _send_responses self._response_socket.sendto(response, remote_addr) OSError: [Errno 101] Network unreachable 2024-07-12 18:34:59.449 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback SsdpSearchResponder._send_responses(('2604:4c70:c60g:d300::1', 38510, 0, 0), [b'HTTP/1.1 20...ORG:1\r\n\r\n', b'HTTP/1.1 20...ORG:1\r\n\r\n', b'HTTP/1.1 20...ORG:1\r\n\r\n']) (None) Traceback (most recent call last): File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, self._args) File "/usr/local/lib/python3.12/site-packages/async_upnp_client/server.py", line 714, in _send_responses self._response_socket.sendto(response, remote_addr) OSError: [Errno 101] Network unreachable 2024-07-12 18:35:57.342 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback _SelectorDatagramTransport._read_ready() (None) Traceback (most recent call last): File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, self._args) File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1238, in _read_ready self._protocol.datagram_received(data, addr) File "/usr/local/lib/python3.12/site-packages/async_upnp_client/ssdp.py", line 321, in datagram_received self.on_data(request_line, headers) File "/usr/local/lib/python3.12/site-packages/async_upnp_client/server.py", line 531, in _on_data self._send_responses(remote_addr, responses) File "/usr/local/lib/python3.12/site-packages/async_upnp_client/server.py", line 714, in _send_responses self._response_socket.sendto(response, remote_addr) OSError: [Errno 101] Network unreachable 2024-07-12 18:35:59.840 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback SsdpSearchResponder._send_responses(('2604:4c70:c60g:d300::1', 38510, 0, 0), [b'HTTP/1.1 20...ORG:1\r\n\r\n', b'HTTP/1.1 20...ORG:1\r\n\r\n', b'HTTP/1.1 20...ORG:1\r\n\r\n']) (None) Traceback (most recent call last): File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, self._args) File "/usr/local/lib/python3.12/site-packages/async_upnp_client/server.py", line 714, in _send_responses self._response_socket.sendto(response, remote_addr) OSError: [Errno 101] Network unreachable 2024-07-12 18:36:06.848 INFO (MainThread) [upb_lib.upb] Using flags: {'': True} 2024-07-12 18:36:06.849 ERROR (MainThread) [homeassistant.components.upb.config_flow] Missing or invalid UPB file: upb_network.upe 2024-07-12 18:36:06.863 INFO (MainThread) [upb_lib.upb] Connecting to UPB PIM at tcp://192.168.1.1 2024-07-12 18:36:06.866 DEBUG (MainThread) [upb_lib.proto] connected callback 2024-07-12 18:36:06.866 INFO (MainThread) [upb_lib.upb] Connected to UPB PIM 2024-07-12 18:36:06.867 DEBUG (MainThread) [upb_lib.proto] queued write '' 2024-07-12 18:36:06.867 DEBUG (MainThread) [upb_lib.proto] write_data '' 2024-07-12 18:36:06.868 DEBUG (MainThread) [upb_lib.proto] queued write '70028E' 2024-07-12 18:36:06.868 DEBUG (MainThread) [upb_lib.upb] Synchronizing status of UPB network... 2024-07-12 18:36:06.869 DEBUG (MainThread) [upb_lib.proto] queued write '07008B70FF30CF' 2024-07-12 18:36:06.869 DEBUG (MainThread) [upb_lib.proto] queued write '07008B83FF30BC' 2024-07-12 18:36:06.869 DEBUG (MainThread) [upb_lib.proto] queued write '07008B49FF30F6' 2024-07-12 18:36:06.869 DEBUG (MainThread) [upb_lib.proto] queued write '07008B98FF30A7' 2024-07-12 18:36:06.869 DEBUG (MainThread) [upb_lib.proto] queued write '07008B5EFF30E1' 2024-07-12 18:36:06.869 DEBUG (MainThread) [upb_lib.proto] queued write '07008B5FFF30E0' 2024-07-12 18:36:06.870 DEBUG (MainThread) [upb_lib.proto] queued write '07008B88FF30B7' 2024-07-12 18:36:06.870 DEBUG (MainThread) [upb_lib.proto] queued write '07008BAAFF3095' 2024-07-12 18:36:06.870 DEBUG (MainThread) [upb_lib.proto] queued write '07008B75FF30CA' 2024-07-12 18:36:06.870 DEBUG (MainThread) [upb_lib.proto] queued write '07008B6EFF30D1' 2024-07-12 18:36:06.870 DEBUG (MainThread) [upb_lib.proto] queued write '07008B80FF30BF' 2024-07-12 18:36:06.870 DEBUG (MainThread) [upb_lib.proto] queued write '07008B81FF30BE' 2024-07-12 18:36:06.870 DEBUG (MainThread) [upb_lib.proto] queued write '07008B48FF30F7' 2024-07-12 18:36:06.871 DEBUG (MainThread) [upb_lib.proto] queued write '07008B4AFF30F5' 2024-07-12 18:36:06.871 DEBUG (MainThread) [upb_lib.proto] queued write '07008BC8FF3077' 2024-07-12 18:36:06.871 DEBUG (MainThread) [upb_lib.proto] queued write '07008B8EFF30B1' 2024-07-12 18:36:06.871 DEBUG (MainThread) [upb_lib.proto] queued write '07008BA6FF3099' 2024-07-12 18:36:06.871 DEBUG (MainThread) [upb_lib.proto] queued write '07008B7CFF30C3' 2024-07-12 18:36:06.871 DEBUG (MainThread) [upb_lib.proto] queued write '07008B82FF30BD' 2024-07-12 18:36:06.871 DEBUG (MainThread) [upb_lib.proto] queued write '07008B84FF30BB' 2024-07-12 18:36:06.871 DEBUG (MainThread) [upb_lib.proto] queued write '07008B6AFF30D5' 2024-07-12 18:36:06.874 DEBUG (MainThread) [upb_lib.proto] disconnected callback 2024-07-12 18:36:06.874 WARNING (MainThread) [upb_lib.upb] PIM at tcp://192.168.1.1 disconnected 2024-07-12 18:36:07.876 INFO (MainThread) [upb_lib.upb] Connecting to UPB PIM at tcp://192.168.1.1

gwww commented 1 week ago

Fix is submitted for not recognizing the file. Should be in .3

As to connecting and disconnecting that I see in your log that is something else. Feel free to open another issue for that. Warning there’s not much I can do for that though. The remote PIM is disconnecting. Is there more than one device trying to use the PIM?

wrook62 commented 1 week ago

When the PCS Pulseworx Gateway connected to 2024.6.4, It was recognized but kept dropping the connections. Devices immediately went to unavailable. Does this integration work with the Pulseworx Gateway or just the prior PIM-IP. (I know, I have to wait for the .3 bug fix to retest or do anything meaningful)

I did delete the user file on the UPB Gateway. I am also willing to contribute and update/test the code to support a login capability for the UPB Gateway and HA integration.

I did make sure that UPStart was shut down. I'll double-check everything and see if I can clear that from the logs.

Thank you.

gwww commented 1 week ago

I only have a USB PIM so can only go by user reports. Try asking about your model here: https://community.home-assistant.io/t/upb-lighting/615/492

wrook62 commented 1 week ago

Thanks, I also have a PIM-U and older Serial. I'll give the PIM-U a try

dtomcat commented 2 days ago

Works with .3. Thank you!

wrook62 commented 1 day ago

Thanks. PIM-U now connecting with .3