4 ms·
Do you mean reverse engineering the API response from the "set home/away" command? If yes, then I sort of[1] do this for the "status" part of the response, so
by emilburzo 6y ago
Do you mean reverse engineering the API response from the "set home/away" command?
If yes, then I sort of[1] do this for the "status" part of the response, so I can give useful error messages back (e.g. wrong "structure id")
[1] https://github.com/emilburzo/nest-rest/blob/master/src/main/kotlin/nest/api.kt#L29-L37 https://github.com/emilburzo/nest-rest/blob/master/src/main/...