You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to follow the protocol docs for sending a command, but am having difficulty figuring out where to add the "{"type":"IRCommand","deviceId":"13154865","command":"PowerOff"}:status=press".
Any help would be appreciated.
Right now I have:
I´m trying to accomplish the same, but i also have trouble to get it to work :-(
iq_cmd = self.Iq()
iq_cmd['type'] = 'get'
action_cmd = ET.Element('oa')
action_cmd.attrib['xmlns'] = 'connect.logitech.com'
action_cmd.attrib['mime'] = ('vnd.logitech.harmony/vnd.logitech.harmony.engine?holdAction')
cmd = '{"type"::"IRCommand","deviceId"::"21569835","command"::"VolumeUp"}:status=press'
action_cmd.text = cmd
iq_cmd.set_payload(action_cmd)
pprint.pprint (iq_cmd)
I have tried to follow the protocol docs for sending a command, but am having difficulty figuring out where to add the "{"type":"IRCommand","deviceId":"13154865","command":"PowerOff"}:status=press".
Any help would be appreciated.
Right now I have:
The text was updated successfully, but these errors were encountered: