The code owner fixed a lot but it is still broken on 2022.12.0 if you are using an XT1 alarm panel - I have it running by changing the code by myself and made a pull request on the original lupupy repo.
If you are interested in a quick fix via ssh, here it is:
CAUTION - you need to connect to your docker instance of HA via SSH! If you are not sure don´t do it! You can break your HA instance! Here is what I have done:
If not already done so, Install the SSH & Web Terminal add-on. Make sure the “Protected Mode” is switched OFF - you will get a warning, that you can break things when you are using it in the UN-protected mode.
Open the GUI of SSH & Webterminal:
At the command prompt enter:
docker exec -it homeassistant bash
at the new prompt enter:
cd ..
cd usr/local/lib/python3.10/site-packages/lupupy
vi __init__.py
This opens the __init__.py
in the editor vi (which really sucks imho)
Now hit the Insert-Key (german: EINF) on your keyboard to enter the edit mode of the vi editor and using the arrow keys scroll through the code until you find:
Comment out all those lines by putting a “#” in front of them:
And add a new line:
self._history_cache = []
as shown in the picture above (the last line in the picture. Make sure that the indentations are correct. Use the Space key to indent, do not use the tabulator key!!
Then scroll down until you find:
In the two lines beginning with if device["status"] ==
add the following:
In the first line:
or device["status"] == CONST.STATUS_OPEN
In the second line:
or device["status"] == ""
as shown in the picture above. Make sure that the lines end with a colon :
Make sure everything looks as in my pictures. Then on your keyboard hit ESC to exit the edit mode.
Then hit
:w
followed by ENTER to save the changes and then
:q
followed by ENTER to exit the vi editor.
Now restart your home assistant and the lupusec integration should start without problem.
…or wait until my pull request found it’s way into the next release…
Good luck!