esphome: name: esp01 friendly_name: esp01 esp8266: board: esp01_1m # Enable logging logger: web_server: port: 80 # Enable Home Assistant API api: encryption: key: "0yZCNgoRa0oJ+jmPMF27jX+fvQFJPZRwlZ4e1PSrceM=" ota: - platform: esphome password: "2a80b28e2421acb6450186a6c61d518f" wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Esp01 Fallback Hotspot" password: "t9LCsi5ZTxbV" captive_portal: # remote_receiver: # pin: GPIO0 # dump: raw remote_transmitter: pin: GPIO4 # RF uses a 100% carrier signal carrier_duty_percent: 100% button: - platform: template name: Big Light id: light on_press: - remote_transmitter.transmit_raw: code: [ -198, 685, -289, 773, -196, 835, -122, 1185, -6793, 910, -2978, 674, -298, 643, -328, 1545, -406, 2429, -488, 508, -464, 462, -510, 1424, -521, 452, -526, 1876, -1039, 896, -1016, 429, -577, 384, -592, 390, -584, 389, -584, 385, -586, 854, -107, 848, -130, 360, -619, 354, -617, 357, -615, 362, -608, 364, -7593, 414, -557, 882, -61, 892, -94, 391, -600, 371, -600, 373, -596, 853, -109, 379, -612, 830, -135, 830, -143, 347, -634, 341, -627, 348, -622, 819, -149, 340, -641, 330, -645, 813, -154, 810, -163, 327, -651, 808, -155, 810, -164, 323, -656, 316, -656, 310, -668, 319, -655, 315, -654, 795, -171, 794, -180, 312, -667, 300, -673, 302, -667, 305, -666, 306, -7644, 355, -615, 839, -123, 841, -134, 354, -629, 330, -640, 329, -644, 808, -158, 330, -656, 797, -168, 796, -178, 313, -665, 306, -669, 302, -664, 793, -172, 315, -664, 309, -669, 794, -167, 804, -169, 316, -666, 781, -183, 788, -185, 304, -677, 293, -678, 295, -682, 297, -674, 306, -669, 782, -177, 788, -188, 302, -678, 294, -678, 295, -676, 295, -677, 295] repeat: 1