Can I disable a hardware device with a script?

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
wetwired
Member
Posts: 85
Joined: Thu Jun 19, 2003 7:33 am

Can I disable a hardware device with a script?

Post by wetwired »

I have a USB-UIRT that controls my TV in the living room, for some reason Housebot sometimes sends the "on" ir signal in the middle of the night. This action doesn´t show up in any logs so I haven´t figured out why this happens.
Anyway, this makes me wonder if there is any way to disable a hardware device via a script or a task. This would make it impossible, I hope, to send out unwanted signals during certain periods of the day.
Or, even better, does anyone know why the USB-UIRT sometimes sends ir signals on its own volition?
Richard Naninck
HouseBot Guru Extraordinaire
Posts: 1121
Joined: Tue Sep 28, 2004 7:49 am
Location: The Netherlands

Re: Can I disable a hardware device with a script?

Post by Richard Naninck »

I don't think you can disable a hardware device from script or task since it doesn't have properties that can be addressed.
Any other interruption (hardware and not done through HouseBot) would probably have to result in a HB restart to get the UIRT going again.
I just disabled the UIRT in HouseBot and targeted it with some IR remote and the LED is still flashing upon receiving codes so the UIRT is still powered even when it is disabled in HouseBot. This could mean that it is still cabable of sending your ON code.
I see the LED of the UIRT flashing randomly mostly with large time intervals while nothing is sending IR. I never figured out what was happening. It could be that the UIRT receives something (IR from some lightbulb or so) or maybe it is sending something. Now I can't test that anymore since I have a 433MHz FM IR repeater in my setup and that repeater catches all of my wireless house phones as well as car keys etc. Basically everything transmitting on 433MHz is received by the IR repeater and than translated into some IR code. Maybe you have a similar setup which could explain your hickup.

Some questions though:

Is the TV switched on always at the same time when it happens? (Maybe the TV has somekind of ON timer) :D
Is it gone when the UIRT is not plugged in?
Do you run tasks that relate to sending the TV ON IR code which are conditional to something else like sunset or sunrise?

A friend of mine had his lights switch of in the middle of the night for an unexplained reason and it turned out to be a sunrise related task where his lat/long was not set to support the correct sunrise time. This is for sure not your case, but you never know how deep such a problem can be..
Post Reply