Skip to content

Add InfluxDB3 writer with deconz support and tests to validate mappin…#9

Open
xlfe wants to merge 4 commits intomainfrom
add-influxdb3-support
Open

Add InfluxDB3 writer with deconz support and tests to validate mappin…#9
xlfe wants to merge 4 commits intomainfrom
add-influxdb3-support

Conversation

@xlfe
Copy link
Owner

@xlfe xlfe commented Jan 31, 2026

…g plus config/docs updates to clarify measurement and whitelist behavior

xlfe and others added 4 commits January 31, 2026 14:34
…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>
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