Home Assistant

·

Total Control

I need your boots. clothes and your thermostat...

Home Assistant is open source software that puts local control and privacy first. What this means is you can choose where and what hardware you want to deploy it on! Currently I have a proxmox server stoodup so that's where it will be installed. Inside proxmox we can open the shell and run this Proxmox helper script.

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/vm/haos-vm.sh)"

This will start to install a HAOS(Home Assistant OS) VM. Follow the prompts and choose your desired settings, username and password. Once it's all finished you should see an address where your Home Assistant can be reached from.

CLI

We can see that the url to access HA is

http://homeassistant.local:8123

If we go to this url we will be presented with the login page

HA Login

Log in with your credentials and you now have Home Assistant installed on proxmox!

Adding A Device

Now that we have Home Assistant up and running we can add devices!

Washing Machine

I always have trouble remembering to flip the laundry from the washer to the dryer. After brainstorming how to help combat this, notifications when the wash is done to a smart device would be ideal. We can achieve this by using a smart plug w/ power monitoring.

Washer Plug

Now that we added the plug and can see it in Home Assistant, we need to automate the task of sending a notification to smart devices. First we create a new automation.

alias: WashingMachine
description: "automation for washing machine."

At first I had Home Assistant send a message when the plug changed to the off state. The problem I ran into with doing this was the washer pauses between stages and the plug will turn to off state for a short period. To fix this I added a timer of 2 minutes to the off state. That way it gives enough of a buffer to make sure the washer is really finished and isn't just switching cycles.

triggers:
    for:
      hours: 0
      minutes: 2
      seconds: 0

Now that we got the timing trigger down we need to add actions to send to our devices using the notify endpoint. it should look like this.

actions:
  - action: notify.mobile_app_obi6
    metadata: {}
    data:
      message: Washing machine is done my lord.

Here is the full config:

alias: WashingMachine
description: "automation for washing machine."
triggers:
  - type: turned_off
    device_id: 537f385f5f4c09f01691be6a30f33aa4
    entity_id: 4c215f3ceb902cd766489583e144ed61
    domain: binary_sensor
    trigger: device
    for:
      hours: 0
      minutes: 2
      seconds: 0
conditions: []
actions:
  - action: notify.mobile_app_obi6
    metadata: {}
    data:
      message: Washing machine is done my lord.
  - action: notify.mobile_app_sm_g998u1
    metadata: {}
    data:
      message: Washing machine is done milord.
  - action: notify.r_ylah
    metadata: {}
    data:
      target: "1316165189422415965"
      title: placeholder
      message: <@&1310481055957913702> Washing Machine Is Done My Lords.
mode: single

Dashboard for Ipad

configured a dashboard for Ipad dashboard