Skip to content

Instantly share code, notes, and snippets.

View letsautomatenet's full-sized avatar

Let's Automate! letsautomatenet

View GitHub Profile
@letsautomatenet
letsautomatenet / create_zone_script.yaml
Last active July 10, 2024 13:34
Create Zone of current phone location
# Create this script and then add a card to the dashboard linking to the script
alias: Add New Zone
sequence:
- service: zone.create
metadata: {}
data:
radius: "{{radius|default(100)}}"
name: "{{zone_name}}"
latitude: "{{ state_attr('device_tracker.marc_phone','latitude') }}"
longitude: "{{ state_attr('device_tracker.marc_phone','longitude') }}"
@letsautomatenet
letsautomatenet / test-sensor-esp8266-without-ha.yaml
Created March 15, 2024 20:09
ESPHome Device - MQTT & HTTP Instead of Home Assistant
# Example from YouTube video: https://www.youtube.com/watch?v=0XH61uCqMDw
# Air Quality sensor adapted to not use Home Assistant
# but use MQTT and HTTP instead.
# Original Air Quality Sensor video: https://www.youtube.com/watch?v=XIY1xOzM3fs
### START - Update this section with relevant details ###
substitutions:
@letsautomatenet
letsautomatenet / esphome_install.sh
Last active May 12, 2024 07:53
ESPHome Install - Ubuntu
#!/bin/bash
# If you're having difficulty running this file then ensure the file has execute permissions
# chmod 755 esphome_install.sh
# To run the script type:
# sudo ./esphome_install.sh
### START - Install Docker ###
# Remove any old docker files
@letsautomatenet
letsautomatenet / car-seat-sensor_est-poe-32.yaml
Created January 31, 2024 14:12
Car Seat Sensor - EST-PoE-32
### START - Update this section with relevant details ###
substitutions:
device_name: "device-name-here"
friendly_name: Device Name Here
board_type: esp32dev
framework: esp-idf # arduino or esp-idf (recommended for ESP32)
# ESPHome API used by Home Assistant, etc
@letsautomatenet
letsautomatenet / switchbot_api_node_red.json
Created January 15, 2024 15:27
SwitchBot API - Node-RED Example
[
{
"id": "021eb3f3192c53ca",
"type": "tab",
"label": "Switchbot",
"disabled": false,
"info": "",
"env": []
},
{
@letsautomatenet
letsautomatenet / test-sensor-esp8266.yaml
Created January 14, 2024 10:36
ESPHome Advanced Guide - test-sensor-esp8266
# Example from YouTube video: https://www.youtube.com/watch?v=XIY1xOzM3fs
# Push Button, Status LEDs, Analog Input (FSR Sensor), Air Quality Sensor, Distance Sensor
### START - Update this section with relevant details ###
substitutions:
device_name: "device-name-here"
friendly_name: Device Name Here
board_type: d1_mini
@letsautomatenet
letsautomatenet / ESPHome YAML Template - ESP32.yaml
Created January 13, 2024 18:32
ESPHome YAML Template - ESP32
### START - Update this section with relevant details ###
substitutions:
device_name: "device-name-here"
friendly_name: Device Name Here
board_type: esp32dev
framework: esp-idf # arduino or esp-idf (recommended for ESP32)
# ESPHome API used by Home Assistant, etc
@letsautomatenet
letsautomatenet / ESPHome YAML Template - ESP8266.yaml
Created January 13, 2024 18:30
ESPHome YAML Template - ESP8266
### START - Update this section with relevant details ###
substitutions:
device_name: "device-name-here"
friendly_name: Device Name Here
board_type: d1_mini
# ESPHome API used by Home Assistant, etc
# If you go to this page it generates one for you automatically!
@letsautomatenet
letsautomatenet / BME680 Air Quality Sensor.yaml
Created December 27, 2023 15:24
BME680 Air Quality Sensor
esphome:
name: bme680
friendly_name: Air Quality Sensor
esp8266:
board: d1_mini
# Enable logging
logger:
@letsautomatenet
letsautomatenet / Bluetooth Proxy - Ethernet EST-PoE-32.yaml
Last active December 12, 2023 10:01
Bluetooth Proxy - Ethernet (EST-PoE-32)
esphome:
name: est-poe-32
friendly_name: EST-PoE-32
esp32:
board: esp32dev
framework:
type: esp-idf
# Enable logging