Skip to content

Instantly share code, notes, and snippets.

@EverythingSmartHome
EverythingSmartHome / esp32-voice.yaml
Last active May 18, 2024 16:49
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:
#Rhasspy home assistant script download (for home assistant OS only):
mkdir -p /share/rhasspy/profiles/en/slot_programs/hass/
cd /share/rhasspy/profiles/en/slot_programs/hass
wget https://raw.githubusercontent.com/rhasspy/rhasspy/master/examples/homeassistant/profile/slot_programs/hass/entities
chmod +x entities
ls -lah entities
@EverythingSmartHome
EverythingSmartHome / Sonoff NSPanel Flashing commands.txt
Last active December 3, 2022 12:28
Sonoff NSPanel Flashing commands
Get Flash Size and info:
esptool.py flash_id
Read backup flash from esp32 with 4MB of flash size:
esptool.py read_flash 0x0 0x400000 nspanel.bin
Tasmota template for NSPanel:
{"NAME":"NSPanel","GPIO":[0,0,0,0,3872,0,0,0,0,0,32,0,0,0,0,225,0,480,224,1,0,0,0,33,0,0,0,0,0,0,0,0,0,0,4736,0],"FLAG":0,"BASE":1,"CMND":"ADCParam 2,64000,10000,3950 | Sleep 0 | BuzzerPWM 1"}
@EverythingSmartHome
EverythingSmartHome / hyperhdr-install.sh
Last active May 6, 2024 17:22
Installs HyperHDR v16.0.0.1
sudo apt update && sudo apt upgrade -y
wget https://github.com/awawa-dev/HyperHDR/releases/download/v16.0.0.1/HyperHDR-16.0.0.1-Linux-`uname -m`.deb
sudo apt install ./HyperHDR-16.0.0.1-Linux-`uname -m`.deb
sudo sed -i '/^User/d' /etc/systemd/system/hyperhdr\@.service
sudo systemctl daemon-reload
sudo service hyperhdr@pi restart
sudo service hyperhdr@pi status