ha-franklin monitors CUPSD queues and writes information to MQTT for Home Assistant
Reason this release was yanked:
license missing
Project description
ha-franklin
Table of Contents
Background
I wanted a non-toy test example of using ha-mqtt-discoverable.
ha-franklin
will monitor CUPSD print queues, and present a binary sensor to Home Assistant over MQTT showing whether the printer is printing.
I use this to turn the smart switch for the HP 4050N in the basement on and off so that by the time I walk downstairs from my office after printing something, Home Assistant has turned on the power to the printer and the job has started printing.
Usage
Configuration
Create a config file (yaml) with a list of dictionaries in it. Each dictionary should have the following keys:
mqtt_server
: DNS name or a raw IP.mqtt_user
: the_mqtt_usermqtt_password
: the_mqtt_passwordname
: Franklin@cupsdunique_id
: printername-cupsdcupsd_queue_name
: Queue_name_on_cupsd_servercupsd_server
: cupsd.example.comcheck_interval
: 10
The easiest way to create a configuration file is to start by copying config/config-example.yaml
and editing it to fit.
Running the Monitor
I recommend using docker
, nerdctl
or podman
to run the tooling in a container.
docker run -v "$(pwd)/config":/config --rm unixorn/ha-franklin ha-cupsd-monitor-queues --settings-file /config/config.yaml
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ha_franklin-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36bf99f4cfd55627d60c6578ff4fd3f91a72723dea4662000a55d1efa4cec26b |
|
MD5 | 53c2b9762448fc761091de6f4dfba3ad |
|
BLAKE2b-256 | 41aa88739fabed2b590a2a835f966e77dd00c1e2756e5f217fe49394ad9291f5 |