wylanswets / homebridge-sure-petcare-platform

MIT License
18 stars 7 forks source link

Manual override switch #20

Open WendelFelius opened 3 years ago

WendelFelius commented 3 years ago

Is it possible to also add a switch to HomeKit to manually override the occupancy? Would love to tell Siri that our cat is outside/inside when she didn't use the petflap.

Sommi486 commented 3 years ago

That would be a very great feature! @wylanswets

wylanswets commented 3 years ago

I see that it is a feature of the API to tell it the pet is the opposite of what they are now, how would you see this implemented in homekit? I can think of a few options:

My only fear / concern about the 2nd option (even though it sounds the smartest / simplest) is that it would change the plugins functionality and break any automations that relied on the occupancy sensor. I suppose it's possible this could be added in as a configuration option that the user could change on their own based on if they want it to be a switch or a sensor?

What do you guys think?

WendelFelius commented 3 years ago

I think the first option is the best, a (light)switch that toggles the state of the sensor.

If that switch is optional in the config, it won't break anything for any user right?

Sommi486 commented 3 years ago

I also think that solution nr 1 is the best. So you also can name the switch and the occupancy sensor different.

TheSEP42 commented 3 years ago

I’d just like to add my support to idea number 1 :) it’d be nice to not have to update occupancy manually in the sure Petcare app as it’s slow and cumbersome.

Sommi486 commented 3 years ago

@wylanswets How is the state of this feature?

J1D2A3 commented 3 years ago

Hi @wylanswets, just wondering if you'd had a chance to look into this at all? A manual override would be great as my cats do like to slip out of the door when it is opened! If I can help at all, let me know! Great work on the plugin.

Sommi486 commented 2 years ago

@wylanswets how does it look with this feature?