Trying to get captive portal to work - connection refused

ESPHOME 2023.2.4

I have a lot of these small blitzwolf BW-SHP6 plugs.
I’ve taken some them out of production, but I’m trying to make them into a more generic config, so I can easily take them into production again at a later stage.
So I’ve set up a ‘fake WLAN’ on them.
I’ve also activated ap, and captive portal with:

wifi:
  ssid: unknown_wifi
  password: unknown_password
  reboot_timeout: 60min
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "${device_name} Hotspot"
    password: 'verysecret'
 captive_portal:

I see the AP showing up, and I can connect to it, but if I go to 192.168.4.1 I get a ‘connection refused’.
I also tried scanning the 192.168.4.1 for open ports, and I get nothing open.
I’ve also set logging, and activated the webserver and enabled api encryption with:

logger:
  baud_rate: 0
web_server:
  port: 80
  auth:
    username: "user"
    password: "password"
api:
  encryption:
    key: "o5beXxQfmcaszWr0ODjgbVqO35+SeaOn701RB7tSWCE="

What is wrong here?

If I create the ‘fake’ WLAN, I see this in the logfile for it:
[C][captive_portal:088]: Captive Portal:

Ok, I redid the flash, and now I see ‘log in’ on my cell phone when connected to the AP, and if I press that I see a new page
Webpage is not available
ERR_HTTP_RESPONSE_CODE_FAILURE

Hi,

I know this is an old post, but did you ever find a solution?