Looks like the integration supports unlock and lock, but there is no service definition for lock.
What do you mean by “there is no service definition”?
It should support locks via the lock
entity, and the services are provided by the the core Lock integration. https://www.home-assistant.io/integrations/lock/#services
There’s only an unlock definition:
Because it’s defined by the core integration.
I do see that now. Sorry, kinda new to this. But you could extend the services.yaml to include a Lock one as well, right?
Why is this necessary?
Because the documentation is lacking for this integration…
Why include unlock then ?
Lock and unlock are services for all integrations based on the core Lock integration. These are documented in the Lock integration itself.
Are you talking about subaru.unlock_specific_door
?
If that’s the case, then my confusion, perhaps update the feature request to clarify that. Adding the service definition doesn’t implement the functionality.
Yes. It’s not apparent from the integration documentation that the Subaru vehicle lock/unlock feature uses the same services as a door lock. I was confused, because I could add the unlock_specific_door
to my dash, but there wasn’t anything for lock.
In addition to the standard services built into the lock entity, this integration also provides a
subaru.unlock_specific_door
service to specify a door to unlock.
The standard services are lock.lock
and lock.unlock
as documented in the Lock integration.
Anyways, just for your information, it’s not possible to implement a subaru.lock_specific_door
service call in HA because the python library that provides the implementation of Subaru Link doesn’t expose any method of locking individual doors. HA can only lock all Doors. In fact, it’s not even possible to lock individual doors in the MySubaru app, at least for my car, do you see otherwise?
Agreed. I read that to mean the subaru lock entity, not the HA lock entity. Thanks for clarifying.