Was going really well until i managed to break the alarm panel. Now to order a new CD4081 for it. Can still order those form Element 14 at least.
I did have the raspberry pi controlling it and detecting the state but then while i was messing around i think i manged to short the AND gate that was in the inputs and now the chip gets really hot and the panel is not working properly.