Patent ID: 8108055

Claim:
A method of controlling an electrical device, comprising processing at least one image of at least one moving entity for determining if said at least one moving entity is at least one of entering and exiting a monitored area, and for determining if said at least one moving entity comprises at least one triggering shape; if said at least one moving entity is determined to be at least one of entering and exiting said monitored area, and said at least one moving entity comprises said at least one triggering shape, then triggering control of the electrical device and triggering a counter for counting triggering shapes present in said monitored area, wherein said processing said at least one image for determining if said at least one moving entity comprises at least one triggering shape comprises comparing said at least one image to at least one record of triggering shapes, and wherein said at least one record of triggering shapes further comprises an indication of a state to which the at least one electrical device is controlled responsive to said triggering control of the electrical device; and receiving an indication of a preference of a behaviour of the electrical device during future control of the electrical device and saving said indication of a preference in association with said triggering shape.