Skip to content

Add Reolink PIR interval number entity#155758

Merged
abmantis merged 2 commits into
home-assistant:devfrom
starkillerOG:reolink_pir
Nov 3, 2025
Merged

Add Reolink PIR interval number entity#155758
abmantis merged 2 commits into
home-assistant:devfrom
starkillerOG:reolink_pir

Conversation

@starkillerOG
Copy link
Copy Markdown
Contributor

@starkillerOG starkillerOG commented Nov 3, 2025

Breaking change

Proposed change

Add Reolink PIR interval number entity:
This sets the dead time for the PIR sensor, if a detection happens at t=0 sec, only after t=PIR interval seconds can the PIR sensor be triggered again.

Higher values will conserve battery and prevent multiple triggers for the same event sometimes related to for instance floodlights coming on during the initial event.

Lower values means less events are missed.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.

To help with the load of incoming pull requests:

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new number entity to the Reolink integration for controlling the PIR (Passive Infrared) interval setting. The entity allows users to configure the time interval between PIR motion detections.

  • Adds a new pir_interval number entity with duration device class and seconds unit
  • The entity is disabled by default and ranges from 5 to 120 seconds
  • Includes appropriate translations and icon configuration

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
homeassistant/components/reolink/number.py Adds new pir_interval entity description with configuration for duration-based number entity
homeassistant/components/reolink/strings.json Adds translation key for the PIR interval entity name
homeassistant/components/reolink/icons.json Adds icon configuration for the PIR interval entity

@abmantis abmantis merged commit e308e61 into home-assistant:dev Nov 3, 2025
41 of 42 checks passed
@starkillerOG starkillerOG deleted the reolink_pir branch November 3, 2025 21:55
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants