Home Assistant ZWA-2 | Official Z-Wave Controller | NOW AVAILABLE!

Welcome to Slim Huisje Learn more

Zigbee PIR Motion Sensor – ZHA & Zigbee2MQTT compatible

CompactZigbee 3.0 sensorthatmovementand optionallight intensity(lux) measurement. Detection angle of 135°, range up to 5 meters, adjustable PIR cooldown from 7 seconds. Perfectly compatible withHome Assistant (ZHA and Zigbee2MQTT).

Regular price €9,95


Version

Pickup available at Dynamodz

Usually ready in 2-4 days

Shipping information

Orders placed on weekdays before 4:00 PM and in stock will be shipped the same day . In most cases, your order will be delivered the next day. More details can be found in our shipping policy .

Description

The DIYANI ZG-204 series combines ultra-compact dimensions (Ø 33 x 26 mm) with professional motion detection via Zigbee 3.0. This series is available in two versions: the ZG-204ZL with a built-in lux sensor for advanced lighting automation, and the ZG-204Z as a standalone PIR motion sensor without a light sensor. With its wide 135° detection angle and 5-meter range, this sensor is ideal for smart lighting automation, energy savings, and presence detection in living rooms, bedrooms, hallways, toilets, or offices.

Product variant differences

ZG-204ZL (with lux sensor) : This 2-in-1 sensor combines PIR motion detection with a built-in light meter that measures ambient light from 0 to 3000 lux (depending on firmware). Thanks to the light sensor, you can create automations that only switch on lights when it's actually too dark, which can reduce your energy bill by 60-80% compared to sensors without lux detection. Perfect for applications where daylight control is essential.

ZG-204Z (without lux sensor) : This standalone motion sensor focuses solely on PIR detection without light measurement. Ideal for situations where only motion detection is required, such as security applications, simple on/off switching, or areas where ambient light is not a factor (e.g., windowless restrooms, closets, utility rooms). This version is often more affordable.

What does the DIYANI ZG-204 do and what is it?

The ZG-204 series uses a PIR motion sensor (a passive infrared sensor that detects heat radiation) to detect human and animal movement. The device communicates wirelessly with your smart home hub via Zigbee 3.0 (a protocol for wireless smart home devices) and reports real-time motion detection, battery status, and, in the case of the ZG-204ZL, light intensity. The sensor has an adjustable cooldown period (also called the keep time) that determines how long the motion status remains active after detection. The fastest cooldown is set to 7 seconds but can be adjusted to 30, 60, or 120 seconds via Zigbee2MQTT.

Connectivity and protocols

  • Protocol: Zigbee 3.0 (requires Zigbee hub such as Home Assistant with ZHA/Zigbee2MQTT)
  • Communication: Wireless, end device (does not amplify the Zigbee mesh network, receiver only)
  • Detection range: 5 meters (depending on mounting height and obstacles)
  • Detection angle: 135° horizontal (wide coverage for rooms up to approx. 20 m²)
  • Zigbee distance: Up to 100 meters of open space between sensor and hub (in practice 15-30 meters indoors, depending on walls and Zigbee routers)

Platform compatibility

  • Home Assistant: Excellent support via ZHA (Zigbee Home Automation, native integration in HA) and Zigbee2MQTT; reports entities for motion (occupancy), battery, sensitivity (sensitivity), cool-down time (keep_time), and in the case of the ZG-204ZL also illumination and lux measurement interval (illuminance_interval).
  • Tuya Smart/Smart Life: Compatible via Tuya Zigbee gateway (cloud-based, less local control)
  • HomeKit: Indirectly via Homebridge with Zigbee2MQTT bridge (exposes motion, battery, and in the case of the ZG-204ZL, lux as HomeKit accessories)
  • Voice assistants: Alexa and Google Assistant via supported hubs (e.g., "Alexa announcement: Motion detected in the hallway")
  • Matter: No native Matter support; only via Zigbee 3.0

Nutrition and energy

  • Battery: CR2450 (3V button cell battery, included)
  • Battery life: Approximately 1 year with normal use (depending on detection frequency, reporting interval and ambient temperature)
  • Standby consumption: ≤12 µA (very low power consumption for long battery life)
  • Battery Status: Battery percentage is reported in ZHA and Zigbee2MQTT

Functional properties and sensor properties

  • PIR sensor type: Passive infrared motion detector (detects heat radiation from moving people/animals)
  • Detection angle: 135° horizontal (ideal for corner placement or central mounting on ceiling/wall)
  • Detection distance: 5 meters (depending on mounting height; optimal at 2-2.5 meters height)
  • Cooldown (keep-time): Adjustable to 7, 30, 60 or 120 seconds via Zigbee2MQTT (determines how long motion status remains active after last detection; often 7 sec by default)
  • Sensitivity: Adjustable to low, medium or high via Zigbee2MQTT (higher sensitivity detects smaller movements at a greater distance)
  • PIR Response Time: Very fast (detection occurs instantly after motion; cooldown of at least 7 seconds before motion can be reported again)

Only with ZG-204ZL:

  • Lux sensor (light meter): Measures ambient light from 0 to 1000 lux (older firmware) or 0 to 3000 lux (newer firmware versions)
  • Lux measurement interval: Adjustable from 1 to 720 minutes via Zigbee2MQTT (how often the sensor measures light intensity; standard often 10-30 minutes)

Automation and smart home integration

For both variants:

  • Smart Lighting: Automatically switch on lights when motion is detected
  • Energy Saving: Automatically turn off light after cooldown period (7-120 sec) when no more motion is detected
  • Presence simulation: Build scenes for vacation mode where lights randomly turn on when (simulated) motion is detected
  • Zones and rooms: Combine multiple ZG-204 sensors for multi-zone detection (e.g. hallway, living room, bedroom) with different settings per room
  • Alerts: Push notifications for motion when no one is supposed to be home (security automation)

Additional functionality ZG-204ZL:

  • Intelligent lighting control: Switch lights on only when motion is detected and when ambient light is below the threshold (e.g., <50 lux); prevents lights from switching on unnecessarily during the day
  • Daylight control: Use lux values ​​to automatically open/close shutters or adjust dimmable lighting to natural light
  • Graphs and logging: Visualize historical lux data in Home Assistant (see sunrise time, maximum light intensity during the day)
  • Energy savings up to 80%: Compared to standard motion sensors through intelligent light detection

Software and updates

  • Configuration: Full configuration of sensitivity, dwell time and (on ZG-204ZL) illumination interval via Zigbee2MQTT (settings only adjustable when sensor is active, i.e. during motion detection)
  • Calibration ZG-204ZL: Lux calibration possible via Zigbee2MQTT (percentage offset for more accurate light measurements)
  • ZHA support: Works out-of-the-box with Home Assistant ZHA (motion, battery, and with the ZG-204ZL, lux are also immediately available; the lux sensor may need to be manually enabled in the MQTT integration)
  • Zigbee2MQTT database: Officially supported as ZG-204ZL and ZG-204Z (model TS0601, various hardware variants)
  • OTA updates: Over-the-air firmware updates possible via Zigbee2MQTT (subject to availability of updates from manufacturer)
  • Low-power configuration: Keep-time and (on ZG-204ZL) lux interval settings are only adjustable during motion detection (sensor is in deep sleep when inactive)

Physical and installation

  • Dimensions: Ø 33 mm x 26 mm (one of the smallest Zigbee motion sensors on the market)
  • Weight: Approximately 15 grams (including battery)
  • Material: ABS plastic housing (white, modern design)
  • Mounting: 3M adhesive tape included (stick to wall, ceiling or furniture); optional magnetic holders available
  • Pairing Button: Hidden pinhole button on the side (press with paperclip or included mesh needle for 6 seconds for pairing mode; LED flashes during pairing)
  • Battery compartment: Open with the supplied opener or small screwdriver (twist-lock mechanism)
  • Optimal mounting height: 2 to 2.5 meters for best detection range and corner coverage

Environment and sustainability

  • Operating temperature: -10 °C to +55 °C (suitable for unheated rooms and summer heat)
  • Humidity (operating): 0%–99% RH (no condensation; suitable for bathrooms and basements provided they are not directly exposed to water)
  • IP rating: Not available (sensor is not waterproof, for indoor use only; not suitable for outdoor use)
  • Durability: Battery life of approximately 1 year reduces maintenance frequency; compact ABS plastic housing is impact resistant

Performance and latency

  • Detection speed: Motion detected within 1-2 seconds and reported instantly to hub (Zigbee latency <1 second)
  • Cooldown period: Minimum 7 seconds adjustable (very fast for frequently used areas such as toilets and corridors); standard often 60 seconds
  • Lux reporting (ZG-204ZL): Adjustable measurement interval from 1 to 720 minutes (recommended for energy saving 10-30 minutes)
  • Reliability: Stable Zigbee connection; sensor stays consistently connected within mesh network (tested in ZHA and Zigbee2MQTT)
  • False positives: Minimal with correct sensitivity setting (medium recommended for most rooms; high for large open spaces)

Safety and certification

  • Zigbee certification: Zigbee 3.0 certified
  • Encryption: AES-128 encryption via Zigbee 3.0 security layer (secure communication between sensor and hub)
  • Privacy: Fully local processing possible via ZHA/Zigbee2MQTT (no cloud required, data remains within your own network)

Package contents

  • 1x DIYANI ZG-204Z or ZG-204ZL Zigbee Motion Sensor (depending on the selected variant)
  • 1x CR2450 battery (pre-installed)
  • 1x 3M self-adhesive mounting tape
  • 1x Back cover opener (small plastic tool)
  • 1x Mesh needle/pairing pin (paperclip-like tool for pairing button)
  • Manual in English (installation is intuitive)

Use cases and applications

For both variants:

  • Security: Motion detection when away triggers notifications or alarms
  • Toilet light: Light on upon entry, off after 30-60 sec without movement (energy savings up to 80% compared to manual operation)
  • Cabinet/storage lighting: Automatic lighting when the door is opened
  • Smart waking: Gradually increase light when motion is first detected in the morning (soft wake-up function)

Specific for ZG-204ZL:

  • Hallway/stairwell lighting: Automatic light on when motion is detected, only when dark (<50 lux); 10-30 sec cooldown for frequent passages
  • Bedroom night light: Dimmable night light activates when motion is detected at night (only when <5 lux)
  • Kitchen/utility room: Worktop lighting automatically switches on while cooking/working, switches off after 60 seconds of inactivity, but only when there is insufficient natural light.
  • Energy monitoring: Log lux values ​​over time to optimize energy-saving automations (e.g. closing shutters at >1000 lux to limit cooling)

Plus points

For both variants:

  • Ultra-compact size (Ø 33 mm) – one of the smallest Zigbee motion sensors
  • Perfect Home Assistant integration via ZHA and Zigbee2MQTT without additional configuration
  • Adjustable cooldown from 7 seconds (fastest in its class for frequently used rooms)
  • Wide detection angle (135°) and 5-meter range for good room coverage
  • Long battery life (approximately 1 year) with real-time battery status reporting
  • Full configuration via Zigbee2MQTT (sensitivity, hold-time, calibration)

Additional benefits ZG-204ZL:

  • 2-in-1 functionality (motion + lux sensor) for intelligent lighting automation
  • Lux measurements up to 3000 lux (newer firmware) for precise daylight control
  • Energy savings of up to 80% by only switching on when there is insufficient natural light

Negative points

For both variants:

  • No Matter support (Zigbee 3.0 only, requires Zigbee hub)
  • Settings only adjustable during motion detection (low-power design; sensor must be active for configuration via Zigbee2MQTT)
  • No IP rating (not waterproof, dry indoor areas only)

Specific for ZG-204ZL:

  • Lux values ​​may be too high (known issue with some firmware versions; calibration required via Zigbee2MQTT)

Frequently Asked Questions (FAQ)

What is the difference between the ZG-204Z and ZG-204ZL?

The ZG-204ZL has a built-in lux sensor that measures ambient light from 0 to 3000 lux, allowing you to create automations that activate only when there's insufficient natural light. The ZG-204Z doesn't have a light sensor and focuses purely on motion detection. Choose the ZG-204ZL for intelligent lighting control with daylight control, or the ZG-204Z for simple motion detection or situations where light measurement isn't necessary.

Does the DIYANI ZG-204 work with Home Assistant?

Yes, both variants work perfectly with Home Assistant via ZHA and Zigbee2MQTT. Upon pairing, motion (occupancy) and battery parameters automatically appear. The ZG-204ZL also includes illumination. In ZHA, the lux sensor may need to be manually enabled via the MQTT integration settings. Via Zigbee2MQTT, all functions are immediately available, including configuration of sensitivity, cooldown, and, in the case of the ZG-204ZL, the lux measurement interval.

What is the cooldown time and can I adjust it?

The cooldown time (keep time) determines how long the motion status remains active after the last detection. Both variants support adjustable cooldown periods of 7, 30, 60, or 120 seconds via Zigbee 2MQTT. 7-30 seconds is recommended for restrooms and hallways, and 60-120 seconds for living rooms. Note: Settings can only be adjusted while the sensor is detecting motion (low-power design).

How accurate is the ZG-204ZL's lux sensor?

The lux sensor measures ambient light from 0 to 3000 lux (newer firmware) or 0 to 1000 lux (older firmware). There is a known issue where values ​​are sometimes reported too high. This can be resolved via lux calibration in Zigbee2MQTT (setting the percentage offset). Practical experience shows that the sensor distinguishes well between darkness (<50 lux), normal daylight (200-500 lux), and bright sunlight (>1000 lux), which is sufficient for lighting automation.

Does this sensor support Matter?

No, the DIYANI ZG-204 series does not natively support Matter and only works with Zigbee 3.0. For Matter functionality, you need a Matter bridge that can translate Zigbee devices, for example, via Home Assistant with Matter server integration or Homey Pro with Matter support.

What is the detection range and best mounting position?

The sensor has a detection angle of 135° and a range of 5 meters (depending on the mounting height). For optimal performance, mount the sensor at a height of 2 to 2.5 meters, preferably in a corner of the room or centrally on the ceiling. Mounting it higher increases the horizontal range, but reduces the reliability of small movements. For hallways and restrooms, wall mounting at eye level (1.5-2 meters) works well.

How long does the battery last?

The included CR2450 battery lasts approximately 1 year with normal use (standby consumption ≤12 µA). Actual lifespan depends on the detection frequency (how often motion is detected), cooldown setting (for the ZG-204ZL, also the lux measurement interval), and ambient temperature. Frequent motion detection (e.g., in busy hallways) can impact battery life. Home Assistant reports the battery status (can take up to 24 hours after initial pairing), so you can replace it in time.

Can I use the sensor for smart lighting automation?

Absolutely. Both variants are suitable for motion-based lighting automation. However, the ZG-204ZL offers much more advanced capabilities thanks to its 2-in-1 functionality (motion + lux). Build automations into Home Assistant that only switch on lights when motion is detected and when ambient light is below a certain threshold (e.g., <50 lux). This prevents lights from switching on during the day, which can reduce your energy consumption by 60-80% compared to simple motion sensors without lux detection. Combine multiple sensors for multi-zone control with different light settings per room.

Which variant should I choose?

Choose the ZG-204ZL if you want intelligent lighting control with daylight management, energy savings through lux-based automation, or ambient light data analysis. Choose the ZG-204Z if you only need motion detection for security applications, simple on/off switching, or for areas without natural light (windowless restrooms, closets, utility rooms). The ZG-204Z is usually more affordable.

slimhuisje.nl – your specialist in smart motion detection! We're happy to advise you on which version best suits your automation needs.

EAN:

Payment convenience: pay the way you want

  • American Express
  • Bancontact
  • BLIK
  • Google Pay
  • iDEAL
  • Klarna
  • Maestro
  • Mastercard
  • MobilePay
  • Shop Pay
  • Union Pay
  • USDC
  • Visa