v1.98
- Button hold for 30s instead of 5s to force Wi-Fi AP. Forcing Wi-Fi AP is now done by overwriting stored or hard-coded credentials, so previous credentials will always be lost and Wi-Fi AP will always come up.
- Wi-Fi AP/captive portal is now included in yaml package as well as update bin file. AP will only enable if credentials are cleared through holding button for 30 seconds or through the web interface.
- Add GPIO substitutions to allow this firmware to be used with other ESP8266-based plugs with HLW8012 power sensor but different pinouts.
From Common components:
- ESPHome 2022.10
- Clearing Wi-Fi credentials and forcing Wi-Fi AP now both will write initial_ap/asdfasdfasdfasdf credentials to flash. The credentials saved in flash will overwrite any previous configured credentials and also take precedence over any credentials configured in yaml. Thus ensuring that the Wi-Fi AP will be enabled in almost any circumstance.
- AP Timeout is always shortened to 15 seconds if the software configured credentials have the SSID initial_ap.
- Reset flash storage using stock ESPHome function instead of custom function.
- Hard code an AP timeout of 15 seconds when Wi-Fi is not configured.
- In the captive portal, place focus back to password field after toggling “show password”.