New to the HASS REST API. Not sure if this is something already supported. I have a command line switch and I want to use HASS REST API to turn it on/off.
When I call the REST API, with {“entity_id”: “switch.door_light”, “state”: “on”}. The API returns the following error. I guess it’s not supported yet?
{“result”: “error”, “message”: “405: Method Not Allowed”}
Thanks for the quick response! The command line switch works fine on Home Assistant UI. I want to be able to control it from an Android app using HASS REST API. (I need to use command line switch, not a restful switch)