I see in the docs for the json API, that the
on state can be set with a true/false boolean. Is there a way to send a power toggle command instead of on/off? The older HTTP request API had this:
to send a power toggle command. I can’t seem to find an equivalent toggle command for the json API. Am I missing it somewhere? Or do I need to do a state lookup first, then a 2nd command to set the on/off state to be opposite of the current value?