Documentation
Version 2022.1
What's new in TapHome 2022.1: TapHome Scripting Language, New Device Types, Major Modbus Update, Other Improvements.
TapHome Scripting Language Improvements
Multi-line scripting language with syntax highlighting was introduced for smart rules and Modbus configuration.

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

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.

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.

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