I seem to be a bit late to the party, but here is my implementation for it.
https://youtu.be/lD4yFAB3s40
What it does, is:
- Unlocking my phone if it's locked.
- Opening the WIWO app.
- Manually touching the toggle.
- Closing the app.
- Setting the display time-out to 15
- Wait for 15
- Set the display time-out back to 2
And here is the code (excluding the unlock part)
<TaskerData sr="" dvi="1" tv="4.8u1m">
<Task sr="task3">
<cdate>1452450027774</cdate>
<edate>1458814566803</edate>
<id>3</id>
<nme>Wiwo</nme>
<pri>100</pri>
<Kid sr="Kid">
<launchID>3</launchID>
<pkg>com.wiwo.for.tasker</pkg>
<vnme>1.0</vnme>
<vnum>2</vnum>
</Kid>
<Action sr="act0" ve="7">
<code>20</code>
<App sr="arg0">
<appClass>com.orvibo.irhost.LoadActivity</appClass>
<appPkg>com.orvibo.irhost</appPkg>
<label>WiWo</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="1"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">input tap 1270 370</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Action sr="act3" ve="7">
<code>25</code>
<Int sr="arg0" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>812</code>
<Int sr="arg0" val="15"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act5" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="15"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act6" ve="7">
<code>812</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
</Action>
<Img sr="icn" ve="2">
<cls>com.orvibo.irhost.LoadActivity</cls>
<pkg>com.orvibo.irhost</pkg>
</Img>
</Task>
PLEASE NOTE!: It does require root permissions.
am start
command. – Firelord♦ Sep 16 '15 at 2:47