Files
Home-AssistantConfig/config/packages/printer.yaml
Carlo Costanzo c464073a0d Standardizing on Headers for all YAML files.
- Updated comments in various YAML configuration files to provide clearer descriptions of functionalities and integrations.
- Improved documentation for alarm, alexa_media_player, backups, blink, cbyge, climate, finance, fridge, garadget, glances, hass_agent_homepc, holiday, ios, landscape_lighting, lightning, logger, medicine, nfc_tags, noonhome, office_motion, phynplus, powerwall, printer, processmonitor, proxmox, rachio, rheem_econet, roku, sleepiq, space, speedtest, stats, superbowl, vacuum, wireless, and youtube packages.
- Added relevant links and issue references where applicable to enhance user guidance and support.
2025-11-29 13:17:07 -05:00

59 lines
1.9 KiB
YAML
Executable File

#-------------------------------------------
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# Printer Watchdog - Monitor Epson ink and status.
#-------------------------------------------
######################################################################
## Printer status sensors and health alerts.
######################################################################
# Inspired by https://community.home-assistant.io/t/epson-wf-3540-ink-level-monitoring/21813
##############################################################################
### Automations - Detect when things are not right. Like any Good Watchdog.
##############################################################################
automation:
- alias: 'Printer Ink Alert'
id: 6ef2a695-0b76-4eb5-b67c-2ff6f74f40b8
initial_state: 'on'
trigger:
- platform: numeric_state
entity_id:
- sensor.canon_ts300_series_black
- sensor.canon_ts300_series_color
below: 15
condition:
condition: time
weekday:
- wed
action:
- service: script.notify_engine
data:
value1: "{{ trigger.to_state.attributes.friendly_name }} is at {{ trigger.to_state.state }} "
who: 'carlo'
apns_id: 'information'
- alias: 'Printer Status Notifications'
id: 6ef2a695-0b76-4eb5-b67c-2ff6f74f40b9
trigger:
- platform: state
entity_id: sensor.canon_ts300_series
from: 'unavailable'
to: 'idle'
- platform: state
entity_id: sensor.canon_ts300_series
to: 'printing'
action:
- service: notify.alexa_media_front_room_flex
data:
message: >
{% if trigger.to_state.state == 'idle' %}
Printer has powered on and is ready
{% else %}
Printer is now printing
{% endif %}
data:
type: announce
#-------------------------------------------