XMPP¶
Request¶
A command request look in general like:
<iq id="[id]" to="[toId]@[toType].ecorobot.net/atom" from="[user]@ecouser.net/[toRes]" type="set">
<query xmlns="com:ctl">
<ctl td="[cmdName]" sampleAttribute="[value]" id="[randomid]"/>
</query>
</iq>
Request description¶
id
: idtoId
: did of the vacuumtoType
: class (model) of vacuum (e.g.115
)user
: user id given by Ecovacs APItoRes
: resource of the vacuumtype
: alwaysset
- payload (see also data type XML):
cmdName
: command namerandomid
: somewhat random string with 8 chars
Response¶
In general a response looks like:
<iq from="[toId]@[toType].ecorobot.net/atom" id="[id]" to="[user]@ecouser.net/[resource]" type="set" xmlns:stream="http://etherx.jabber.org/streams">
<query xmlns="com:ctl">
<ctl id="[randomid]" ret="ok">
<cmdName sampleAttribute="[value]"/>
</ctl>
</query>
</iq>
Response description¶
toId
: did of the vacuumtoType
: class (model) of vacuum (e.g.115
)user
: user id given by Ecovacs APItoRes
: resource of the vacuumtype
: alwaysset
id
: idret
: statusrandomid
: random id that was sent (see Request description)- payload (see also data type XML):
cmdName
: command that was sentsampleAttribute
: a sample attribute (e.g.act
)