Skip to content

Instantly share code, notes, and snippets.

View vidvisionify's full-sized avatar
I have no idea what I'm doing

Phil ⚡ vidvisionify

I have no idea what I'm doing
View GitHub Profile
# ======================================================================================= #
#
# V A L E T U D O & H O M E A S S I S T A N T
#
# Phil Cooper, @ 2022 Jan 26
# Latest Major Revision: Let's begin.
#
# vidvisionify@gmail.com
# @vidvisionify
@vidvisionify
vidvisionify / better_ring.yaml
Created February 2, 2019 05:59
Home Assistant package to download the last Ring video and better last motion sensors
# This package assumes the name of your camera is 'Front Door'. You may need to change some things if it's not.
downloader:
download_dir: www/ring
python_script:
# Put this, un-commented, in a folder named 'python_scripts' at the root of your home assistant config.
# Also create a folder named 'ring' in 'www'
# # ==== ring_download.py START ====
version: '2'
services:
# =======================================================================================
# == Home Assistant - home automation platform ==========================================
# =======================================================================================
home-assistant:
container_name: home-assistant
image: hnicolaisen/home-assistant:latest #I use this image because it adds the PS4 Media Player
network_mode: "host"
restart: unless-stopped
input_boolean:
movie_mode:
name: Movie Mode
initial: off
icon: mdi:movie
automation:
- alias: Movie Mode
trigger:
platform: state
script:
status_report:
alias: Status Report
sequence:
- service: input_boolean.turn_off
data:
entity_id: input_boolean.status_next
- service: media_player.alexa_tts
data_template:
entity_id: media_player.basement
@vidvisionify
vidvisionify / desk-card.yaml
Created October 28, 2018 05:20
Lovelace Card - Desk Entities
- type: vertical-stack
cards:
- type: picture-elements
image: /local/pics/devices/pandorica_card.png
elements:
- type: image
entity: switch.wake_on_lan
@vidvisionify
vidvisionify / ecovacs-card.yaml
Last active August 14, 2019 20:08
Lovelace Card - Ecovacs Vacuum
# In this example, Deedee is the name of my Ecovacs vacuum.
# We use a placeholder image for the background
- type: picture-elements
image: /local/pics/devices/deedee_card_unknown.png
elements:
# This will be the background we actually see.
# The sensor is a template pulling the status attribute of the vacuum.
# These pictures are of the vacuum all in the same place.
# The images all have a dark overlay on the bottom.