Need help with the second network card. I think routing problem

Hello,

I have had HA running for some time using Wi-Fi. Now I want to connect my device to the second network. I connected my wired card directly to the second router. I assigned it a static IP address.

I created a binary ping sensor with IP address from that second network. It works, and it can ping that IP address.

The problem is that the device has a web interface, and I want to be able to connect to it. I added an iframe element:

panel_iframe:
  device:
    title: MyDevice
    icon: mdi:microsoft-internet-explorer
    url: http://192.168.20.104

After reboot, I have it in the left pane, but it gives me an error message when I try to go there.

The connection has timed out

The server at 192.168.20.104 is taking too long to respond.

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer’s network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

I guess it is not routing traffic correctly, but why does ping work. Any ideas?

Routing should just work, since you do not seem to add extra gateways.
Have you checked you subnet mask?

Thank you for your reply. I double checked the subnet mask, and it is correct.

It could be that HA is only bound to one network interface.
Not sure if you can do anything then, besides set up routes on the gateways.

For some reason it works today. Thank you.