> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.kodelabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WiFi Occupancy (IMF)

> Connect WiFi Occupancy (IMF) to KODE OS for occupancy data

> Connect WiFi Occupancy (IMF) to KODE OS for occupancy data integration

## Overview

Use this integration to connect Wi‑Fi occupancy (IMF) to KODE OS. You can discover the scoped network assets the API exposes, then pull historical connected-device counts across Staffnet and Guest networks to estimate staff versus visitor presence.

| Property            | Value      |
| ------------------- | ---------- |
| **System Type**     | Occupancy  |
| **Communication**   | TCP/IP     |
| **Collection**      | Pull       |
| **Collection Mode** | HISTORICAL |

## Supported Capabilities

* Discover Devices & Points
* Collect Sensor Data

## Prerequisites

* Network access to the WiFi Occupancy (IMF) controller or device
* The IP address and port of the on-site system
* Login credentials for the WiFi Occupancy (IMF) system
* KODE OS environment with access to Data Sources

## Configure Connector in KODE OS

1. Navigate to **Data Sources** in your building
2. Click **API Catalog** and search for **WiFi Occupancy (IMF)**
3. Click **+ Add Datasource**
4. Fill in the fields below and complete the three-page setup flow

| Field               | Required | Type | Description                                              |
| ------------------- | -------- | ---- | -------------------------------------------------------- |
| **IP Address**      | Yes      | text | The IP address of the on-site controller or device       |
| **Port**            | Yes      | text | The port number for connecting to the system             |
| **Username**        | Yes      | text | The username for authenticating with the external system |
| **Read Path**       | Yes      | text | The path for reading data from the external system       |
| **API Building ID** | Yes      | text | The building or source identifier in the external system |

## Discover Devices and Points

After configuring the connector, click **Discover** on the connector detail page. KODE OS will query the WiFi Occupancy (IMF) system and return a list of available devices and their data points.

Review the discovered items and select the devices you want to register in KODE OS.

For more details on the discovery process, see the [Discovery guide](/products/integrations/capabilities/discovery).

## What Data You Get

### Point History

Time-series sensor readings such as temperature, humidity, CO2, occupancy counts, energy consumption, light levels, and other measurable values from physical sensors

### Polling Schedule

* **Point History**

For more details on collection modes, see the [Data Collection guide](/products/integrations/capabilities/data-collection).

## Use Cases

Once connected, this integration enables you to:

* Track real-time space utilization rates across floors and zones
* Optimize HVAC and lighting schedules based on actual occupancy patterns
* Generate utilization reports to inform space planning and real estate decisions

## Troubleshooting

<AccordionGroup>
  <Accordion title="Cannot connect to controller">
    Verify the IP address and port are correct. Ensure the WiFi Occupancy (IMF) controller is powered on and connected to the network. Check that firewalls allow inbound connections on the configured port from the KODE OS server.
  </Accordion>

  <Accordion title="Discovery returns no devices">
    Verify the connector credentials have sufficient permissions in the WiFi Occupancy (IMF) system to list devices. Run a test connection first to confirm connectivity. Some systems require specific API scopes or roles for device enumeration.
  </Accordion>

  <Accordion title="Data collection stops or gaps appear">
    Check the connector status on the Data Sources page. If the status shows an error, review the error logs on the connector detail page. Common causes include expired credentials, network changes, or rate limiting by the WiFi Occupancy (IMF) API.
  </Accordion>
</AccordionGroup>
