Wireguard ESPHome Fritzbox

Hello! I have an apartment with homeassistant and a number of devices, so far. Now I have a second apartment, I connected these two apartments using two Fritz boxes and their WireGuard solution. Works perfectly so far.

I’m having problems with ESPHome now. I now wanted to use a btproxy ESP32 in the second apartment to integrate a few temperature sensors. Unfortunately, the btproxy is always displayed offline in ESPHome, but according to Fritzbox it is definitely connected to the network. I can add it manually via integration and enter the IP address, but it still doesn’t seem to work so that the temperature sensors are displayed. The btproxy continues to appear offline in the ESPHome. Does somebody has any idea?

You could try this in your wifi esphome:

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  domain: .fritz.box

and if it stays offline because mDNS does not work, you could add this to your docker-compose.yaml:

    environment:
      - ESPHOME_DASHBOARD_USE_PING=true
1 Like

I tried the first suggestion, no difference. For the second suggestion I have to ask (because I could not find it), where is the docker-compose.yaml?

I think you don’t use docker to install esphome, so this is no option then. You can try this.

Tried it, doesnt work :frowning: this (WireGuard Component — ESPHome) says something about configuring “use_address” but I have no clue which ip I should set this to, if this is even the problem

If it is shown as offline in esphome (where you edit code), this is likely due to mDNS not routed across. Just use manual IP for that device (same IP as device is assigned with) and you should be able to edit code and update it OTA. It will still show as offline though.

# Example configuration entry
wifi:
  ssid: MyHomeNetwork
  password: VerySafePassword

  # Optional manual IP
  manual_ip:
    static_ip: 192.168.0.123
    gateway: 192.168.0.1
    subnet: 255.255.255.0

In HA - add device by using IP. Should work. This has no relation to esphome.

1 Like

Thank you sir, this solved the problem. Even though I was able to add the esp via IP before, now the the esp connected bt devices show directly up in my ha.