Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pet profile #159

Open
epestela opened this issue Oct 7, 2022 · 2 comments
Open

Pet profile #159

epestela opened this issue Oct 7, 2022 · 2 comments

Comments

@epestela
Copy link

epestela commented Oct 7, 2022

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
Copy link
Author

epestela commented Oct 7, 2022

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
Copy link
Author

epestela commented Nov 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant