-
Notifications
You must be signed in to change notification settings - Fork 17
Release 26.3.2.1 - New sensors, ESPHome modernisation, and bug fixes #68
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
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
3e2dbb7
Update for ESPHome 2025.8.0 release
kbx81 d4ffac9
Update version
kbx81 bcb98f3
Fix reporting of initial values when reduce_db_reporting=true
fedorka 23d658b
Increase reporting for lux and UV index
fedorka cd4abbe
Merge branch 'main' into fix-initial-reporting
fedorka 746e182
Add logger configuration to MSR-2.yaml
bharvey88 c8788bf
Merge pull request #46 from ApolloAutomation/add-logger-to-msr-2yaml
TrevorSchirmer d8e37d9
Merge pull request #43 from fedorka/fix-initial-reporting
TrevorSchirmer b6ed584
Add general occupancy sensor
paradox460 eea9485
Merge branch 'beta' into 20250812-update-ld2410-throttle
TrevorSchirmer e5d868c
Merge pull request #40 from kbx81/20250812-update-ld2410-throttle
TrevorSchirmer 2aa81ee
Rename general occupancy sensor based on discussion in discord
paradox460 be70ff5
Merge pull request #47 from paradox460/main
TrevorSchirmer 9dd9982
Add configurable update interval for LTR390 sensor
bharvey88 2bb306f
Fix: Ensure immediate LTR390 reading on boot
bharvey88 196c738
Add IP address text sensor via wifi_info platform
bharvey88 0cefd9f
Rename API services to actions (play_buzzer, calibrate_co2_value, set…
bharvey88 d7d33ac
Modernise board spec and remove legacy platformio/BLE config
bharvey88 797d75e
fix: remove unused id, add entity_category diagnostic to IP address s…
bharvey88 0bcb5b7
fix: restore id: wifi_ip (needed for ESPHome automations)
bharvey88 2466690
Merge pull request #61 from ApolloAutomation/esphome-modernisation
TrevorSchirmer b8ef637
Merge pull request #60 from ApolloAutomation/api-actions-rename
TrevorSchirmer afa8570
Merge pull request #58 from ApolloAutomation/wifi-info-ip-address
TrevorSchirmer e128ea1
feat: apply DPS310 pressure offset in filter lambda
bharvey88 796b4f9
feat: add DPS310 Pressure Offset configurable number entity
bharvey88 b8dcd6d
Add ESPHome version and Apollo firmware version text sensors
bharvey88 3420441
fix: add entity_category diagnostic to ESPHome Version sensor
bharvey88 e349e0c
fix: add update_interval: never to static Apollo Firmware Version sensor
bharvey88 2268d77
fix: remove duplicate entity_category keys in ESPHome Version sensor
bharvey88 1f5d0ae
feat: disable LTR390 update interval entity by default
bharvey88 329a6ee
Merge pull request #59 from ApolloAutomation/version-sensors
TrevorSchirmer 3fb5fba
Fix: remove pressure offset from non-DPS310 sensor lambdas
bharvey88 21084d1
Merge pull request #62 from ApolloAutomation/dps310-pressure-offset
bharvey88 0a5b139
Merge pull request #56 from ApolloAutomation/feature/ltr390-configura…
bharvey88 a6d74c1
Fix LTR390 interval lambda: handle NAN state, remove boot timing guard
bharvey88 543e299
Bump version to 26.3.2.1
bharvey88 b41288e
Bump version to 26.3.2.1
bharvey88 c04f0f2
Fix LTR390 interval lambda: handle NAN state, remove boot timing guard
bharvey88 9ef21bc
Fix Apollo Firmware Version sensor showing unknown
bharvey88 c459a08
Fix Apollo Firmware Version sensor showing unknown
bharvey88 e6bd10f
fix: publish firmware version once on boot instead of polling
bharvey88 db71fea
fix: move firmware version publish to priority 500 for all variants
bharvey88 e4c7f95
Fix: publish firmware version once on boot instead of polling
bharvey88 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not let the delta filter swallow offset-only changes.
When
reduce_db_reportingis on, a calibration change smaller than 5 hPa never reachesdps310pressurebecause the new offset is applied before the delta comparison. A stable sensor with a+1.0hPa tweak will keep returning{}, so the displayed pressure — and thescd40compensation source wired to it — stays stale.Proposed fix
- lambda: |- static float last_reported_value = -6.0; + static float last_offset = NAN; float current_value = x; float offset = id(dps310_pressure_offset).state; + bool offset_changed = isnan(last_offset) || + (isnan(offset) != isnan(last_offset)) || + (!isnan(offset) && fabsf(offset - last_offset) >= 0.001f); if (!isnan(offset)) { current_value += offset; } + if (offset_changed) { + last_offset = offset; + last_reported_value = current_value; + return current_value; + } // Check if the reduce_db_reporting switch is on if (id(reduce_db_reporting).state) {📝 Committable suggestion
🤖 Prompt for AI Agents