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

Somfy Homekit controller connection lost #93891

Closed
Mariusthvdb opened this issue Jun 1, 2023 · 48 comments
Closed

Somfy Homekit controller connection lost #93891

Mariusthvdb opened this issue Jun 1, 2023 · 48 comments

Comments

@Mariusthvdb
Copy link
Contributor

The problem

as title

no way to reinstall, connection keeps 'trying'

reloading either Overkiz, or Homekit controller does not solve

device Tahoma Box is readily available on the network, at the correct ip address listed in the error, and cloud connection via the Overkiz intergration is functional, as is the native Somfy app

What version of Home Assistant Core has the issue?

2023.6 beta 0

What was the last working version of Home Assistant Core?

2023.5.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Overkiz Homekit controller

Link to integration documentation on our website

https://www.home-assistant.io/integrations/homekit_controller/ https://www.home-assistant.io/integrations/overkiz/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: config_entries.py:1247 
First occurred: 07:55:58 (5 occurrences) 
Last logged: 08:12:59

Config entry 'Somfy TaHoma' for homekit_controller integration not ready yet: Timeout while waiting for connection to device 192.168.1.59:xxxxx; Retrying in background

Additional information

Scherm­afbeelding 2023-06-01 om 08 16 07
@home-assistant
Copy link

home-assistant bot commented Jun 1, 2023

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

Code owner commands

Code owners of homekit_controller 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 homekit_controller Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


homekit_controller documentation
homekit_controller source
(message by IssueLinks)

@frenck frenck changed the title Somfy Homekit controller connection lost upon HA 2023.6 beta Somfy Homekit controller connection lost Jun 1, 2023
@frenck frenck added this to the 2023.6.0 milestone Jun 1, 2023
@Jc2k
Copy link
Member

Jc2k commented Jun 1, 2023

Do you have any other (non Bluetooth) devices with homekit_controller that are working?

If this is the beta, my guess is it's the python upgrade. But @bdraco has a lot of homekit stuff so surprised he's not having troubles if it was that.

Can you post debug logs? Enable debug level for aiohomekit.

@Mariusthvdb
Copy link
Contributor Author

yes my other integrations work fine:

Scherm­afbeelding 2023-06-01 om 08 29 06

If update b1 has finished I'll see for the logs

@Jc2k
Copy link
Member

Jc2k commented Jun 1, 2023

Which ones of those are WiFi/Ethernet?

@Mariusthvdb
Copy link
Contributor Author

Mariusthvdb commented Jun 1, 2023

Somfy: ethernet
Dirigera: ethernet
Smart CO: bluetooth

2023-06-01 09:27:02.763 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.1.59:xxxxx] (id=6B:79:C7:DC:45:0C): Accessories cache loaded (c#: 21) (gsn: None) (has broadcast_key: False)
2023-06-01 09:27:02.763 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.1.59:xxxxx] (id=6B:79:C7:DC:45:0C): Description updated: old=None new=HomeKitService(name='Somfy TaHoma', id='6b:79:c7:dc:45:0c', model='TaHoma', feature_flags=<FeatureFlags.SUPPORTS_SOFTWARE_AUTHENTICATION: 2>, status_flags=<StatusFlags: 0>, config_num=21, state_num=25, category=<Categories.BRIDGE: 2>, protocol_version='1.1', type='_hap._tcp.local.', address='192.168.1.59', addresses=['192.168.1.59', 'fe80::fa81:1aff:fe5b:c759', 'fd40:876f:9246:4b45:fa81:1aff:fe5b:c759', 'fd40:876f:9246:4b45:3046:df05:82b4:ab69', 'fe80::fa81:1aff:fe5b:c759', 'fd40:876f:9246:4b45:fa81:1aff:fe5b:c759', 'fd40:876f:9246:4b45:3046:df05:82b4:ab69'], port=xxxxx)
2023-06-01 09:27:02.763 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.1.59:xxxxx] (id=6B:79:C7:DC:45:0C): Disconnected event notification received; Triggering catch-up poll
2023-06-01 09:27:02.763 DEBUG (MainThread) [aiohomekit.zeroconf] 6B:79:C7:DC:45:0C: Device rediscovered
2023-06-01 09:27:02.763 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Starting reconnect loop to 192.168.1.59:xxxxx
2023-06-01 09:27:02.764 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:xxxxx
2023-06-01 09:27:02.765 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Connecting to accessory failed. Retrying in 0 seconds
2023-06-01 09:27:03.517 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:xxxxx
2023-06-01 09:27:03.518 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Connecting to accessory failed. Retrying in 0 seconds
2023-06-01 09:27:04.645 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:xxxxx
2023-06-01 09:27:04.647 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Connecting to accessory failed. Retrying in 1 seconds
2023-06-01 09:27:06.337 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:xxxxx
2023-06-01 09:27:06.340 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Connecting to accessory failed. Retrying in 1 seconds
2023-06-01 09:27:08.872 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:xxxxx
2023-06-01 09:27:08.875 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Connecting to accessory failed. Retrying in 2 seconds
2023-06-01 09:27:12.673 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:xxxxx
2023-06-01 09:27:12.675 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Connecting to accessory failed. Retrying in 3 seconds

does that help?

btw, I forgot to mention I also hard booted the Somfy Tahoma box to see if it would reconnect, but no change there

@bdraco
Copy link
Member

bdraco commented Jun 1, 2023

But @bdraco has a lot of homekit stuff so surprised he's not having troubles if it was that.

All good here. No idea whats going on with this one.

Probably need a tcpdump

@Mariusthvdb
Copy link
Contributor Author

Mariusthvdb commented Jun 1, 2023

exactly what do I do for that?

also, and it might be coincidence, but the last 2 days, I relied completely on the homekit controller because the Cloud connection to Somfy was down. It worked flawlessly before the Beta....
Luckily the cloud connection returned today, so I can still control the covers.

should I maybe delete the connection and try re-setup?

@Jc2k
Copy link
Member

Jc2k commented Jun 1, 2023

I've never seen a homekit_controller bug that was fixed be re-doing the setup, and sometimes we just end up with 2 bugs to fix 😆

@Mariusthvdb
Copy link
Contributor Author

Mariusthvdb commented Jun 1, 2023

I had it temporarily disabled, re-enabled it now and restarting.... fingers crossed..


nope, didnt help ;-(

@bdraco
Copy link
Member

bdraco commented Jun 1, 2023

Screenshot 2023-06-01 at 4 52 56 PM

From the py-spy .. intresting.

@bdraco
Copy link
Member

bdraco commented Jun 1, 2023

I'm adding some more logging in Jc2k/aiohomekit#290

bdraco added a commit that referenced this issue Jun 1, 2023
changelog: Jc2k/aiohomekit@2.6.3...2.6.4

mostly additional logging to help track down #93891
@bdraco bdraco mentioned this issue Jun 1, 2023
20 tasks
balloob pushed a commit that referenced this issue Jun 1, 2023
changelog: Jc2k/aiohomekit@2.6.3...2.6.4

mostly additional logging to help track down #93891
balloob pushed a commit that referenced this issue Jun 2, 2023
changelog: Jc2k/aiohomekit@2.6.3...2.6.4

mostly additional logging to help track down #93891
@Mariusthvdb
Copy link
Contributor Author

Mariusthvdb commented Jun 2, 2023

with b3 and pr installed I now see thisnusing aiohomekit:debug :

2023-06-02 15:38:34.218 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.1.59:xxxxx] (id=6B:79:C7:DC:45:0C): Accessories cache loaded (c#: 21) (gsn: None) (has broadcast_key: False)
2023-06-02 15:38:34.218 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.1.59:xxxxx] (id=6B:79:C7:DC:45:0C): Description updated: old=None new=HomeKitService(name='Somfy TaHoma', id='6b:79:c7:dc:45:0c', model='TaHoma', feature_flags=<FeatureFlags.SUPPORTS_SOFTWARE_AUTHENTICATION: 2>, status_flags=<StatusFlags: 0>, config_num=21, state_num=35, category=<Categories.BRIDGE: 2>, protocol_version='1.1', type='_hap._tcp.local.', address='192.168.1.59', addresses=['192.168.1.59', 'fe80::fa81:1aff:fe5b:c759', 'fe80::fa81:1aff:fe5b:c759'], port=xxxxx)
2023-06-02 15:38:34.219 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.1.59:xxxxx] (id=6B:79:C7:DC:45:0C): Disconnected event notification received; Triggering catch-up poll
2023-06-02 15:38:34.219 DEBUG (MainThread) [aiohomekit.zeroconf] 6B:79:C7:DC:45:0C: Device rediscovered
2023-06-02 15:38:34.220 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Starting reconnect loop to 192.168.1.59:xxxx
2023-06-02 15:38:34.220 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:xxxxx
2023-06-02 15:38:34.225 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Connecting to accessory failed. Retrying in 0 seconds
2023-06-02 15:38:34.978 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:xxxxx
2023-06-02 15:38:34.981 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Connecting to accessory failed. Retrying in 0 seconds
2023-06-02 15:38:36.109 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:xxxxx
2023-06-02 15:38:36.112 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Connecting to accessory failed. Retrying in 1 seconds
2023-06-02 15:38:37.803 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:xxxxx
2023-06-02 15:38:37.805 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Connecting to accessory failed. Retrying in 1 seconds
2023-06-02 15:38:40.402 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:xxxxx
2023-06-02 15:38:40.417 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Connecting to accessory failed. Retrying in 2 seconds
2023-06-02 15:38:44.216 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:xxxxx
2023-06-02 15:38:44.219 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Connecting to accessory failed. Retrying in 3 seconds

which doesn't really offer a lot more info I fear?

this seems to be new to me:

2023-06-02 15:40:04.392 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.1.59:xxxxx] (id=6B:79:C7:DC:45:0C): Disconnected event notification received; Triggering catch-up poll

@Jc2k
Copy link
Member

Jc2k commented Jun 2, 2023

Is the ip address correct?

@Jc2k
Copy link
Member

Jc2k commented Jun 2, 2023

And you have censored the port, but can you test it's open?

curl --verbose http://ip:port

Should do it

@Mariusthvdb
Copy link
Contributor Author

Mariusthvdb commented Jun 2, 2023

no.... connection refused.

the ip address is correct though and I have no idea why it uses the port it does.

I did notice that after rebooting the Tahoma box, it got another portnumber, on the same ip address
It's on my default network, so no client separation or stuff like that

@Jc2k
Copy link
Member

Jc2k commented Jun 2, 2023

The port number is often random. On the Aqara hubs it changes at least once a day. So it changing is not that interesting, at least on its own.

Does the curl command work? What output do you get?

@bdraco
Copy link
Member

bdraco commented Jun 2, 2023

That doesn’t look like the b3 message. I don’t think b3 is done yet

@Mariusthvdb
Copy link
Contributor Author

Also, if you can get shell access to the HA container (not the OS)

just so I do the right thing, you mean
ssh root@hassio.local -p 22222

as I do for the py-spy's? https://community.home-assistant.io/t/instructions-to-install-py-spy-on-haos/480473

@Jc2k
Copy link
Member

Jc2k commented Jun 2, 2023

If it's the right place "which hass" will return the path to the hass binary. If it returns nothing you are in the wrong place.

I think that command gets you into the OS, but not the container where HA lives.

@Mariusthvdb
Copy link
Contributor Author

Mariusthvdb commented Jun 2, 2023

Your'e right, thats not it...

it needed the second command also: docker exec -it homeassistant /bin/bash

which hass
/usr/local/bin/hass

and, after having installed tcpdump I see this:

tcpdump -w /config/capture.pcap -ni eth0 host 192.168.1.59
tcpdump: eth0: No such device exists
(No such device exists)

using this in system monitor:

      - type: network_in
        arg: enp2s0

so should I replace that in the command maybe?

tcpdump -w /config/capture.pcap -ni enp2s0 host 192.168.1.59

it does not seem to hold a lot of info though

capture.pcap.zip

2nd run a bit longer, after having rebooted the switch.
capture.pcap.zip

running that arp -a command now does reveal the box:

(192.168.1.59) at f8:81:1a:5b:c7:59 [ether] on enp2s0

so that at least is something

@Jc2k
Copy link
Member

Jc2k commented Jun 2, 2023

Yes

@bdraco
Copy link
Member

bdraco commented Jun 3, 2023

You can also use https://apps.apple.com/us/app/discovery-dns-sd-browser/id305441017 to verify which port is being published via mdns

@Mariusthvdb
Copy link
Contributor Author

Mariusthvdb commented Jun 3, 2023

this is what I see on b4 now:

2023-06-03 22:24:57.156 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.1.59:32127] (id=6B:79:C7:DC:45:0C): Accessories cache loaded (c#: 21) (gsn: None) (has broadcast_key: False)
2023-06-03 22:24:57.156 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.1.59:32127] (id=6B:79:C7:DC:45:0C): Description updated: old=None new=HomeKitService(name='Somfy TaHoma', id='6b:79:c7:dc:45:0c', model='TaHoma', feature_flags=<FeatureFlags.SUPPORTS_SOFTWARE_AUTHENTICATION: 2>, status_flags=<StatusFlags: 0>, config_num=21, state_num=35, category=<Categories.BRIDGE: 2>, protocol_version='1.1', type='_hap._tcp.local.', address='192.168.1.59', addresses=['192.168.1.59', 'fe80::fa81:1aff:fe5b:c759'], port=32127)
2023-06-03 22:24:57.157 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.1.59:32127] (id=6B:79:C7:DC:45:0C): Disconnected event notification received; Triggering catch-up poll
2023-06-03 22:24:57.157 DEBUG (MainThread) [aiohomekit.zeroconf] 6B:79:C7:DC:45:0C: Device rediscovered
2023-06-03 22:24:57.157 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Starting reconnect loop to 192.168.1.59:32127
2023-06-03 22:24:57.158 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:32127
2023-06-03 22:24:57.161 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Somfy TaHoma [192.168.1.59:32127] (id=6B:79:C7:DC:45:0C): Connecting to accessory failed: [Errno 111] Connect call failed ('192.168.1.59', 32127); Retrying in 0 seconds
2023-06-03 22:24:57.914 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:32127
2023-06-03 22:24:57.917 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Somfy TaHoma [192.168.1.59:32127] (id=6B:79:C7:DC:45:0C): Connecting to accessory failed: [Errno 111] Connect call failed ('192.168.1.59', 32127); Retrying in 0 seconds
2023-06-03 22:24:59.044 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:32127
2023-06-03 22:24:59.047 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Somfy TaHoma [192.168.1.59:32127] (id=6B:79:C7:DC:45:0C): Connecting to accessory failed: [Errno 111] Connect call failed ('192.168.1.59', 32127); Retrying in 1 seconds
2023-06-03 22:25:00.736 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:32127
2023-06-03 22:25:00.740 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Somfy TaHoma [192.168.1.59:32127] (id=6B:79:C7:DC:45:0C): Connecting to accessory failed: [Errno 111] Connect call failed ('192.168.1.59', 32127); Retrying in 1 seconds
2023-06-03 22:25:03.274 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:32127
2023-06-03 22:25:03.276 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Somfy TaHoma [192.168.1.59:32127] (id=6B:79:C7:DC:45:0C): Connecting to accessory failed: [Errno 111] Connect call failed ('192.168.1.59', 32127); Retrying in 2 seconds
2023-06-03 22:25:06.078 DEBUG (MainThread) [aiohomekit.controller.abstract] [192.168.1.72:8000] (id=0E:E6:80:61:57:3D): Accessories cache loaded (c#: 14) (gsn: None) (has broadcast_key: False)
2023-06-03 22:25:06.078 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Starting reconnect loop to 192.168.1.72:8000
2023-06-03 22:25:06.078 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.72:8000
2023-06-03 22:25:07.090 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.59:32127
2023-06-03 22:25:07.091 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Somfy TaHoma [192.168.1.59:32127] (id=6B:79:C7:DC:45:0C): Connecting to accessory failed: [Errno 111] Connect call failed ('192.168.1.59', 32127); Retrying in 3 seconds
2023-06-03 22:25:09.165 DEBUG (MainThread) [aiohomekit.controller.ip.connection] [192.168.1.72:8000] (id=0E:E6:80:61:57:3D): Connecting to accessory failed: [Errno 113] Connect call failed ('192.168.1.72', 8000); Retrying in 0 seconds
2023-06-03 22:25:09.917 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.72:8000
2023-06-03 22:25:12.238 DEBUG (MainThread) [aiohomekit.controller.ip.connection] [192.168.1.72:8000] (id=0E:E6:80:61:57:3D): Connecting to accessory failed: [Errno 113] Connect call failed ('192.168.1.72', 8000); Retrying in 0 seconds
2023-06-03 22:25:13.364 DEBUG (MainThread) [aiohomekit.controller.ip.connection] Attempting connection to 192.168.1.72:8000
2023-06-03 22:25:15.310 DEBUG (MainThread) [aiohomekit.controller.ip.connection] [192.168.1.72:8000] (id=0E:E6:80:61:57:3D): Connecting to accessory failed: [Errno 113] Connect call failed ('192.168.1.72', 8000); Retrying in 1 seconds

uncensored...

notice the 192.168.1.72 address, which is a bit of a surprise, as I dont have that...

@Jc2k
Copy link
Member

Jc2k commented Jun 3, 2023

That's consistent with the curl failure. So looking like a zeroconf problem (try the app @bdraco said) or a network problem.

@Mariusthvdb
Copy link
Contributor Author

Discovery gives me

Somfy TaHoma._hap._tcp.local.

gateway-1236-2325-6238.local:32127
192.168.1.59:32127
fe80::fa81:1aff:fe5b:c759%en0:32127
192.168.1.59:32127

c# = 21
ci = 2
ff = 2
id = 6B:79:C7:DC:45:0C
md = TaHoma
pv = 1.1
s# = 35
sf = 0
sh = xxdxpA==

@Jc2k
Copy link
Member

Jc2k commented Jun 3, 2023

Can you post the output of this (from your ha container ideally)

ip route get 192.168.1.59

@Mariusthvdb
Copy link
Contributor Author

ip route get 192.168.1.59
192.168.1.59 dev enp2s0  src 192.168.1.61 

@bdraco
Copy link
Member

bdraco commented Jun 4, 2023

Does it have any IPv6 addresses?

@bdraco
Copy link
Member

bdraco commented Jun 4, 2023

Just a wild guess but maybe they broke ipv4. We don’t have IPv6 support yet. Asyncio has happy eyeballs built into it now so it shouldn’t be too hard to add if we need to do that.

@Mariusthvdb
Copy link
Contributor Author

Mariusthvdb commented Jun 4, 2023

Does it have any IPv6 addresses?

Where do you want me to check, I've given you all that is returned in both that app and in HA log

Would this be related btw, new python? #84387 (comment)

Somehow that is the bigger change in 2023.6 and really all that changed (since nothing else related to HomeKit was, nor were my devices )

@Mariusthvdb
Copy link
Contributor Author

Mariusthvdb commented Jun 4, 2023

Just a wild guess but maybe they broke ipv4. We don’t have IPv6 support yet. Asyncio has happy eyeballs built into it now so it shouldn’t be too hard to add if we need to do that.

If that would be a solution here, 'we need to do that ' ;-)

How could we be positive in that regard ?

Guess I could roll back to 2022.5 for quick check ( if that wouldn't kill Db stuff etc)

@Jc2k
Copy link
Member

Jc2k commented Jun 4, 2023

You could try that curl command for all the addresses returned by the discovery app, to see if it's responding on ipv6.

@Mariusthvdb
Copy link
Contributor Author

this is returning:

ip route get fe80::fa81:1aff:fe5b:c759
fe80::fa81:1aff:fe5b:c759 dev hassio  src fe80::42:8ff:fea9:5985  metric 256 

@bdraco
Copy link
Member

bdraco commented Jun 4, 2023

Check the fe80::fa81:1aff:fe5b:c759%en0:32127 address with curl

@Mariusthvdb
Copy link
Contributor Author

that would be

curl --verbose fe80::fa81:1aff:fe5b:c759%en0:32127

?

I cant get anything else but

URL using bad/illegal format or missing URL

so im probably doing it wrong..

@Jc2k
Copy link
Member

Jc2k commented Jun 5, 2023

I'm on my phone right now but if you look up "curl link local address" you might get some ideas.

Eg I can see things like

"http://[fe80::fa81:1aff:fe5b:c759%25eth0]:12345/"

But use the right interface and port.

@Mariusthvdb
Copy link
Contributor Author

homeassistant:/config# curl --verbose http://[fe80::fa81:1aff:fe5b:c759%25en0]:31217/
* Invalid zoneid: en0; No such device
*   Trying [fe80::fa81:1aff:fe5b:c759]:31217...
* Immediate connect fail for fe80::fa81:1aff:fe5b:c759: Invalid argument
* Failed to connect to fe80::fa81:1aff:fe5b:c759 port 31217 after 4 ms: Couldn't connect to server
* Closing connection 0

the address is a direct copy the Discovery.app

and I read I had to 'escape' the en0 using %25.

trein it with only % too, no luck

@Jc2k
Copy link
Member

Jc2k commented Jun 5, 2023

Earlier you mentioned enp2s0, why is it en0 now?

@Mariusthvdb
Copy link
Contributor Author

Mariusthvdb commented Jun 5, 2023

that is what is listed in the discovery app, and which data I copied.

but let me test that.

---update

its futile:

homeassistant:/config# curl --verbose http://[fe80::fa81:1aff:fe5b:c759%enp2s0]:32127/
*   Trying [fe80::fa81:1aff:fe5b:c759]:32127...
* connect to fe80::fa81:1aff:fe5b:c759 port 32127 failed: Connection refused
* Failed to connect to fe80::fa81:1aff:fe5b:c759 port 32127 after 1 ms: Couldn't connect to server
* Closing connection 0
curl: (7) Failed to connect to fe80::fa81:1aff:fe5b:c759 port 32127 after 1 ms: Couldn't connect to server
homeassistant:/config# curl --verbose http://[fe80::fa81:1aff:fe5b:c759%25enp2s0]:32127/
*   Trying [fe80::fa81:1aff:fe5b:c759]:32127...
* connect to fe80::fa81:1aff:fe5b:c759 port 32127 failed: Connection refused
* Failed to connect to fe80::fa81:1aff:fe5b:c759 port 32127 after 0 ms: Couldn't connect to server
* Closing connection 0
curl: (7) Failed to connect to fe80::fa81:1aff:fe5b:c759 port 32127 after 0 ms: Couldn't connect to server
homeassistant:/config# curl --verbose http://[fe80::fa81:1aff:fe5b:c759%25enp2s0]
*   Trying [fe80::fa81:1aff:fe5b:c759]:80...
* connect to fe80::fa81:1aff:fe5b:c759 port 80 failed: Connection refused
* Failed to connect to fe80::fa81:1aff:fe5b:c759 port 80 after 0 ms: Couldn't connect to server
* Closing connection 0
curl: (7) Failed to connect to fe80::fa81:1aff:fe5b:c759 port 80 after 0 ms: Couldn't connect to server
homeassistant:/config# curl --verbose http://[fe80::fa81:1aff:fe5b:c759%enp2s0]/
*   Trying [fe80::fa81:1aff:fe5b:c759]:80...
* connect to fe80::fa81:1aff:fe5b:c759 port 80 failed: Connection refused
* Failed to connect to fe80::fa81:1aff:fe5b:c759 port 80 after 0 ms: Couldn't connect to server
* Closing connection 0
curl: (7) Failed to connect to fe80::fa81:1aff:fe5b:c759 port 80 after 0 ms: Couldn't connect to server

dont think Ive found the right syntax yet...

@Jc2k
Copy link
Member

Jc2k commented Jun 5, 2023

No I think you have, and your device isn't listening on ipv6 after all. Unless the port has changed while we have been talking.

@Mariusthvdb
Copy link
Contributor Author

no I checked before I entered the commands
what seems odd is that it keep showing %en0 so I tested that once more, also with that new syntax. NO succes.

@Mariusthvdb
Copy link
Contributor Author

Fixed!

@Jc2k
Copy link
Member

Jc2k commented Jun 9, 2023

Did you try or do anything else besides upgrade? There are other somfy users struggling.

@Mariusthvdb
Copy link
Contributor Author

No, upgrading to .1 was all my system needed.

Shall we close here?

Thx again!

@Jc2k Jc2k closed this as completed Jun 9, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants