Skip to content

Instantly share code, notes, and snippets.

View MarkWattTech's full-sized avatar

Mark Watt Tech MarkWattTech

View GitHub Profile
@MarkWattTech
MarkWattTech / Alexa TTS.txt
Last active October 14, 2023 13:40
Alexa TTS from Tutorial
# Standard TTS notification
service: notify.alexa_media_kitchen_echo
data:
message: this is a test
data:
type: tts
# Sequence Notification
service: media_player.play_media
data:
@MarkWattTech
MarkWattTech / 3 Simple Room Assistant Cards and Automations
Created April 15, 2021 16:31
Code from the latest room assistant video
# CARD 1 - Current Presence
# The first card that shows you what state and what room a given device is in
type: glance
entities:
- entity: device_tracker.marks_apple_watch_tracker
- entity: sensor.marks_apple_watch_room_presence
title: Current Presence
# CARD 2 - Occupancy Card
@MarkWattTech
MarkWattTech / TV Notifications.yaml
Created April 20, 2021 22:55
Code from TV Notifications Video
# Dont forget to Subscribe to Mark Watt Tech!
# Example configuration.yaml entry
notify:
- platform: nfandroidtv
name: yourDeviceName
host: 192.168.1.12
# Simple notification
duration: 10
@MarkWattTech
MarkWattTech / Alexa Custom MP3.yaml
Created April 22, 2021 17:11
Supporting content for the Alexa Custom MP3s video
#Dev Tool
service: notify.alexa_media
data:
message: "<audio src='https://yourPublicURL.ui.nabu.casa/local/mp3/potato.mp3'/>"
target: media_player.downstairs_echo
data:
type: tts
@MarkWattTech
MarkWattTech / gist:86bb228f2d1ae832ae9b4b81f1b95401
Created April 28, 2021 22:37
Alexa TTS for announcing Pi Temp
service: notify.alexa_media_downstairs_echo
data:
message: >-
Home Assistants Pi is currently running at {{states('sensor.processor_temperature') }} degrees
data:
type: tts
target: alexa_media_downstairs_echo
######### Mini Graph ##########
type: 'custom:mini-graph-card'
entities:
- sensor.processor_use_percent
line_color: blue
line_width: 8
name: Processor Usage
font_size: 75
@MarkWattTech
MarkWattTech / Alexa Actionable Notifications.txt
Created June 9, 2021 21:49
Alexa Actionable Notifications Video Code
Thanks for checking out my tutorial!
Dont forget to drop the video a like and hit that subscribe button for more!
====================================================================================
INPUT TEXT (Add it to your config.yaml or wherever you store input text)
===================================================================================
input_text:
alexa_actionable_notification:
name: Alexa Actionable Notification Holder
@MarkWattTech
MarkWattTech / Doorbell_Camera_TV_Notifications.yaml
Created June 24, 2021 18:56
Code From Doorbell and Camera TV notifications video
## Taking the image
service: camera.snapshot
target:
entity_id: camera.e1_zoom
data:
filename: /config/tmp/camera.png
## TV Notification
@MarkWattTech
MarkWattTech / 5MoreHacs.yaml
Created July 15, 2021 13:53
5 More Frontend HACS for Home Assistant
# IF YOU MAKE USE OF THIS DOCUMENT,
# Let me know in the comments of my video. That way I will know if it's worthwhile putting this together.
# Cheers, Mark
# SIMPLE VACUUM CARD
type: custom:vacuum-card
entity: vacuum.your_vacuum
image: default
compact_view: false
show_name: true
@MarkWattTech
MarkWattTech / Camera Commands
Last active May 12, 2024 09:54
Full command
Moved Commands to GIST as YouTube is shortening some of them.
3) sudo apt install autoconf automake build-essential pkgconf libtool git libzip-dev libjpeg-dev gettext libmicrohttpd-dev libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev default-libmysqlclient-dev libpq-dev libsqlite3-dev libwebp-dev
4) sudo wget https://github.com/Motion-Project/motion/releases/download/release-4.3.1/pi_buster_motion_4.3.1-1_armhf.deb
Video at : https://youtu.be/QH8fRGRofv4