<div class="gmail_quote">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">> If you only have IR it will be tricky but you could try and write a<br>> script that checks the success of the HD-PVR and then tries to<br>
<br> I don't see how you could do that really.<br><br> With a USB cable (or firewire) there's some means to query the box to<br>make sure it's in the state you want it to be. There really isn't an option<br>
to do this with IR. The communications is only in one direction. You just<br>have to throw singals out there and hope they work.<br><br>> toggle the power. I recall someone on the list doing something like<br>> this. If you have some discrete outputs from the box that only<br>
> activate when the box is on that might be easier.<br></blockquote>
<div>As he said after your comment.... "if you have some discrete outputs from the box...".</div>
<div> </div>
<div>For example, one might be able to determine if the box is on by analyzing the video, or perhaps through some unrelated output that only has a signal when the box is on, such as polling a serial port.</div>
<div> </div>
<div>I have considered creating a USB device that you'd plug your device into like a kill-a-watt; but instead you would set an "on" threshold and you could poll the status of the device via the USB port. If the device is drawing more than the threshold you could assume it was on. Handy for things like this, and other home automation tasks. Couldn't be too expensive to develop?</div>
</div>