Skip to main content

Flexit BACnet

This library allows integration with Flexit Nordic series of air handling units via BACnet protocol.

Prerequisites

In order to use that library, you need to know the IP address and Device ID of your unit.

  1. Open Flexit Go app on your mobile.
  2. Use "Find product" button on tha main screen.
  3. Select your device and press "Connect".
  4. Enter installer code (default: 1000) and press "Login".
  5. Open "More" menu -> Installer -> Communication -> BACnet settings.
  6. Note down "IP address" and "Device ID".

You need to have Python version 3.7 or above.

Connecting to a device

import asyncio

# import FlexitBACnet
from flexit_bacnet import FlexitBACnet


async def main():
    # create a FlexitBACnet device instance with the IP address and Device ID
    device = FlexitBACnet('192.168.0.18', 2)

    await device.update()

    # check device name and s/n
    print('Device Name:', device.device_name)
    print('Serial Number:', device.serial_number)


if __name__ == "__main__":
    asyncio.run(main())

Interacting with the device

For list of available states and interactions, please study device.py.

For example, changing ventilation mode can be done as follows:

import asyncio

# import FlexitBACnet
from flexit_bacnet import (
    FlexitBACnet,
    VENTILATION_MODE_HIGH
)


async def main():
    # create a FlexitBACnet device instance with the IP address and Device ID
    device = FlexitBACnet('192.168.0.18', 2)

    await device.update()

    # check current ventilation mode
    print('ventilation mode (before):', device.ventilation_mode)

    # set ventilation mode to High
    await device.set_ventilation_mode(VENTILATION_MODE_HIGH)

    # check current ventilation mode again
    print('ventilation mode (after):', device.ventilation_mode)


if __name__ == "__main__":
    asyncio.run(main())

Which would result in the following output:

ventilation mode (before): 3
ventilation mode (after): 2

Examples

To execute examples without installing the package, set PYTHONPATH to local directory, e.g.:

PYTHONPATH=. python3 examples/current_mode.py 192.168.0.100

Where 192.168.0.100 should be replaced with your unit's IP address.

Finding device IP address

If you don't know the IP address of your unit, you can use the following script to find it:

PYTHONPATH=. python3 examples/discover.py

Release files for flexit-bacnet 2.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flexit-bacnet 2.2.3
File Size Uploaded
flexit_bacnet-2.2.3.tar.gz 13.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flexit-bacnet 2.2.3
File Interpreter ABI Platform
flexit_bacnet-2.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 27.5 kB

Release files / flexit_bacnet-2.2.3.tar.gz

Download URL flexit_bacnet-2.2.3.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ffb93f53d3bc42ca3767a0868cd76f7f93b71932e8a392966ea0505cdd224d9b
BLAKE2b-256 checksum
How to use checksums
2629e99f9584083ffab31db5131c46d9b5b1d8d59b561e3b2ea225cb92ccb0c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release files / flexit_bacnet-2.2.3-py3-none-any.whl

Download URL flexit_bacnet-2.2.3-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22bfd54ce4fc81a9ceeea3454bee8328e1d893575b0572c552f4b2d846161da9
BLAKE2b-256 checksum
How to use checksums
b2571342f7ded71ba4823469e158740410583075d510d4a3c051cd1892d19c91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

2.2.3 This release

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page