Scott--R / Tailwind_Local_Control_API

10 stars 1 forks source link

add User to API to open/close door #2

Open gregschroeder opened 2 months ago

gregschroeder commented 2 months ago

Perhaps I'm overlooking it or it isn't documented, but I don't see a way to pass the acting username to the HTTP API when opening/closing a door. The device history therefore only shows "Somebody" as the user who performed the action, and I need to know the username.

Is this possible?

devTW001 commented 2 months ago

I think we can add a field like username in the local control request. But in order to show that name in the notification and history page, we'll have to take some time to get it work. We'll let you know once it is fully supported. Thanks!

gregschroeder commented 2 months ago

Great - thanks for the consideration!

It occurred to me that "username", specifically, might have some complexities such as it matching/not matching existing usernames, etc. Maybe just allowing the passing of a generic label value is more flexible and doesn't have that entanglement. It also would allow for, eg, home automation to (optionally) pass whatever context it wanted, like what triggered the event. ("Evening mode trigger")