diff --git a/.HA_VERSION b/.HA_VERSION index 0c95389..9a6dac6 100644 --- a/.HA_VERSION +++ b/.HA_VERSION @@ -1 +1 @@ -2020.12.0 \ No newline at end of file +2020.12.1 \ No newline at end of file diff --git a/README.md b/README.md index 430d0eb..9439205 100644 --- a/README.md +++ b/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) | diff --git a/components/input_numbers/packages.yaml b/components/input_numbers/packages.yaml new file mode 100644 index 0000000..1af01ba --- /dev/null +++ b/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 diff --git a/components/sensors/imap_gmail_reader.yaml b/components/sensors/imap_gmail_reader.yaml new file mode 100644 index 0000000..7d0c6d2 --- /dev/null +++ b/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 \ No newline at end of file diff --git a/components/sensors/sensor_templates.yaml b/components/sensors/sensor_templates.yaml index 18354dd..aeb0968 100644 --- a/components/sensors/sensor_templates.yaml +++ b/components/sensors/sensor_templates.yaml @@ -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' \ No newline at end of file + 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\)") }} \ No newline at end of file