CROSS REFERENCE TO RELATED APPLICATIONS

This application is a national stage application under 35 U.S.C. 371 and claims the benefit of PCT Application No. PCT/EP2019/079285 having an international filing date of Oct. 25, 2019, which designated the United States, which PCT application claimed the benefit of Sweden Patent Application No. 1851362-2 filed Oct. 31, 2018, the disclosure of each of which are incorporated herein by reference.

TECHNICAL FIELD

The invention relates to a barrier assembly, a method, a computer program and a computer program product for determining an extent of opening of an openable barrier based on a magnetic sensor.

BACKGROUND

It is often useful to determine the open/closed state of openable barriers such as doors and windows. Such information can e.g. be used for alarm systems, climate control, etc.

It would be of particular use if the extent to which the openable barrier is open. This not only allows the determination of open or closed state but can also be used for determining ventilation, or other climate control.

SUMMARY

It is an object to provide an improved way in which the state of an openable barrier can be determined.

According to a first aspect, it is provided a barrier assembly for determining an extent of opening of an openable barrier. The barrier assembly comprises the openable barrier and barrier frame around the openable barrier; a magnet, a magnetic sensor and a status monitoring device. One of the magnet and the magnetic sensor is provided in the barrier and the other of the magnet and the magnetic sensor is provided in the barrier frame; and the status monitoring device is configured to determine an extent of opening of the openable barrier based on a direction of a magnetic field detected by the magnetic sensor.

The extent of opening of the barrier may be determined by comparing a direction of a magnetic field determined by the magnetic sensor, with a known orientation of the magnet.

The comparing of direction of magnetic field with the known orientation of the magnet may result in one of a plurality values defining an extent of opening of the openable barrier, wherein the plurality of values comprise respective representations of completely open, completely closed and a plurality of different extents of opening between completely open and completely closed.

The status monitoring device may form part of the magnetic sensor.

The barrier assembly may be a window assembly.

The barrier assembly may be a door assembly.

The barrier assembly may further comprise a lock state sensor being configured to detect when the openable barrier is in a locked state.

According to a second aspect, it is provided a method for determining an extent of opening of an openable barrier of a barrier assembly comprising the openable barrier and a barrier frame. The method is performed in a status monitor device and comprising the step of: determining an extent of opening of the openable barrier based on a direction of a magnetic field determined by a magnetic sensor, wherein one of a magnet and the magnetic sensor is provided in the barrier and the other of the magnet and the magnetic sensor is provided in the barrier frame.

The extent of opening of the barrier may be determined by comparing a direction of a magnetic field, detected by the magnetic sensor, with a known orientation of the magnet.

The comparing of direction of magnetic field with the known orientation of the magnet may result in one of a plurality values defining an extent of opening of the openable barrier, wherein the plurality of values comprise respective representations of completely open, completely closed and a plurality of different extents of opening between completely open and completely closed.

According to a third aspect, it is provided a computer program for determining an extent of opening of an openable barrier of a barrier assembly comprising the openable barrier and a barrier frame. The computer program comprises computer program code which, when run on a status monitor device causes the status monitor device to: determine an extent of opening of the openable barrier using a magnetic sensor, wherein one of a magnet and the magnetic sensor is provided in the barrier and the other of the magnet and the magnetic sensor is provided in the barrier frame.

According to a fourth aspect, it is provided a computer program product comprising a computer program according to the third aspect and a computer readable means on which the computer program is stored.

Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to “a/an/the element, apparatus, component, means, step, etc.” are to be interpreted openly as referring to at least one instance of the element, apparatus, component, means, step, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.

