mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-16 10:34:40 +00:00
Compare commits
4 Commits
184a084f9f
...
bcee75652d
Author | SHA1 | Date | |
---|---|---|---|
|
bcee75652d | ||
|
2600a391cb | ||
|
e9127ee527 | ||
|
08bcbae544 |
@@ -1 +1 @@
|
|||||||
2025.2.1
|
2025.2.4
|
55
config/packages/printer.yaml
Executable file
55
config/packages/printer.yaml
Executable file
@@ -0,0 +1,55 @@
|
|||||||
|
#-------------------------------------------
|
||||||
|
# @CCOSTAN
|
||||||
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||||
|
# 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
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------
|
@@ -58,6 +58,18 @@ automation:
|
|||||||
data:
|
data:
|
||||||
value1: "Please be aware that the hot water has dropped below 30% availability. Please consider taking a shower at another time. Gallons used today: {{sensor.phyn_daily_water_usage}}"
|
value1: "Please be aware that the hot water has dropped below 30% availability. Please consider taking a shower at another time. Gallons used today: {{sensor.phyn_daily_water_usage}}"
|
||||||
|
|
||||||
|
- service: notify.alexa_media_master_bathroom
|
||||||
|
data:
|
||||||
|
message: "Please be aware that the hot water has dropped below 30% availability. Please wrap up your shower soon."
|
||||||
|
data:
|
||||||
|
type: announce
|
||||||
|
|
||||||
|
- service: notify.alexa_media_upstairs
|
||||||
|
data:
|
||||||
|
message: "Please be aware that the hot water has dropped below 30% availability. Please wrap up your shower soon."
|
||||||
|
data:
|
||||||
|
type: announce
|
||||||
|
|
||||||
- wait_template: "{{ states('sensor.rheem_wh_available_hot_water')|float > 50 }}"
|
- wait_template: "{{ states('sensor.rheem_wh_available_hot_water')|float > 50 }}"
|
||||||
timeout: '01:00:00' # Adjust timeout as needed
|
timeout: '01:00:00' # Adjust timeout as needed
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
<svg width="61.5" height="20" viewBox="0 0 615 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="2025.2.1">
|
<svg width="61.5" height="20" viewBox="0 0 615 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="2025.2.4">
|
||||||
<title>2025.2.1</title>
|
<title>2025.2.4</title>
|
||||||
<linearGradient id="pUlyw" x2="0" y2="100%">
|
<linearGradient id="wkFXR" x2="0" y2="100%">
|
||||||
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
|
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
|
||||||
<stop offset="1" stop-opacity=".1"/>
|
<stop offset="1" stop-opacity=".1"/>
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
<mask id="haOuP"><rect width="615" height="200" rx="30" fill="#FFF"/></mask>
|
<mask id="CBXos"><rect width="615" height="200" rx="30" fill="#FFF"/></mask>
|
||||||
<g mask="url(#haOuP)">
|
<g mask="url(#CBXos)">
|
||||||
<rect width="615" height="200" fill="#08C" x="0"/>
|
<rect width="615" height="200" fill="#08C" x="0"/>
|
||||||
<rect width="615" height="200" fill="url(#pUlyw)"/>
|
<rect width="615" height="200" fill="url(#wkFXR)"/>
|
||||||
</g>
|
</g>
|
||||||
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
|
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
|
||||||
<text x="65" y="148" textLength="500" fill="#000" opacity="0.25">2025.2.1</text>
|
<text x="65" y="148" textLength="500" fill="#000" opacity="0.25">2025.2.4</text>
|
||||||
<text x="55" y="138" textLength="500">2025.2.1</text>
|
<text x="55" y="138" textLength="500">2025.2.4</text>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 811 B After Width: | Height: | Size: 811 B |
Reference in New Issue
Block a user