Saw the update for ESPHome 2023.3.1, so I went ahead and updated it. Then all of my ESPHome devices showed up as having updates, so I updated them via Update All
. However, now my Sankey Energy chart, and for that matter, any chart, graph, or statistic that included Anthom smart plug energy data is broken. And my energy trend statistics are now thrown off for these devices. The Kauf plugs fortunately retained their entity and attribute names.
For example, sensor.refrigerator_energy
is now sensor.energy_3
, and so forth.
Every entity and attribute in the Athom smart plugs’ metadata is now plainly named, instead of having the device name
for the entity name and prepended for the attributes.
I didn’t change any of the yaml for the Anthom smart plugs, here’s the refrigerator yaml as an example;
substitutions:
name: refrigerator
friendly_name: Refrigerator
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: CfY4Ms3irbUlrM0gtYTwpHC8d/Yx890tsmeSBvt79/g=
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
use_address: 192.168.50.5
The logs from the device updates didn’t throw what I thought were suspicious errors. Here’s a tiny portion from the end of the compile/build from the Clothes Dryer Athom plug update;
INFO Waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from 192.168.50.47 using esphome API
WARNING Can't connect to ESPHome API for 192.168.50.47: Timeout while connecting to ('192.168.50.47', 6053)
INFO Trying to reconnect to 192.168.50.47 in the background
INFO Successfully connected to 192.168.50.47
[20:33:17][W][api.connection:071]: 192.168.50.83: Socket operation failed: BAD_INDICATOR errno=11
[20:33:17][I][app:102]: ESPHome version 2023.2.3 compiled on Feb 21 2023, 20:30:10
[20:33:17][I][app:104]: Project athom.smart-plug-v2 version 1.1
and it appears that attributes like Clothes Dryer Total Daily Energy should have been set, for example;
[20:33:18][D][sensor:126]: 'Clothes Dryer Total Daily Energy': Sending state 0.00000 kWh with 3 decimals of accuracy
[20:33:18][D][api:102]: Accepted 192.168.50.83
[20:33:18][W][api.connection:071]: 192.168.50.83: Socket operation failed: BAD_INDICATOR errno=11
The only fly in the ointment may have been the socket operation failure, though the data itself has been sent to the new generic attribute.
Clearly, I did something wrong, but I have been unable to find anything in the prior posts that point to this issue.
Questions;
-
What did I do wrong?
-
What is the correct procedure for updating Athom devices without overwriting their attribute names, so that this doesn’t happen over and over again?
-
Is there any way to recapture the energy data for these devices?