unpoller_unpoller/pkg/inputunifi
Brian Gates b4fa16b2fd
fix(influxunifi): use CelsiusSafe() for temp fields to fix InfluxDB type conflict (#944) (#945)
* fix(influxunifi): use CelsiusSafe() for temp fields to fix InfluxDB type conflict

Write temp_* fields as float64 instead of int64 so InfluxDB does not
report 'field type conflict' when the measurement already has float.

Requires github.com/unpoller/unifi/v5 with CelsiusSafe() (unpoller/unifi#195).
Fixes #944.

Co-authored-by: Cursor <cursoragent@cursor.com>

* deps: unifi v5.17.0; nil guards and 429 retry (unpoller#943)

- Bump github.com/unpoller/unifi/v5 to v5.17.0 (CelsiusSafe, ErrNilUnifi, RateLimitError)
- inputunifi: guard pollController for nil c.Unifi; controllerID(c) in formatSites/Clients/Devices
- inputunifi: getUnifi retry with backoff on 429 (up to 5 attempts, Retry-After or exponential backoff)

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(influxunifi): expect temp_* as float after CelsiusSafe() (fix #944)

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-03 20:12:26 -06:00
..
LICENSE
README.md
collectevents.go Enrich alarms with device names for Loki logs 2026-01-25 12:17:12 -06:00
collector.go fix(influxunifi): use CelsiusSafe() for temp fields to fix InfluxDB type conflict (#944) (#945) 2026-02-03 20:12:26 -06:00
discover.go Replace Python endpoint-discovery with --discover flag (replaces #936) 2026-01-30 20:17:00 -05:00
input.go fix(influxunifi): use CelsiusSafe() for temp fields to fix InfluxDB type conflict (#944) (#945) 2026-02-03 20:12:26 -06:00
interface.go Allow polling to continue when individual controllers fail 2026-01-25 12:01:37 -06:00
remote.go move remote.go to use unifi library functions 2026-01-25 08:59:11 -05:00
updateweb.go fix(influxunifi): use CelsiusSafe() for temp fields to fix InfluxDB type conflict (#944) (#945) 2026-02-03 20:12:26 -06:00

README.md

inputunifi

UnPoller Input Plugin