benleb / sureha

SureHA 🐾 monitor & control your Sure Petcare devices via Home Assistant
Apache License 2.0
21 stars 12 forks source link

[FeatureRequest] - Service "toggle_pet_location" #49

Open ChristophCaina opened 10 months ago

ChristophCaina commented 10 months ago

The repository information provides an example on how to create a Script that toggles the pet_location. This script can be called with a Custom Button Card.

With HA now having Tile Cards, it would be great, if we can either use the "TOGGLE" action directly - or, having also a Service for toggle the pets location:

CURRENT: Tile Card - Tap Action (icon) can call a Service. Unfortunately, you need to provide the Location with the service call.

grafik

It would be great, if we could have a toggle_location service, as we have it for other integrations as well: grafik

This would allow us to use the tile card directly to toggle the current status of the pet.

ChristophCaina commented 10 months ago

maybe a possible workaround:

grafik

The configuration is calling the "Script_Toggle" service, which will execute the toggle_pet_location" script then.