I removed a button from the esphome configuration but strangely I always find it among the entities and I can’t delete it, as if it still existed in the configuration. I restarted HA several times.
esphome:
name: energy-monitor
friendly_name: Energy Monitor
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
level: debug
baud_rate: 0
# Enable Home Assistant API
api:
encryption:
key: "xxx"
ota:
password: "xx"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Energy-Monitor Fallback Hotspot"
password: "xxx"
captive_portal:
uart:
- id: ubus
rx_pin: GPIO1
tx_pin: GPIO3
baud_rate: 9600
stop_bits: 1
modbus:
- id: mbus
uart_id: ubus
sensor:
- platform: pzemac
id: pzemac_1
modbus_id: mbus
address: 1
current:
name: "ID1 Current"
voltage:
name: "ID1 Voltage"
energy:
name: "ID1 Energy"
id: id1_energy
unit_of_measurement: kWh
accuracy_decimals: 3
filters:
- multiply: 0.001
power:
name: "ID1 Power"
frequency:
name: "ID1 Frequency"
power_factor:
name: "ID1 Power Factor"
update_interval: 3s
- platform: pzemac
id: pzemac_2
modbus_id: mbus
address: 2
current:
name: "ID2 Current"
voltage:
name: "ID2 Voltage"
energy:
name: "ID2 Energy"
power:
name: "ID2 Power"
frequency:
name: "ID2 Frequency"
power_factor:
name: "ID2 Power Factor"
update_interval: 3s
- platform: pzemac
id: pzemac_3
modbus_id: mbus
address: 3
current:
name: "ID3 Current"
voltage:
name: "ID3 Voltage"
energy:
name: "ID3 Energy"
power:
name: "ID3 Power"
frequency:
name: "ID3 Frequency"
power_factor:
name: "ID3 Power Factor"
update_interval: 3s
switch:
- platform: uart
uart_id: ubus
id: reset_pzem_1
name: pzem reset 1
data: [0x01, 0x42, 0x80, 0x11]
- platform: uart
uart_id: ubus
id: reset_pzem_2
name: pzem reset 2
data: [0x02, 0x42, 0x80, 0xE1]
- platform: uart
uart_id: ubus
id: reset_pzem_3
name: pzem reset 3
data: [0x03, 0x42, 0x81, 0x71]