Skip to content

feat(tuya): enhance window sensor capabilities with new states and al…#10573

Merged
Koenkk merged 2 commits intoKoenkk:masterfrom
senorosoftware:master
Oct 30, 2025
Merged

feat(tuya): enhance window sensor capabilities with new states and al…#10573
Koenkk merged 2 commits intoKoenkk:masterfrom
senorosoftware:master

Conversation

@ChristianGr1974
Copy link
Copy Markdown
Contributor

This PR provides official manufacturer support for the Tuya window sensor (TS0601_sensor_window), extending the initial community implementation with complete feature support based on official device specifications.

Changes Made
Core Sensor Features:

  • Full 3-state opening detection (open/closed/tilted) via DP101
  • Alarm state monitoring (DP16)
  • Setup mode status (DP107)

Alarm System:

  • Alarm siren control (DP103)
  • Configurable siren duration: 5-180 seconds (DP109)
  • Alarm state reporting

Vibration Detection:

  • Vibration value reporting (DP102)
  • Adjustable sensitivity limit: 0-100 (DP106)
  • Vibration-triggered siren (DP108)
  • Configurable vibration siren duration: 5-180 seconds (DP110)

Additional Features:

  • Close signal notification toggle (DP104)
  • Transmission power control: 11-19 (DP105) - higher values increase range but consume more battery
  • Magnetic sensor status (DP111)
  • Battery reporting via DP2 (fallback) and DP102 for vibration

Technical Details

All data points are mapped according to official device specifications using Tuya value converters with appropriate constraints. The implementation maintains backward compatibility while exposing the complete feature set.

Comment thread src/devices/tuya.ts Outdated
@Koenkk Koenkk merged commit 1347053 into Koenkk:master Oct 30, 2025
3 checks passed
@Koenkk
Copy link
Copy Markdown
Owner

Koenkk commented Oct 30, 2025

Thanks!

jacky202509 pushed a commit to jacky202509/zigbee-herdsman-converters that referenced this pull request Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants