surepy icon indicating copy to clipboard operation
surepy copied to clipboard

Pet profile

Open epestela opened this issue 3 years ago • 2 comments

Not an issue, but a feature request :)

The application allows to set a pet as:

  • Normal
  • Indoor only (a pet that is not allowed to go out, but can get in if it happens to go out by another mean)

In the json payload of the web application these two appears respectively as

  • profile:2
  • profile:3

example of 'normal' pet

{ "1": { "id": 123456, "index": 1, "profile": 2, "version": "MTg=", "created_at": "2020-07-02T06:24:56+00:00", "updated_at": "2022-10-05T10:13:42+00:00" } }

Because of an issue with one of my cats, I discovered trough SurePet support that an 'Intruder' profile exists as well. This would be a pet allowed to exit but not to come in. The application does not allow you to set this (and does not displays it properly... but in the json payload it appears as profile:5

Would be nice to be able to set these profiles with surepy :D

The webapp changes profiles with a PUT request to an url like this https://app.api.surehub.io/api/device/111111/tag/123456 with payload profile:id (the tag and the ID above have the same value)

Not sure if other useful profiles exists...

epestela avatar Oct 07 '22 14:10 epestela

Why intruder and not simply unregister the pet?

  • he need to be able to get out
  • this should also allow to know when he looks trough (unregistered pet are not notified)

epestela avatar Oct 07 '22 14:10 epestela

I see that there is already an implementation for this here: https://github.com/rcastberg/sure_petcare/issues/16 Not sure if the code is reusable here. Missing profile 5 for 'intruder'

epestela avatar Nov 01 '22 09:11 epestela