A lot of changes made, merged Hub and EncryptedHub into one, where encryption is based on the key being present and decryption happens for the message then. Also moved the components classes into the subfiles to make it more readable. TODO: the restore entity function does not seem to work fully, after boot of HA a alarm is set to disarmed and smoke and moisture sensors to OFF.
A lot of changes made, merged Hub and EncryptedHub into one, where encryption is based on the key being present and decryption happens for the message then. Also moved the components classes into the subfiles to make it more readable. TODO: the restore entity function does not seem to work fully, after boot of HA a alarm is set to disarmed and smoke and moisture sensors to OFF.