Skip to content

Update reset code based on the new OS image. Update ambient light threshold in toggle.#118

Open
arrdalan wants to merge 1 commit into
mainfrom
update-reset-toggle
Open

Update reset code based on the new OS image. Update ambient light threshold in toggle.#118
arrdalan wants to merge 1 commit into
mainfrom
update-reset-toggle

Conversation

@arrdalan

Copy link
Copy Markdown
Collaborator

Updated and tested reset and toggle with the new OS.

Comment thread reset/src/main.rs
@arrdalan arrdalan force-pushed the update-reset-toggle branch from 7fa5ce4 to 5d1a48b Compare June 16, 2026 21:09
Comment thread toggle/src/main.rs
}

const LIGHT_THRESHOLD: u32 = 40;
const LIGHT_THRESHOLD: u32 = 20;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we should document how this threshold is derived, perhaps in a comment here.

On a side note for future work: what if this is a good number for our houses, but it doesn't work well for other users? How can we make this adapt to different conditions?

Comment thread reset/src/main.rs
.arg("--output=short-iso")
.arg("-u")
.arg("secluso.service")
.arg("secluso_camera_hub.service")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We have DEBUG_LOGS_FILENAME as a constant, what about secluso_camera_hub.service? It's used 3x across this file.

@jkaczman jkaczman moved this from Todo to Awaiting Merge in v1.0.4 Release Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting Merge

Development

Successfully merging this pull request may close these issues.

2 participants