I forgot to post this command before, but it's part of the same 'package'.
Ask for the status (i.e. 'on' / 'off') of your switches, once you've generated a payload XML for them. (See above)
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.4-->
<command id="177" name="Get status of {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Scrape</cmdType>
<params>
<param>http://{M:Domoticz.serverIP:Port}/json.htm?type=devices&rid={1}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegExSingle</cmdType>
<params>
<param> result.*?"Status"\s:\s"(.*?)",</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>OSD.ShowText</cmdType>
<params>
<param>{PF.1} is {Match.1}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<params>
<param>{PF.1} is {Match.1}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Get status of</phrase>
<payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\domoticzSwitches.xml</payloadFromXML>
</command>
Nodo has previously posted a link to the Domoticz documentation, but here is the page I used to figure out the correct Scrape URLs to use for these commands:
https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's