Door_Item patch

View: New views
1 Messages — Rating Filter:   Alert me  

Door_Item patch

by Jason Horne-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In setting up Light_Items and Door_Items using x10 security sensors, I noticed that one particular light wouldn't come on properly when I opened the door.  The reason was because the security sensor was transmitting "alertbattlowmin" instead of just "alertmin", and Door_Item didn't recognize that code.

I patched my version of Door_Item.pm such that any code beginning with "alert" is considered a "door opened" event, and any beginning with "normal" is considered a "door closed" event.  This seemed consistent with instructions at the top of RF_Item for cases where "you don't care about the full detail of the state".

This seems like a useful change, so I've attached a patch file for consideration.

Jason


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


door_item.patch (1K) Download Attachment