esp01.yaml
· 2.0 KiB · YAML
Sin formato
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
| 1 | esphome: |
| 2 | name: esp01 |
| 3 | friendly_name: esp01 |
| 4 | |
| 5 | esp8266: |
| 6 | board: esp01_1m |
| 7 | |
| 8 | # Enable logging |
| 9 | logger: |
| 10 | |
| 11 | web_server: |
| 12 | port: 80 |
| 13 | |
| 14 | # Enable Home Assistant API |
| 15 | api: |
| 16 | encryption: |
| 17 | key: "0yZCNgoRa0oJ+jmPMF27jX+fvQFJPZRwlZ4e1PSrceM=" |
| 18 | |
| 19 | ota: |
| 20 | - platform: esphome |
| 21 | password: "2a80b28e2421acb6450186a6c61d518f" |
| 22 | |
| 23 | wifi: |
| 24 | ssid: !secret wifi_ssid |
| 25 | password: !secret wifi_password |
| 26 | |
| 27 | # Enable fallback hotspot (captive portal) in case wifi connection fails |
| 28 | ap: |
| 29 | ssid: "Esp01 Fallback Hotspot" |
| 30 | password: "t9LCsi5ZTxbV" |
| 31 | |
| 32 | captive_portal: |
| 33 | |
| 34 | # remote_receiver: |
| 35 | # pin: GPIO0 |
| 36 | # dump: raw |
| 37 | |
| 38 | remote_transmitter: |
| 39 | pin: GPIO4 |
| 40 | # RF uses a 100% carrier signal |
| 41 | carrier_duty_percent: 100% |
| 42 | |
| 43 | button: |
| 44 | - platform: template |
| 45 | name: Big Light |
| 46 | id: light |
| 47 | on_press: |
| 48 | - remote_transmitter.transmit_raw: |
| 49 | code: [ |
| 50 | -198, 685, -289, 773, -196, 835, -122, 1185, -6793, 910, |
| 51 | -2978, 674, -298, 643, -328, 1545, -406, 2429, -488, 508, |
| 52 | -464, 462, -510, 1424, -521, 452, -526, 1876, -1039, 896, |
| 53 | -1016, 429, -577, 384, -592, 390, -584, 389, -584, 385, |
| 54 | -586, 854, |
| 55 | -107, 848, -130, 360, -619, 354, -617, 357, -615, 362, |
| 56 | -608, 364, -7593, 414, -557, 882, -61, 892, -94, 391, |
| 57 | -600, 371, -600, 373, -596, 853, -109, 379, -612, 830, |
| 58 | -135, 830, -143, 347, -634, 341, -627, 348, -622, 819, |
| 59 | -149, 340, -641, 330, -645, 813, |
| 60 | -154, 810, -163, 327, -651, 808, -155, 810, -164, 323, |
| 61 | -656, 316, -656, 310, -668, 319, -655, 315, -654, 795, |
| 62 | -171, 794, -180, 312, -667, 300, -673, 302, -667, 305, |
| 63 | -666, 306, -7644, 355, -615, 839, -123, 841, -134, 354, |
| 64 | -629, 330, -640, 329, -644, |
| 65 | 808, -158, 330, -656, 797, -168, 796, -178, 313, -665, |
| 66 | 306, -669, 302, -664, 793, -172, 315, -664, 309, -669, |
| 67 | 794, -167, 804, -169, 316, -666, 781, -183, 788, -185, |
| 68 | 304, -677, 293, -678, 295, -682, 297, -674, 306, -669, |
| 69 | 782, -177, 788, -188, 302, -678, |
| 70 | 294, -678, 295, -676, 295, -677, 295] |
| 71 | repeat: 1 |
| 72 |