Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add device : An infrared human presence sensor with long battery life, powered by two AAA batteries. #8919

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

yuanxin32323
Copy link
Contributor

No description provided.

@yuanxin32323 yuanxin32323 changed the title An infrared human presence sensor with long battery life, powered by two AAA batteries. Add device : An infrared human presence sensor with long battery life, powered by two AAA batteries. Mar 2, 2025
if (v == 0) {
return {
state: 'pir',
occupancy: true,
Copy link
Owner

Choose a reason for hiding this comment

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

How is this reset back to false? (or should it be called presence?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How is this reset back to false? (or should it be called presence?)如何将其重置回 false ?(或者应该称为 presence ?)

I'm really sorry. I wrote the parameter name incorrectly. It should all be "occupancy".


if (v == 0) {
return {
state: 'pir',
Copy link
Owner

Choose a reason for hiding this comment

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

What is the added value of state over presence?

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