What Michael is saying is that most devices have a power toggle, like you saying... and discrete codes for power off and power on.  I am not sure how you would go about finding the discreet codes... but they do likely exist.<div class="gmail_extra">

<br><br><div class="gmail_quote">On Fri, Nov 2, 2012 at 10:33 AM, Josu Lazkano <span dir="ltr">&lt;<a href="mailto:josu.lazkano@gmail.com" target="_blank">josu.lazkano@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="gmail_extra"><div class="gmail_quote"><div class="im">2012/11/2 Michael <span dir="ltr">&lt;<a href="mailto:mythtv@blandford.net" target="_blank">mythtv@blandford.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



  
    
  
  <div text="#000000" bgcolor="#FFFFFF"><div><div>
    <div><br></div></div></div>
    You would just send the IR code using irsend.  <br><span><font color="#888888">
    <br>
    Michael<br></font></span></div></blockquote><div><br></div><div><br></div></div><div>The irsend key is a POWER button, if I send one, it change between ON/OFF, so I can not send it without know the previous state.</div>

<div>
<br></div><div>Kind regards.</div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Josu Lazkano<br>
</font></span></div>
<br>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<br></blockquote></div><br></div>