Skip to content

Instantly share code, notes, and snippets.

@tetele
tetele / README.md
Last active July 3, 2024 14:25
ESPHome config - Onju Voice/Home as a voice assistant satellite in Home Assistant
@EverythingSmartHome
EverythingSmartHome / esp32-voice.yaml
Last active July 2, 2024 23:02
ESP32 & ESPHome Voice Assistant
esphome:
name: esp32-mic-speaker
friendly_name: esp32-mic-speaker
on_boot:
- priority: -100
then:
- wait_until: api.connected
- delay: 1s
- if:
condition:
@malinovsku
malinovsku / BK socket
Created August 11, 2023 06:38
BK socket
substitutions:
device_name: kyxna-blok-5v
entity_name: kyxna_blok_5v
entity_friendly_name: kyxna blok 5v
device_name_wifi: kyxnablok5v
switch_dop_name: ''
switch_restore_mode: RESTORE_DEFAULT_ON
integration_method: trapezoid
switch_icon: "mdi:power-socket-eu"
@lumascet
lumascet / esphome.yaml
Last active May 17, 2024 03:29
FYSETC-E4 esphome roller blinds
substitutions:
device_name: "lush-cover-controller"
pulley_diameter_mm: "21.963"
gear_ratio: "1880/2000"
distance_mm: "2050"
acceleration: 500 steps/s^2
velocity: 2500 steps/s # 200 (motor steps) * ${microsteps}
back_off_steps: "200" # back off some steps to reduce stepper energize noise
open_current_x: 1000ma
substitutions:
devicename: rollerblind-bedroom
devicestring: Rollerblind Bed
esphome:
name: $devicename
platform: ESP8266
board: nodemcuv2
esp8266_restore_from_flash: true
on_boot:
@AlexxIT
AlexxIT / yandex_station_last_active.yaml
Last active April 25, 2023 06:06
Ответ на intent с последней активной колонки
yandex_station: # мой компонент YandexStation
username: myuser
password: mypass
intents:
Расскажи шутку: # добавьте ваши фразы
yandex_smart_home: # НЕ мой компонент Yandex Smart Home
filter: # не забудьте добавить другие, важные для вас, устройства
include_entities:
- media_player.yandex_intents # этот плеер отвечает за работу `intents`
@AlexxIT
AlexxIT / yandex_station_status.yaml
Created September 14, 2020 07:56
Отображаем статус Яндекс Станции с помощью умных ламп
yandex_station:
username: myuser
password: mypass
sensor:
- platform: template
sensors:
alice_state:
value_template: "{{ state_attr('media_player.yandex_station_mini', 'alice_state') }}"
@samirsogay
samirsogay / gist:4e05779aa0a95fa10c6ac22d097514f0
Created July 11, 2020 15:32
Pan Tilt code for Motioneye
down_2
#!/usr/bin/env python
from __future__ import division
import time
import subprocess
with open('/etc/motioneye/vert_pos_2', 'r') as f:
vert_pos_2 = int(f.readline())
print vert_pos_2