Source: sensors2mqtt
Section: python
Priority: optional
Maintainer: Tim 'mithro' Ansell <me@mith.ro>
Build-Depends: debhelper-compat (= 13),
               dh-python,
               pybuild-plugin-pyproject,
               python3-all,
               python3-hatchling,
               python3-hatch-vcs,
               python3-paho-mqtt (>= 2),
               python3-pytest,
               python3-requests,
Standards-Version: 4.7.0
Homepage: https://github.com/mithro/sensors2mqtt
Vcs-Git: https://github.com/mithro/sensors2mqtt.git
Vcs-Browser: https://github.com/mithro/sensors2mqtt

Package: python3-sensors2mqtt
Architecture: all
Depends: ${python3:Depends},
         ${misc:Depends}
Replaces: sensors2mqtt-local (<< ${source:Version})
Breaks: sensors2mqtt-local (<< ${source:Version})
Description: Publish hardware sensor data to Home Assistant via MQTT
 sensors2mqtt is a collection of sensor collectors that poll hardware
 monitoring data and publish it to Home Assistant via MQTT auto-discovery.
 .
 Supported collectors include SNMP (Netgear managed switches), local
 sysfs/hwmon (Raspberry Pi, Mellanox SN2410), and IPMI (Supermicro BMC).
 .
 This package provides the Python library and collector modules.

Package: sensors2mqtt-local
Architecture: all
Depends: python3-sensors2mqtt (= ${binary:Version}),
         python3,
         systemd,
         ${misc:Depends}
Description: sensors2mqtt local sensor collector systemd service
 Installs and enables the sensors2mqtt-local systemd service for
 collecting sensor data from the local system. Auto-detects hardware
 (Raspberry Pi, Mellanox SN2410) and runs the appropriate collector.
 .
 Configure MQTT connection via /etc/sensors2mqtt/env.

Package: sensors2mqtt-snmp
Architecture: all
Depends: python3-sensors2mqtt (= ${binary:Version}),
         python3,
         snmp,
         systemd,
         ${misc:Depends}
Description: sensors2mqtt SNMP collector for Netgear managed switches
 Installs the sensors2mqtt-snmp systemd service, which polls Netgear managed
 switches over SNMP and publishes sensor data to Home Assistant via MQTT
 auto-discovery.
 .
 Configure switches in /etc/sensors2mqtt/snmp.toml and the MQTT connection in
 /etc/sensors2mqtt/env, then start the service.

Package: sensors2mqtt-snmp-control
Architecture: all
Depends: python3-sensors2mqtt (= ${binary:Version}),
         python3,
         snmp,
         systemd,
         ${misc:Depends}
Description: sensors2mqtt PoE control service for Netgear managed switches
 Installs the sensors2mqtt-snmp-control systemd service, which exposes per-port
 PoE control for Netgear managed switches to Home Assistant via MQTT.
 .
 Configure switches in /etc/sensors2mqtt/snmp.toml and the MQTT connection in
 /etc/sensors2mqtt/env, then start the service.

Package: sensors2mqtt-local-control
Architecture: all
Depends: python3-sensors2mqtt (= ${binary:Version}),
         python3,
         systemd,
         ${misc:Depends}
Description: sensors2mqtt host power-control service
 Installs the sensors2mqtt-local-control systemd service, which exposes
 graceful Shutdown and Reboot buttons for the local host to Home Assistant via
 MQTT auto-discovery. The service runs as root and calls /sbin/shutdown
 directly — no SSH or external agent.
 .
 Install only on hosts that should be remotely power-controllable. Configure the
 MQTT connection in /etc/sensors2mqtt/env, then start the service.

Package: sensors2mqtt-ipmi-sensors
Architecture: all
Depends: python3-sensors2mqtt (= ${binary:Version}),
         python3,
         ipmitool,
         python3-requests,
         systemd,
         ${misc:Depends}
Description: sensors2mqtt IPMI sensor collector
 Installs the sensors2mqtt-ipmi-sensors systemd service, which reads sensors
 from a BMC via ipmitool and the BMC web API and publishes them to Home
 Assistant via MQTT auto-discovery.
 .
 Configure BMC_HOST/BMC_USER/BMC_PASS and the MQTT connection in
 /etc/sensors2mqtt/env, then start the service.

Package: sensors2mqtt-storage
Architecture: all
Depends: python3-sensors2mqtt (= ${binary:Version}),
         python3,
         systemd,
         ${misc:Depends}
Recommends: smartmontools (>= 7.5+git)
Description: sensors2mqtt storage device collector (drives and enclosures)
 Installs the sensors2mqtt-storage systemd service: one Home Assistant device
 per drive, keyed by its serial number, with every SMART lifetime counter (read
 from smartd's --jsonstate files; it sends no command to any drive), I/O
 statistics, link health and the SES enclosure slot it is in; and one device
 per SES enclosure with the state of each slot. Runs unprivileged.
 .
 smartd must write JSON state files (smartd -j; the mithro/smartmontools
 build does by default). Configure the MQTT connection in
 /etc/sensors2mqtt/env, then start the service.

Package: sensors2mqtt-storage-lvm
Architecture: all
Depends: python3-sensors2mqtt (= ${binary:Version}),
         python3,
         systemd,
         dmsetup,
         ${misc:Depends}
Description: sensors2mqtt filesystem, md and LVM collector
 Installs the sensors2mqtt-storage-lvm systemd service, which publishes
 filesystem usage, md arrays, LVM volume group / logical volume / physical
 volume allocation and RAID, integrity and cache health on the host's Home
 Assistant device. It reads no disk: LVM layout comes from /etc/lvm/backup
 and health from the kernel's device-mapper status. Runs as root.
 .
 Configure the MQTT connection in /etc/sensors2mqtt/env, then start the
 service.
