Skip to content

Remove per-device sleep overrides from plant sensors - #54

Merged
ptr727 merged 3 commits into
mainfrom
develop
Jul 19, 2026
Merged

ptr727 merged 3 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Promotes the current develop snapshot to main.

Change

Drops sleep_duration_hours and prevent_sleep_default from the five plant
sensor configs (living room, music room, patio, stairs, upstairs hallway) so
they inherit the templates/apollo-plt-1b.yaml defaults (12h sleep, prevent
sleep ON) rather than pinning 1h per device.

The 1h value was set for integration and initial testing. It costs under a
month of 18650 runtime, and the PLT-1B cannot charge over USB (cells have to
be removed and charged externally), so the fleet moves to the template default.

NVS semantics

Both substitutions are first-boot seeds only. Already-deployed units keep their
NVS values, so the runtime change is applied in Home Assistant via the
Sleep Duration number, not by this commit.

Validation

esphome config passes for all five devices, and the defaults resolve through
the template as expected:

  • initial_value: 12.0 on deep_sleep_sleep_duration
  • restore_mode: RESTORE_DEFAULT_ON on prevent_sleep

dependabot Bot and others added 2 commits July 18, 2026 03:35
Bumps the actions-deps group with 2 updates: [actions/setup-dotnet](https://github.com/actions/setup-dotnet) and [softprops/action-gh-release](https://github.com/softprops/action-gh-release).


Updates `actions/setup-dotnet` from 5.3.0 to 6.0.0
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](actions/setup-dotnet@9a946fd...a98b568)

Updates `softprops/action-gh-release` from 3.0.1 to 3.0.2
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](softprops/action-gh-release@718ea10...3d0d988)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions-deps
- dependency-name: softprops/action-gh-release
  dependency-version: 3.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-deps
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Drop sleep_duration_hours and prevent_sleep_default from the five plant
sensor configs so they inherit the apollo-plt-1b template defaults (12h
sleep, prevent sleep ON) instead of pinning 1h per device.

These substitutions are first-boot seeds only. Already-deployed units
keep their NVS values, so the runtime change is made in Home Assistant
via the Sleep Duration number.
Copilot AI review requested due to automatic review settings July 19, 2026 00:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Promotes the current develop snapshot to main by removing per-device deep sleep seed overrides from the five Apollo PLT-1B plant sensor configs so they inherit the template defaults.

Changes:

  • Removed sleep_duration_hours substitution from 5 plant sensor device YAMLs to rely on the template default.
  • Removed prevent_sleep_default substitution from 5 plant sensor device YAMLs to rely on the template default.
  • Updated pinned GitHub Action SHAs for actions/setup-dotnet and softprops/action-gh-release in the release workflow.

Reviewed changes

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

Show a summary per file
File Description
upstairs-hallway-plant-sensor.yaml Drops per-device sleep substitutions to inherit template defaults.
stairs-plant-sensor.yaml Drops per-device sleep substitutions to inherit template defaults.
patio-plant-sensor.yaml Drops per-device sleep substitutions to inherit template defaults.
music-room-plant-sensor.yaml Drops per-device sleep substitutions to inherit template defaults.
living-room-plant-sensor.yaml Drops per-device sleep substitutions to inherit template defaults.
.github/workflows/publish-release.yml Updates pinned action SHAs for setup-dotnet and release creation.

Device Builder's version history feature polls /config and commits every
changed YAML unsigned, authored ESPHome Device Builder
<[email protected]>, passing commit.gpgsign=false and --no-verify
so neither host signing policy nor hooks can stop it. It hit this repo on
2026-07-14 and 2026-07-18.

Records the mechanism, where the setting persists, and the authorship
check to run if it is ever re-enabled.
Copilot AI review requested due to automatic review settings July 19, 2026 01:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

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

@ptr727
ptr727 merged commit 4be1710 into main Jul 19, 2026
7 checks passed
ptr727 added a commit that referenced this pull request Jul 22, 2026
Remove per-device sleep overrides from plant sensors
ptr727 added a commit that referenced this pull request Jul 22, 2026
Remove per-device sleep overrides from plant sensors
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