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.54k stars 29.47k forks source link

Weatherflow Integration: Support for Manually Specified IP #121981

Closed leoherzog closed 1 month ago

leoherzog commented 1 month ago

The problem

I have an "IoT" network and a main network. Home Assistant is on the main network. I have opened up an exception in the firewall rules so that Home Assistant can communicate to and from devices on the IoT network, but I am unable to use the Weatherflow integration because the auto-discovery fails and there is no way to manually specify the station's IP address.

What version of Home Assistant Core has the issue?

core-2024.7.2

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

Weatherflow

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

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

Code owner commands Code owners of `weatherflow` 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 weatherflow` 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)


weatherflow documentation weatherflow source (message by IssueLinks)

natekspencer commented 1 month ago

Unfortunately this likely won't work for you with your current setup. The way the Weatherflow hub works is by broadcasting it's data over UDP port 50222. Home Assistant does not try to connect to the hub, but rather just listens for the broadcast data. You would need to find a way to forward that broadcast to your main network.

leoherzog commented 1 month ago

Thanks for your work on maintaining this integration and for your response!

jeeftor commented 1 month ago

I'm working on getting sensors added to the cloud based integration which is probably what you would want to use. Or you can figure out how to cross-network route the UDP traffic - which is - a bunch of work on its own.

Or dual-home your home assistant :)

leoherzog commented 1 month ago

I've got both the Cloud and Local integrations running, thanks. That'll be great.

By "dual-home", do you mean, multiple network adapters? I briefly played around with having the WiFi connected to the IoT network and the Ethernet connected to the default network, but no dice.

Some rando on Reddit got UDP packets flowing across VLANs by running a VM that was constantly forwarding the packets, but I don't think I want to go that route...

gjohansson-ST commented 1 month ago

Closing this issue as it won't be a supported scenario