core icon indicating copy to clipboard operation
core copied to clipboard

Sure PetCare: Cannot set 'Indoor Mode' for Pets

Open JohnMcIl opened this issue 11 months ago • 7 comments

The problem

We are a multi-pet family and need the ability to control each pets ability to exit the house.

The only way to do this is via setting 'Indoor Mode' at the Pet level.

This function is available via the native iOS app but is not provided via HA.

If someone is able to inspect why, this would be greatly appreciated!

Otherwise, I fear I may need to build my own door…which also has local only access.

What version of Home Assistant Core has the issue?

2025.1.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet


Anything in the logs that might be useful for us?


Additional information

No response

JohnMcIl avatar Jan 19 '25 23:01 JohnMcIl

Hey there @benleb, @danielhiversen, mind taking a look at this issue as it has been labeled with an integration (surepetcare) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of surepetcare can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign surepetcare Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


surepetcare documentation surepetcare source (message by IssueLinks)

home-assistant[bot] avatar Jan 20 '25 09:01 home-assistant[bot]

@Danielhiversen any thoughts on this, please? :)

JohnMcIl avatar Jan 26 '25 03:01 JohnMcIl

@Danielhiversen Would it be best for another member of the team to review this, please? 🙏

JohnMcIl avatar Feb 08 '25 22:02 JohnMcIl

@JohnMcIl I'm also very interested in this and actually needs it. Seems the owner is busy so I will have a look at it and maybe make a PR if I succeed the have something working., I don't know exactly when I will have time to take a look, but it's on my todo list.

shelly-rng avatar Feb 14 '25 09:02 shelly-rng

Nice!!! Love your enthusiasm :D

Best wishes,

John McIlveen On 14 Feb 2025 at 8:10 PM +1100, Shelly @.***>, wrote:

@JohnMcIl I'm also very interested in this and actually needs it. Seems the owner is busy so I will have a look at it and maybe make a PR if I succeed the have something working., I don't know exactly when I will have time to take a look, but it's on my todo list.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

shelly-rng left a comment (home-assistant/core#136035) @JohnMcIl I'm also very interested in this and actually needs it. Seems the owner is busy so I will have a look at it and maybe make a PR if I succeed the have something working., I don't know exactly when I will have time to take a look, but it's on my todo list. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

JohnMcIl avatar Feb 14 '25 09:02 JohnMcIl

I would also love this feature to be available within HA - although sadly I've had to move to SureHA at the moment, due to this integration currently being broken.

GordonTwist avatar Apr 25 '25 14:04 GordonTwist

Hello, for this i use action: surepetcare.set_pet_location inside or outside

PtiBed0 avatar May 05 '25 07:05 PtiBed0

I'm also looking for this feature. Would be great if this is available!

Michael1985643 avatar May 20 '25 18:05 Michael1985643

See my comment here: https://github.com/benleb/sureha/issues/73

I am trying to expose this in surepy as well as sureHA to get this working ... for now you can do as on the post above as a temp workaround. It works :)

bushbrother avatar May 28 '25 14:05 bushbrother

I could maybe implement it into my integration but unsure which properties that the Api exposes. https://github.com/FredrikM97/hass-surepetcare.

How does it look like in the official app?

FredrikM97 avatar Jul 13 '25 21:07 FredrikM97

I could maybe implement it into my integration but unsure which properties that the Api exposes. https://github.com/FredrikM97/hass-surepetcare.

How does it look like in the official app?

I got this working by modifying the surepy API here: https://github.com/benleb/surepy/pull/223

This added the set_indoor_only and set_outdoor ability. Note that is different to the actual location being indoor/outdoor, it refers to that pet never being allowed out.

I also modified the SureHA code here: https://github.com/benleb/sureha/pull/75

I have this running for 4 cats in my house with no issues. FYI it looks like the below in the app.

Image

bushbrother avatar Jul 14 '25 09:07 bushbrother

@bushbrother does this work if you would have multiple flaps?

FredrikM97 avatar Jul 14 '25 11:07 FredrikM97

@bushbrother does this work if you would have multiple flaps?

It should do as it is against the pet tag_id not the flap, I would assume multiple flaps would have assigned pets/tags and pull the relevant info.

I only have 1 flap to test with ...

bushbrother avatar Jul 14 '25 14:07 bushbrother

AWESOME work @bushbrother !! I cannot see this on my integration, how do I force an update?

JohnMcIl avatar Jul 15 '25 01:07 JohnMcIl

AWESOME work @bushbrother !! I cannot see this on my integration, how do I force an update?

This needs @benleb to approve my PR on surepy, this will then allow the various surepet addons to make use of this how they see fit. I modified and submitted a PR to SureHA too, and you are free to pull that version to test it, but you need surepy first.

bushbrother avatar Jul 15 '25 17:07 bushbrother

Hey guys,

Any update when this will be merged? On 16 Jul 2025 at 3:15 AM +1000, Laurie Richards @.***>, wrote:

bushbrother left a comment (home-assistant/core#136035)

AWESOME work @bushbrother !! I cannot see this on my integration, how do I force an update? This needs @benleb to approve my PR on surepy, this will then allow the various surepet addons to make use of this how they see fit. I modified and submitted a PR to SureHA too, and you are free to pull that version to test it, but you need surepy first. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

JohnMcIl avatar Jul 27 '25 04:07 JohnMcIl

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Please do not close.

daviessm avatar Oct 25 '25 08:10 daviessm

Morning,

When will this be actioned?

Best wishes,

John McIlveen On 25 Oct 2025 at 7:26 PM +1100, Steven Davies @.***>, wrote:

daviessm left a comment (home-assistant/core#136035) Please do not close. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

JohnMcIl avatar Oct 26 '25 03:10 JohnMcIl

@bushbrother does this actually work for you? I just manually overwritten the sureha files in mij custom components dir in mijn Home Assistant, and after a reboot of home assistant I gained the two methods you were talking about prior, but I do not seem to get them to work. For me nothing changes in the Sure Petcare app when I call these methods. I tried both methods when the only-indore state of my pet was true and I tried them when it was false. I even removed all SureHA devices and readded them again, still no changes. Can you tell me more about what might be going wrong?

Robovh avatar Oct 30 '25 20:10 Robovh

Hi - this exposed method also needs to be consumed by the surepetcare integration, I made a fork of SureHA - you can use that toget the switch toggle to do what you need, this is also awaiting @benleb/surepy @.***> to approve.

On Thu, 30 Oct 2025 at 20:24, Robovh @.***> wrote:

Robovh left a comment (home-assistant/core#136035) https://github.com/home-assistant/core/issues/136035#issuecomment-3469960897

@bushbrother https://github.com/bushbrother does this actually work for you? I just manually overwritten the sureha files in mij custom components dir in mijn Home Assistant, and after a reboot of home assistant I gained the two methods you were talking about prior, but I do not seem to get them to work. For me nothing changes in the Sure Petcare app when I call these methods. I tried both methods when the only-indore state of my pet was true and I tried them when it was false. I even removed all SureHA devices and readded them again, still no changes. Can you tell me more about what might be going wrong?

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/136035#issuecomment-3469960897, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXZIYKER4CU2QQDY46QRV332JXX7AVCNFSM6AAAAABVPE2HPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINRZHE3DAOBZG4 . You are receiving this because you were mentioned.Message ID: @.***>

bushbrother avatar Oct 31 '25 09:10 bushbrother

Note you can also try the below add on, they used an alternative to surepy and it's also working.

https://github.com/FredrikM97/hass-surepetcare

On Fri, 31 Oct 2025, 15:27 Laurie Richards, @.***> wrote:

Hi - this exposed method also needs to be consumed by the surepetcare integration, I made a fork of SureHA - you can use that toget the switch toggle to do what you need, this is also awaiting @benleb/surepy @.***> to approve.

On Thu, 30 Oct 2025 at 20:24, Robovh @.***> wrote:

Robovh left a comment (home-assistant/core#136035) https://github.com/home-assistant/core/issues/136035#issuecomment-3469960897

@bushbrother https://github.com/bushbrother does this actually work for you? I just manually overwritten the sureha files in mij custom components dir in mijn Home Assistant, and after a reboot of home assistant I gained the two methods you were talking about prior, but I do not seem to get them to work. For me nothing changes in the Sure Petcare app when I call these methods. I tried both methods when the only-indore state of my pet was true and I tried them when it was false. I even removed all SureHA devices and readded them again, still no changes. Can you tell me more about what might be going wrong?

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/136035#issuecomment-3469960897, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXZIYKER4CU2QQDY46QRV332JXX7AVCNFSM6AAAAABVPE2HPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINRZHE3DAOBZG4 . You are receiving this because you were mentioned.Message ID: @.***>

bushbrother avatar Oct 31 '25 11:10 bushbrother

When will this be part of the native integration>?

Best wishes,

John McIlveen On 31 Oct 2025 at 10:47 PM +1100, Laurie Richards @.***>, wrote:

bushbrother left a comment (home-assistant/core#136035) Note you can also try the below add on, they used an alternative to surepy and it's also working.

https://github.com/FredrikM97/hass-surepetcare

On Fri, 31 Oct 2025, 15:27 Laurie Richards, @.***> wrote:

Hi - this exposed method also needs to be consumed by the surepetcare integration, I made a fork of SureHA - you can use that toget the switch toggle to do what you need, this is also awaiting @benleb/surepy @.***> to approve.

On Thu, 30 Oct 2025 at 20:24, Robovh @.***> wrote:

Robovh left a comment (home-assistant/core#136035) https://github.com/home-assistant/core/issues/136035#issuecomment-3469960897

@bushbrother https://github.com/bushbrother does this actually work for you? I just manually overwritten the sureha files in mij custom components dir in mijn Home Assistant, and after a reboot of home assistant I gained the two methods you were talking about prior, but I do not seem to get them to work. For me nothing changes in the Sure Petcare app when I call these methods. I tried both methods when the only-indore state of my pet was true and I tried them when it was false. I even removed all SureHA devices and readded them again, still no changes. Can you tell me more about what might be going wrong?

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/136035#issuecomment-3469960897, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXZIYKER4CU2QQDY46QRV332JXX7AVCNFSM6AAAAABVPE2HPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINRZHE3DAOBZG4 . You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

JohnMcIl avatar Nov 02 '25 23:11 JohnMcIl