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 https://director.myenergi.net gateway seems to be down, whereas the https://s18.myenergi.net 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 connection.py

Modify line 27 from:

    self.director_url = "https://director.myenergi.net"

To:

    self.director_url = "https://s18.myenergi.net"

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