Skip to content

Commit

Permalink
Completed package notification
Browse files Browse the repository at this point in the history
Upgrade to 2020.12.1
  • Loading branch information
ZinkNotTheMetal committed Dec 25, 2020
1 parent 75773f0 commit e69be2e
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .HA_VERSION
@@ -1 +1 @@
2020.12.0
2020.12.1
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# Here's my [Home Assistant (HA)](https://home-assistant.io/) configuration.

| ![](https://img.shields.io/badge/Home%20Assistant-2020.12.0-blue.svg) | ![](https://img.shields.io/github/stars/zinknotthemetal/homeassistant.svg?label=Stars)|
| ![](https://img.shields.io/badge/Home%20Assistant-2020.12.1-blue.svg) | ![](https://img.shields.io/github/stars/zinknotthemetal/homeassistant.svg?label=Stars)|
|:---:|:---:|
| Configuration for Home Assistant version | Please :star: this repo if you found it useful! (Click Star in the top right) |
| [![](https://img.shields.io/github/issues-raw/zinknotthemetal/homeassistant.svg)](https://github.com/ZinkNotTheMetal/HomeAssistant/issues) | ![](https://img.shields.io/github/last-commit/zinknotthemetal/homeassistant.svg) |
Expand Down
14 changes: 14 additions & 0 deletions components/input_numbers/packages.yaml
@@ -0,0 +1,14 @@
away_packages_received:
name: 'Packages Arrived While Away'
initial: 0
min: 0
max: 255
step: 1
icon: mdi:gift-off
yearly_packages_received:
name: 'Total yearly packages received'
initial: 0
min: 0
max: 1500
step: 1
icon: mdi:gift
14 changes: 14 additions & 0 deletions components/sensors/imap_gmail_reader.yaml
@@ -0,0 +1,14 @@
####################################################################
# #
# IMAP Email Content Sensor #
# https://www.home-assistant.io/integrations/imap_email_content/ #
# #
####################################################################
- platform: imap_email_content
server: imap.gmail.com
name: pickup_packages_email
port: 993
username: !secret my_gmail_address
password: !secret my_gmail_password
senders:
- !secret concierge_email_address
12 changes: 11 additions & 1 deletion components/sensors/sensor_templates.yaml
Expand Up @@ -306,4 +306,14 @@
dishwasher_today_kwh:
friendly_name: "Dishwasher Today's Consumption"
value_template: '{{ states.switch.dishwasher.attributes["today_energy_kwh"] | float }}'
unit_of_measurement: 'kWh'
unit_of_measurement: 'kWh'
##############################################
# #
# Package Email Reader #
# #
##############################################
package_items_found:
friendly_name: Package Items Found In Email
value_template: >
{{ state_attr('sensor.pickup_packages_email', 'body')
|regex_findall_index("([0-9.]) item\(s\)") }}

0 comments on commit e69be2e

Please sign in to comment.