achildrenmile.github.io

View on GitHub

Using Power Automate & Home Assistant to trigger a mailbox indicator

2021-03-05 #Blog | #PowerAutomate | #MailboxIndicator

A while back I created a Mailbox indicator. This blog post will describe you the necessary steps to trigger the mailbox indicator whenever a mail arrives in your M365 Outlook using #HomeAssistant and #PowerAutomate to talk to your mail indicator device.

What hardware do you need?

Hardware - Put the stuff together

Platform - Home Assistant

In order to run the whole thing, you need to have a running Home Assistant instance including MQTT broker. You can find several guides and howto’s like this one in the net.

Software - flash the controller

Side note: This will give you a rough overview about the software steps. In case you have not yet programmed in Arduino Studio and no experience there are several tutorials out there like e.g. randomnerdtutorial.

Home Assistant configuration

If all works well and you receive messages in the defined channel, you can do the last steps in order to add the sensor to your smart home platform.

Open the scripts.yaml of your Home Assistant instance and add following sensor to the sensor configuration:

  maibox_indicator_1_trigger:
  alias: Mailbox Indicator 1 Trigger
  sequence:
  - service: mqtt.publish
    data:
      topic: homeassistant/mailbox1/set
      payload: ha_toogle
  mode: single

Then add the sensor to your Dashboard and you’ll see something like this:

MaibloxtriggerHassio

You can then test the trigger manually and the Mailbox indicator flag should move up and down after each execution.

Power Automate configuration



MailboxTriggerFired



Congratulations, you have successfully created and configured your mailbox indicator :)