Skip to content

Instantly share code, notes, and snippets.

@Palakis
Palakis / lsc_pir.yaml
Last active March 3, 2023 14:28
ESPhome on Action LSC Motion Sensor - Tuya TYWE3S (ESP8266-based)
# This device has two chips:
# - an ESP8266-based WiFi Module that talks to Tuya's cloud service (when running the stock firmware) and the on-board MCU.
# - an unmarked Tuya microcontroller (a.k.a MCU) that acts as a power management chip and wakes up the WiFi Module
# when motion is detected by the PIR sensor. The WiFi Module has to talk to the MCU upon power-on to prevent immediate power-off.
substitutions:
device_name: CHANGEME
esphome:
name: '${device_name}'