Add InfluxDB3 writer with deconz support and tests to validate mappin…#9
Open
Add InfluxDB3 writer with deconz support and tests to validate mappin…#9
Conversation
…g plus config/docs updates to clarify measurement and whitelist behavior
Queue writes off the main loop, tag/alias ESPHome props, and store deCONZ state under :radiale.deconz so domain filters line up.
- Fix Python NaN/Inf filtering in pod.py using math.isnan()/isinf() instead of identity comparison which silently passed bad values - Prevent channel deadlocks by replacing blocking async/>!! with non-blocking async/offer! in state.clj and watch.clj, logging warnings when the channel is full instead of blocking the main loop - Add error handling and logging throughout: - Wrap ::fn handler invocation in try-catch (core.clj) - Add try-catch around watch handlers (watch.clj) - Log when events are filtered or channels uninitialized (influx.clj) - Optimize InfluxDB3 writes with time-based batching: - Accumulate points for 100ms before writing - Use writePoints() batch API instead of individual writePoint() calls - Enable noSync=true in WriteOptions to skip WAL persistence wait - Reduces write latency from ~1s per point to ~50ms per batch - Convert high-frequency debug logs to trace level for cleaner output
…oot) Previously, on_disconnect returned early when expected=True, skipping the reconnect loop entirely. Now it waits 30s for the device to reboot, then enters the normal reconnect loop. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
…g plus config/docs updates to clarify measurement and whitelist behavior