KaufHA/PLF10

PLF10 Home Assistant Update FAIL

Opened this issue · 8 comments

Home Assistant showing 2023.10.0 update for all 4 of my Kauf Plugs. Normal update via UI fails. Restarted firmware on all devices, restarted Home Assistant multiple times. All updates fail at exact same point (see log detail below):

Compiling .pioenvs/kplug-office-1/src/esphome/components/kauf_hlw8012/kauf_hlw8012.cpp.o
src/esphome/components/captive_portal/captive_portal.cpp: In member function 'void esphome::captive_portal::CaptivePortal::start()':
src/esphome/components/captive_portal/captive_portal.cpp:76:37: error: invalid cast from type 'esphome::network::IPAddress' to type 'uint32_t' {aka 'unsigned int'}
76 | this->dns_server_->start(53, "*", (uint32_t) ip);
| ^~~~~~~~~~~~~
*** [.pioenvs/kplug-office-1/src/esphome/components/captive_portal/captive_portal.cpp.o] Error 1
========================= [FAILED] Took 10.53 seconds =========================

I also attempted to enable (add captive_portal) to yaml file and restart firmware, restart Home Assistant and manually update 1 plug. No change - same error.

All 4 plugs have updated without issue for a year or more. Looking at GitHub looks package file (referenced in yaml config) was changed an hour ago. Unable to pinpoint change that may contribute so the updated file is just a variable to rule out and may have nothing to do with the issue.

Should be fixed now.  Had to update the custom components for the latest ESPHome release.  In order for you to see the fix you'll need to delete your .esphome/packages folder or wait 24 hours for ESPHome to check for an updated package again.

It does not appear to have worked... same issue.

  • I fully deleted esphome folder -- restarted Home Assistant
  • Home Assistant no longer showed updates pending for Kauf PLF10 plugs (firmware from web page shows older version -- (Firmware version 2.057(y) made using ESPHome version 2023.9.3.)
  • Created new esphome folder
  • Manually created new yaml files (for each of my 4 Kauf PLF10 plugs)
  • Restarted Home Assistant
  • After reboot 4 updates pending (1 per Kauf PLF10 plug) reappeared.
  • Used shell to check HA Core and HA Supervisor -- no issues
  • Shutdown Home Assistant and hardware server power off.
  • Started from power up and all 4 Kauf PLF10 plugs still OK (online and no issues) after startup.
  • Checked each plug from URL - no issues
  • Went to ESPHome Integration and selected update all
  • Same error at same step in the update:

Compiling .pioenvs/kplug-front-room/src/esphome/components/select/select_call.cpp.o
src/esphome/components/captive_portal/captive_portal.cpp: In member function 'void esphome::captive_portal::CaptivePortal::start()':
src/esphome/components/captive_portal/captive_portal.cpp:76:37: error: invalid cast from type 'esphome::network::IPAddress' to type 'uint32_t' {aka 'unsigned int'}
76 | this->dns_server_->start(53, "*", (uint32_t) ip);
| ^~~~~~~~~~~~~
Compiling .pioenvs/kplug-front-room/src/esphome/components/select/select_traits.cpp.o
*** [.pioenvs/kplug-front-room/src/esphome/components/captive_portal/captive_portal.cpp.o] Error 1
========================= [FAILED] Took 21.01 seconds =========================

FYI -- Nothing was in esphome folder before I deleted it other than hidden file ".gitignore" which reappeared once I tried to update plugs.

ESPHome comment suggests Kauf update needed.

esphome/issues#5003

If compile is failing, nothing about the plugs has any bearing on the issue. It is only an issue with the dashboard and what code the dashboard is pulling in. If you are still having errors, they should resolve after 24 hours since we released an update that fixed this. The only way to get ESPHome to see the update before waiting 24 hours is to delete the packages folder. If you can't find it I'd just wait 24 hours and it should work.

I waited and the update worked, now it's not working on the 2023.10.6 update.

Are you still having issues? Need you to post error from logs.

I figured out my issue, sorry to cause any churn. I factory reset the plug added it in and everything is working.