This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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}' |