Make deconz work when network is down

Hi all,

I have home assistant setup in an python env with deconz installed on the same raspberry pi. I have noticed that deconz stops working when my router dies. I assume this is because home assistant tries to connect to deconz through the LAN ip rather than 127.0.0.1 is it possible to fix this somehow? This is a biggies since my wall buttons stops working when home-assistant is down.