Skip to content

Instantly share code, notes, and snippets.

View peyanski's full-sized avatar

Kiril Peyanski peyanski

View GitHub Profile
@peyanski
peyanski / ESPHome-YAML-ld2410-esp32.yaml
Last active May 1, 2024 16:21
Use this code to make your LD2410 sensor to work with ESP32 or ESP8266 board
esphome:
name: ld2410-esp32
friendly_name: ld2410-esp32
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
esphome:
name: esp32-cam
platform: ESP32
board: esp32dev
# Enable logging
logger:
# Enable Home Assistant API
api:
substitutions:
name: victron-mppt
external_components_source: github://KinDR007/VictronMPPT-ESPHOME@main
esphome:
name: ${name}
platform: ESP8266
board: d1_mini
external_components:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"LocalAccountTokenFilterPolicy"=dword:00000001
@peyanski
peyanski / docker-compose.yml
Last active March 21, 2024 07:24
docker-compose.yml file for Home Assistant for Windows
version: "3.9"
services:
homeassistant:
container_name: ha
image: ghcr.io/home-assistant/home-assistant:stable
volumes:
- 'C:\homeassistant:/config'
environment:
- TZ=Europe/Sofia # get your Time Zone from - https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# network_mode: host
esphome:
name: soundsensor
friendly_name: SoundSensor
esp8266:
board: d1_mini
# Enable logging
logger:
esphome:
name: temperature-sensor-bme280
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
@peyanski
peyanski / Gyro_BMI160_Demo_Automaition.yaml
Created February 14, 2024 07:25
Demo Automation that uses BMI160 to control a Smart Bulb. Please change device_id & entity_id with yours!
alias: rotate Gyro to control a Smart Bulb
description: ""
trigger:
- type: value
platform: device
device_id: 1aebc4c337ba29a2c0056367ed4f14d9
entity_id: afb31e3560db5372fb7df63e258994d5
domain: sensor
below: -6
id: rotate-right-x
@peyanski
peyanski / Gyro_BMI160_for_HA.yaml
Created February 14, 2024 07:22
Gyroscope + Accelerometer (Inertial) Sensor that Works with Home Assistant
esphome:
name: gyro-bmi160
friendly_name: Gyro_BMI160
esp8266:
board: esp01_1m
# Enable logging
logger:
esphome:
name: phsensor
platform: ESP8266
board: d1_mini
wifi:
ssid: "YOUR_WIFI_NAME"
password: "YOUR_WIFI_PASS"
# Enable fallback hotspot (captive portal) in case wifi connection fails