Commit Graph

30 Commits (2060e87750a5b9ff9c0b7aae20095f3b7a74c48f)

Author SHA1 Message Date
Jeff Culverhouse b3fe517158 refactor: Dockerfile updates 3 months ago
Jeff Culverhouse 366ef61544 refactor: simplify device setup; just use cmps instead of modes 3 months ago
Jeff Culverhouse 07b81abecf feature: add 'version' to logged messages; upgrade packages 3 months ago
Jeff Culverhouse da46ee102d fix: mkdir /media to prep for mounted volume 3 months ago
Jeff Culverhouse 33cd309005 chore: make sure we expose the CURRENT version so we don't lag behind what we report 3 months ago
Jeff Culverhouse 35c8486b96 chore: std Dockerfile and docker-compose, plus a few other fixes 3 months ago
Jeff Culverhouse 2929310d08 chore: we need git in order to get my helper packages 3 months ago
Jeff Culverhouse e230a7673f feat!: complete MQTT and service refactor, add timestamp + event tracking, and new modular mixins
- Rewrote MQTT handling with reconnect, structured logging, and Home Assistant re-discovery triggers
- Introduced modular mixins (`helpers`, `mqtt`, `amcrest_api`) for cleaner architecture
- Replaced `util.py` with internal mixin helpers and `to_gb()` conversions
- Added new `event_text` and `event_time` sensors (with `device_class: timestamp`)
- Added support for doorbell and human-detection binary sensors
- Improved reconnect logic, last-will handling, and clean shutdown on signals
- Overhauled device discovery and state publishing to use unified upsert logic
- Simplified event handling and privacy mode inference from motion/human/doorbell events
- Introduced `tools/clear_mqtt.sh` for quick topic cleanup
- Added full pyproject.toml with lint/test/dev config (Black, Ruff, Pytest)
- Embedded full metadata and image labels in Docker build

BREAKING CHANGE:
Project layout moved to `src/amcrest2mqtt/`, internal class and import paths changed.
Users must update configs and volumes to the new structure before deploying.
3 months ago
Jeff Culverhouse be99ebe527 ok nevermind 10 months ago
Jeff Culverhouse c50466a3cf how about this way 10 months ago
Jeff Culverhouse 180479cc33 trying again 10 months ago
Jeff Culverhouse 2448176c14 add dns cache to image 10 months ago
Jeff Culverhouse c8438581c1 add https apt-get; readme update 11 months ago
Jeff Culverhouse 7ed5e99742 minor docker changes 11 months ago
Jeff Culverhouse 7137ef80f9 use python bookwork instead of alpine 11 months ago
Jeff Culverhouse ebdec66335 Ok, back to alipine which has apk 11 months ago
Jeff Culverhouse 5d7f3b583b fall back to stable python3 base image 11 months ago
Jeff Culverhouse 8d67ff6b0c Add /config placeholder in Dockerfile 11 months ago
Jeff Culverhouse f06a9cac6d mostly rewritten to mimic my govee2mqtt fork 11 months ago
Jeff Culverhouse a551bd80a6 add support for config.yaml; sample config; revamp config 12 months ago
Jeff Culverhouse 92df402331 simpler log, newer base image 12 months ago
Jeff Culverhouse 048b664767 fix Dockerfile 12 months ago
Jeff Culverhouse e531fb0419 more Dockerfile changes 12 months ago
Jeff Culverhouse c03a59ac0e busybox adduser/addgroup 12 months ago
Jeff Culverhouse df32104d00 run as non root 12 months ago
Jeff Culverhouse fb35374520 dockerfile casing 12 months ago
Daniel Chesterton ad323ec8ef Fix Dockerfile to send correct STOPSIGNAL 4 years ago
Daniel Chesterton 1b85a28e01 Fix workflow 5 years ago
Daniel Chesterton df45393453 Add config topic 5 years ago
Daniel Chesterton 7fe314614d Initial commit of amcrest2mqtt code 5 years ago