Hi Folks,
My D1 mini pro shares my Home energy data with my HA through ESPHOME 2022.11.2, while the device works fine I am having issues with OTA updates, I mean the OTA update finishes successfully but D1 does not boot after that, and soft reset or power cycle do not help.
To get it working again I have to download the firmware and install it through a USB TTL adapter with ESPHOME-flasher.
its kind of a hassle to pull out the energy monitoring system from the junction box every time to update the firmware, does anyone have a similar issue, any fix or workaround will be appreciated.
Regards
Anil Verma B
esphome:
name: a402-energy8266
esp8266:
board: d1_mini_pro
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "d4631574c67aa19694c4a18d772261de"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.1.67
gateway: 192.168.1.1
subnet: 255.255.255.0
dns1: 192.168.1.25
dns2: 8.8.8.8
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "A402-Energy8266 Fallback Hotspot"
password: "o2Pjeefl5Nyq"
captive_portal:
uart:
rx_pin: D5
tx_pin: D6
baud_rate: 9600
modbus:
sensor:
- platform: pzemac
id: pzemaca402
current:
name: "A402C"
voltage:
name: "A402V"
filters:
- lambda: |-
return ((x * 0.992 ));
# return ((x - 2 ));
energy:
name: "A402E"
unit_of_measurement: kWh
accuracy_decimals: 2
filters:
- multiply: 0.001
power:
name: "A402P"
frequency:
name: "A402F"
power_factor:
name: "A402PF"
update_interval: 60s
button:
- platform: template
name: a402_reset
id: reset_button
# Optional variables:
icon: "mdi:restore"
on_press:
- pzemac.reset_energy: pzemaca402
note - tested WEMOS D1 mini (non pro) with the same issue.