Myenergi integration currently broken

For those who use the awesome myenergi custom integration, the API gateway appears to be somewhat broken currently. I expect it will be repaired at some point, but in case you want a quick fix…

I’ve noticed that the gateway seems to be down, whereas the is providing some service. So we can modify the pymyenergi python library temporarily.

This will only work if you have access to the home assistant container. If you do, from your host:

% docker exec -it homeassistant bash
# cd /usr/local/lib/python3.9/site-packages/pymyenergi/
# rm -R __pycache__
# vi

Modify line 27 from:

    self.director_url = ""


    self.director_url = ""

Save changes, exit out of the container, restart home assistant. Should work (mostly).