Installed in HA, everything was OK. I have saved the yaml and the bin file.
HA asked for a ESP32 firmware update from 2023.6.3 to 2023.6.4. After that I have seen this message: "Firmware turned off triggered by service update" and Athom Smart Plug V2 is Unavailable. The led is blinking blue. Tried 7 times power ON/OFF, 4 sec Button ON, default SSID not appearing. What to do next?
YAML file generated from HA:
"substitutions:
name: "esp32sp-v2-a794e8"
packages:
athom.smart-plug-v2: github://athom-tech/athom-configs/athom-smart-plug-v2.yaml
esphome:
name: ${name}
name_add_mac_suffix: false
api:
encryption:
key: v/gFSXNYn0PelTq5iMKHnd1wV7pwN7GvgGRgtSRWPLs=
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
"
Thank you for the fast answer.
My mistake was that SSID is case sensitive and one letter was small instead of capital. The led was blinking blue because the plug could not connect to WiFi. And to reset you have to keeep the plug powered on and toggle ON/OFF 4 times the power switch. Successfully updated to ESP 2023.6.4.
You do have this product. SKU is PG01V2-EU16A-ESP-2-FK. HA recognise this plus as ESP32 Athom SmartPlugV2 and use package:athom.smart-plug-v2: github://athom-tech/athom-configs/athom-smart-plug-v2.yaml to compile.
Very good product and I ordered 6 more from Germany. And Bulbs. And Human Presence Sensors. For sure I will buy all of your ESP32 devices.
First of all, we don’t have the ESP32 version of the plug so far, and second, your last two lines of code fix the Wi-Fi information in the firmware, so no matter what method you use, you can’t clear the Wi-Fi information unless you flash the firmware again.