RESTful API and Locks

First, I love Home Assistant. It’s been the most rock-solid platform out of all I’ve tried.

I’m dabbling in the RESTful API (https://home-assistant.io/developers/rest_api/) now, and writing my own UI frontend for fun. I’ve got services such as switches and lights turning on an off just fine, but I’m hitting a 405 when trying to do a lock and unlock.

Is this a security limitation imposed in HA and is it configurable? I understand either way, however the /api/services definition makes me think that it should be possible.

Thanks!

Nevermind. I had my URL formed wrong. Sorry to bother!

1 Like