> For the complete documentation index, see [llms.txt](https://docs.efento.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.efento.io/nb-iot-loggers/configuration/sensor-specific-settings/binary-open-close-water-leak.md).

# Binary (open / close, water leak)

This section describes the configuration parameters available for Efento binary loggers, including open/close, water leakage, and other two-state inputs.

Binary loggers report one of two states depending on the condition of the monitored input. The available settings allow you to define how the input state is interpreted and how short signal changes are filtered before being registered by the logger.

## **Switch logic (NO/NC logic)**

Binary loggers can operate using **Normally Open (NO)** or **Normally Closed (NC)** logic. The selected logic determines which electrical state is interpreted as the normal condition and which state represents an alarm or event.

* **Normally Open (NO)** – the contact remains open during normal operation and closes when the monitored condition occurs. For example, a water leakage logger may remain open when no water is detected and close when a leak is detected.
* **Normally Closed (NC)** – the contact remains closed during normal operation and opens when the monitored condition occurs. For example, an open/close logger may remain closed while a door is closed and open when the door is opened.

The **Reversed logic** setting allows the logger to invert the default interpretation of the input state, making it possible to use the same logger with both NO and NC contacts.

## **Configurable parameters**

| Parameter                                                      | Description                                                                                                                                                                                                                                                                                                                                                                                              | Configuration Options                                                                                                                                              |
| -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Reversed logic** (Inverted logic)                            | Inverts the state interpretation reported by the logger. By default, an open circuit represents state 0 (e.g. Open / OK) and a closed circuit represents state 1 (e.g. Closed / Alarm). Enabling reversed logic flips this interpretation so that a closed contact is treated as 0 and an open contact as 1. Useful when integrating with Normally Closed (NC) vs. Normally Open (NO) sensors or relays. | <p><strong>Enabled (ON) / Disabled (OFF)</strong><br><em>Default: Disabled (Standard logic)</em></p>                                                               |
| <p><strong>Min. stable time</strong></p><p>(Debounce Time)</p> | Defines the minimum duration (in milliseconds) for which a new contact state must remain stable before the logger registers it as a valid state change. This hardware/software debouncing mechanism filters out contact bounce (mechanical vibration of relay springs or switch contacts) and electrical noise on long cable runs. State changes shorter than this threshold are ignored.                | <p><strong>0 to 65,535 ms</strong><br><em>(Typical recommended value: 50–200 ms for mechanical switches; 0 ms for clean electronic/semiconductor outputs)</em></p> |

## **Configuration using the Efento mobile application**

All parameters described above can be configured using the Efento mobile application in the **Nearby Devices** section.

Connect to the logger, tap the gear icon, open **Channel settings**, and select **Settings** for the required channel.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.efento.io/nb-iot-loggers/configuration/sensor-specific-settings/binary-open-close-water-leak.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
