---
title: "Version 2022.1"
description: "What's new in TapHome 2022.1: TapHome Scripting Language, New Device Types, Major Modbus Update, Other Improvements."
url: "https://taphome.com/en/docs/release-notes/2022-1/"
language: en
lastmod: 2026-11-06
generator: hugo
ai:
  topics: ["release-notes","scripting-language","modbus"]
  questions: ["What's new in TapHome 2022.1?"]
---

# Version 2022.1

What's new in TapHome 2022.1: TapHome Scripting Language, New Device Types, Major Modbus Update, Other Improvements.

Last updated: 2026-11-06

TapHome 2022.1 brings a multi-line scripting language with syntax highlighting for smart rules and Modbus configuration, new device types for measuring gas, water, rainfall and electrical voltage and current, and a major Modbus update. The Modbus update adds a register information tool, slave ID scanning, XML templates and 50 ms poll intervals. Other changes include a macOS beta version, CSV export of the device configuration and export of access system logs.

## TapHome Scripting Language Improvements
Multi-line scripting language with syntax highlighting was introduced for smart rules and Modbus configuration.

![Scripting Language](https://taphome.com/documentation/assets/release-notes/2022.1-script-1.png)

**Features:**
- RETURN() function returns the final result. If not used, the result of the last line is used
- Block IF statements with ELSEIF/ELSE support
- User-defined local variables (VAR syntax)
- Binary number literals (0b101010 format)
- Comments using '#' character
- NaN (Not a Number) constant and ISNAN() function
- Improved error messages

![Script Editor](https://taphome.com/documentation/assets/release-notes/2022.1-script-2.png)

**New functions added:** Bit/byte operations (GETBIT, SETBIT, etc.), BCD conversion (FROMBCD, TOBCD), string conversion (TOSTRING), SLEEP() and HYSTERESIS()

**Debugging:** The "Last run" section now captures variable states at the start and upon script completion.

![Script Debugging](https://taphome.com/documentation/assets/release-notes/2022.1-script-3.png)

## New Device Types
Support for measuring devices:
- Gas consumption/demand
- Water consumption/demand
- Rainfall intensity and counter
- Water pressure and level
- Electrical voltage and current

## Major Modbus Update
Including register information tool, manual test requests, slave ID scanning, XML templates, hierarchical structure, service attributes/actions, 50ms poll intervals, and 32-bit ByteSwap data types.

![Modbus Features 1](https://taphome.com/documentation/assets/release-notes/2022.1-modbus-1.png)

![Modbus Features 2](https://taphome.com/documentation/assets/release-notes/2022.1-modbus-2.webp)

![Modbus Features 3](https://taphome.com/documentation/assets/release-notes/2022.1-modbus-3.png)

## Other Improvements
- **macOS Beta** version released (push notifications while running; no SIP/camera support)
- **Device configuration export** to CSV format for documentation
- **Access system logs** export with attendance tracking capability

**See also** — [Version 2021.3](https://taphome.com/en/docs/release-notes/2021-3/), [Version 2022.2](https://taphome.com/en/docs/release-notes/2022-2/).
