That last bit is in which I’m interested. Instead of defaulting to an AP which everybody can access when I reboot my access point, I would like to be able to trigger that from software. For example by holding the button. But even though the documentation states it should be an option, I still have not found a way to do it!
A Factory Reset Switch would trigger the captive portal but it does wayyyyy more. I would just like to manually enter the AP-mode with captive portal. Anybody any idea?
Thank you for the help both! You answers help me to confirm it is indeed an oversight in ESPHome
@Hellis81 I first tried to use the actions directly in a template button. That only resulted in the device becoming ‘unavailable’ in HA for a split second. After which I made the same script and used that in the template button. That indeed results in an AP (ESP_xxxxxx) without password. But I’m not able to connect to it. Can you connect?
Can you kindly post the exact code that you have used to achieve “launching a cacptive portal by a button press during boot”. i’m looking for this from a long time.
my equipments are getting restarted quite ofter due to a poor wifi network.
also, is the IP “192.168.4.1” fixed? or is it possible to give any name for this. anyways i will also figure this out.
also, if you can share what is your implementation strategy instead of button. if it is efficient than my strategy i will also use the same.
Thank you.
You can place that code wherever you want but this is just the script itself.
I
You need to run the script where your button is with the syntax I linked to.
after button press i can see the logger.log message in “AP mode”.
but
it results in an AP (ESP_xxxxxx) without password. i’ve connected to PC / phone.
and when i enter 192.168.4.1 (or) 192.168.4.2 it refuses to connect.
any help here please?