Make your mailbox smart with Home Assistant

Описание к видео Make your mailbox smart with Home Assistant

In this video I will show you how you can make your mailbox smart with Home assistant. I will create a mailbox sensor which changes state and icon if you get mail and when you have picked up the mail. I will also show you how to send a push notification to your cellphone when you get mail.

0:00 Intro
0:35 Sensors and installation
1:18 Agenda
1:45 Create the helper to indicate Mail/No mail
2:35 Create the mailbox sensor
3:59 Create the automation for Mail
5:42 Create the automation for No Mail
6:51 The result
7:48 Outro

Mailbox sensor code for configuration.yaml

NOTE you need to add angle brackets between:
value_template: and -
icon_template: and -

See in the video if you are unsure!

sensor:
platform: template
sensors:
mailbox:
friendly_name: "Mailbox"
value_template: -
{% if is_state("input_boolean.mailbox", "on") -%}
Mail
{%- else -%}
No mail
{%- endif %}
icon_template: -
{% if is_state("input_boolean.mailbox", "on") -%}
mdi:mailbox-up
{% else %}
mdi:mailbox
{% endif %}

Комментарии

Информация по комментариям в разработке