Page 1 of 1

Plugins Sureflap Hub de chez Sure PetCare

Posted: Sunday 23 December 2018 14:43
by HallezJB
Bonjour... je suis Français...
J'ai une chatière: Sureflap Grande Chatière à Puce Electronique Connect avec Hub

https://www.medicanimal.fr/Trappe-de-po ... vZEALw_wcB

Voulant l'intégrer à Domoticz, je suis arrivé sur ce post:
https://community.home-assistant.io/t/s ... r/41488/28

sur lequel il est dit qu'avec l'API on pouvait savoir l'état des entrées et sorties de notre chat...:
git clone https://github.com/rcastberg/sure_petcare.git


Une fois installé sur mon Raspberry je fais... avec mon adresse Email+mot de passe, ça fonciotnne...
./sp_cli.py --update -e <email_address> -p <password>

Puis ensuite, si je fais:
./hass_test.py j'ai bien l'état de ma chatière de mon chat Willy:

{'WILLY': 'Outside',
'avg_battery': 19,
'battery': 19,
'flap_online': True,
'hub_online': True,
'lock_status': 'Unlocked with curfew',
'locked': False}

Peux-ton l'intégrer dans un plugins de Domoticz pour l'avoir en matériel ???? et donc un retour des événements afin de savoir quand il rentre ou sort...

Merci beaucoup de votre aide...

Re: Plugins Sureflap Hub de chez Sure PetCare

Posted: Sunday 23 December 2018 16:21
by dzjr
Hello @HallezJB that would be a nice addition to my domoticz system.
I myself have a surecare connected cat flap and now use the app or the web interface.

I paired two cats with the cats, one unfortunately died recently ....

I tried to update the user and pass, but unfortunately I did not succeed.

I'm going to follow this post because I think it looks very nice when it comes to work!