And setState should probably take kwargs rather than a dict of arguments. Might also be cool to use a context manager for a "complex send" e.g.
with light:
light.bri(220)
light.alert("select")
which would only send the whole request at once in __exit__, as in "transactional" APIs.