Home Assistant integration for OnlyCat catflap

This is the official topic to discuss the integration of the OnlyCat catflap into Home Assistant.

This is the repository we will use for this integration: GitHub - OnlyCatAI/onlycat-home-assistant

As a starting point, the OnlyCat team have just asked me an interesting question: why don´t we start working on the integration using the cloud API (already available), and once the local API becomes available we add that to the mix?

And I think that´s a great idea! Where do we start from?

EDIT: the OnlyCat team already have an answer for my question, this has been their reply:

Since we have yet to prepare proper API documentation, I am sending the relevant files in the client code which you can use as reference for the protocol and available requests: https://www.dropbox.com/t/3BqxWDblTVLBRydh You’ll need to connect to gateway.onlycat.com over SocketIO, and provide a token to authenticate the user. The token can currently be grabbed from the app (shown in the account tab). In the future we’ll allow users to generate unique tokens for each API/integration. Hopefully that’ll be enough to make a start, and if you have any questions about how any of the code works, we’ll be happy to help.

1 Like

Um, is it really “official” if you are not an employee/representative of OnlyCat?

They sound quite amenable to your development (which is nice) but be careful your wording does not over step the mark.

When is the first draft code avaible? Are you going to start with it?