Feller-AG / wiser-api

MIT License
12 stars 1 forks source link

Stopping a moving motor load using the API #14

Closed mpbzh closed 3 months ago

mpbzh commented 3 months ago

When a motor load is moving, I can stop it by pressing a physical button.

Is there an equivalent in the API? Sending the target_state with a value {"moving": "stop"} does not seem to be working. If I understand the API correctly, I can only send level or tilt values.

My workaround currently is sending a ctrl-event to simulate a button press.

TimMayle commented 3 months ago

Yes, you can. Use the Put Command : /api/loads/{id}/ctrl with the Stop button type.

mpbzh commented 3 months ago

I didn't realize there is a stop button type. That's exactly what I was looking for, thanks a lot!