breadone a révisé ce gist 1 week ago. Aller à la révision
1 file changed, 1 insertion, 1 deletion
esp01.yaml
| @@ -14,7 +14,7 @@ web_server: | |||
| 14 | 14 | # Enable Home Assistant API | |
| 15 | 15 | api: | |
| 16 | 16 | encryption: | |
| 17 | - | key: "0yZCNgoRa0oJ+jmPMF27jX+fvQFJPZRwlZ4e1PSrceM=" | |
| 17 | + | key: !key | |
| 18 | 18 | ||
| 19 | 19 | ota: | |
| 20 | 20 | - platform: esphome | |
breadone a révisé ce gist 1 week ago. Aller à la révision
Aucun changement
breadone a révisé ce gist 1 week ago. Aller à la révision
1 file changed, 71 insertions
esp01.yaml(fichier créé)
| @@ -0,0 +1,71 @@ | |||
| 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 | |