Рет қаралды 30,712
My UniFi equipment in Amazon (affiliate link) - amzn.to/3wfgGHn
After you finish watching this Home Assistant Ubiquiti UniFi video you will be able to do presence detection, block network access for any clients, check bandwidth and uptime sensors and more. Everything that you will need is Home Assistant and UniFi network equipment.
► TIME TABLE
00:00 Intro
00:24 What you need for this video?
01:21 Home Assistant UniFi integration
02:22 Home Assistant UniFi integration options
03:29 Add Home Assistant card with sensors and switch
04:19 UniFi clients uptime sensor fix
06:20 Home Assistant UniFi presence detection
07:42 Home Assistant UniFi Automation example
09:59 Testing the automation
► MY GUIDE - ON SALE
Smart Home Getting Started Smart Home Guide v2.0 - peyanski.com/product/smart-ho...
► AFFILIATE LINKS
Ubiquiti UniFi Dream Machine (UDM) - amzn.to/34B0FQK
Ubiquiti UniFi Security Gateway (USG) - amzn.to/2WCYNCk
Ubiquiti Networks Networks UniFi Security Gateway Pro (USG-PRO-4) - amzn.to/3palPwQ
UniFi Dream Machine Pro (UDM-Pro) - amzn.to/3paw3gG
Raspberry Pi 4 4GB Starter Kit with 32GB Micro SD Card - amzn.to/3qaI5qN
Best Crypto currency exchange Binance - www.binance.com/en/register?r...
Tech that I’m using right now - www.amazon.com/shop/kpeyanski
Get $100 in credit over 60 days for DigitalOcean - m.do.co/c/6dd2caef1f1f
► SUPPORT MY WORK
Patreon - / kpeyanski
Paypal - www.paypal.me/kpeyanski
Bitcoin - 1GnUtPEXaeCUVWdJxCfDaKkvcwf247akva
Revolut - revolut.me/kiriltk3x
► TEMPLATE UPTIME SENSOR FOR THE NATIVE UNIFI UPTIME SENSOR
configuration.yaml entry
sensor:
- platform: template
sensors:
YOUR_NEW_SENSOR_NAME_uptime:
friendly_name: “Whatever you wish “
value_template: "{{states('sensor.YOUR_UPTIME_SENSOR_uptime').split('T')[1].split('+')[0]}}"
► HOME ASSISTANT UNIFI EXAMPLE AUTOMATION
automations.yaml entry
alias: If Apple TV uptime reached and Kiril is not home
description: ''
trigger:
- platform: state
entity_id: sensor.appletv_uptime
to: '00:00:10'
condition:
- condition: device
domain: device_tracker
entity_id: device_tracker.kiril_phone
type: is_not_home
action:
- service: switch.turn_off
target:
entity_id: switch.apple_tv_4
mode: single
► COME AND SAY “HI”
My Discord server - invite.gg/kpeyanski
Twitter - / kpeyanski
✅ Don't Forget to like 👍 comment ✍ and subscribe to my channel!
► DISCLAIMER
Some of the links above are affiliate links, where I earn a small commission if you click on the link and purchase an item. You are not obligated to do so, but it does help fund these videos in hopes of bringing value to you!