esphome:
name: esphome-yongsu
friendly_name: ESPHome_YongSu
on_boot:
priority: 249
then:
- light.turn_on: status_led1
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "dxmLMeeu4TQLv/rYQ89rau6/FUMDctYplFHwpOz7vvc="
reboot_timeout: 0s
on_client_connected:
- light.turn_on: status_led1
on_client_disconnected:
- light.turn_off: status_led1
ota:
password: "abb3cf27762459f2a35f9af83d483e81"
wifi:
ssid: "12345678"
password: ""
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "esphome_yongsu"
password: ""
captive_portal:
# 让设备开启网页功能
web_server:
port: 80
output:
- platform: gpio
id: led1
pin:
number: GPIO2
inverted: True
light:
- platform: status_led
id: status_led1
output: led1
internal: True
# remote_receiver:
# pin:
# number: GPIO14
# inverted: True
# mode: INPUT_PULLUP
# dump: raw
# idle: 40ms
remote_transmitter:
pin: GPIO4
carrier_duty_percent: 50%
button:
# 风扇加档
- platform: template
name: "Speed Up"
on_press:
- remote_transmitter.transmit_raw:
code: [1352, -367, 1356, -395, 484, -1249, 1321, -430, 1293, -430, 449, -1278, 451, -1273, 449, -1274, 449, -1274, 451, -1273, 449, -1275, 1292, -7119, 1293, -432, 1291, -430, 450, -1282, 1292, -431, 1292, -430, 450, -1278, 450, -1274, 449, -1274, 449, -1275, 449, -1274, 450, -1274, 1292, -7123, 1292, -431, 1292, -430, 449, -1283, 1293, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1274, 450, -1274, 449, -1274, 450, -1277, 1289, -7122, 1291, -431, 1295, -428, 449, -1283, 1292, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1275, 449, -1275, 448, -1275, 450, -1274, 1292, -7127, 1287, -431, 1291, -431, 449, -1283, 1291, -433, 1291, -431, 450, -1278, 449, -1275, 451, -1273, 448, -1275, 448, -1275, 448, -1277, 1290]
carrier_frequency: 38kHz
# 风扇减档
- platform: template
name: "Speed Down"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -372, 1350, -398, 481, -1252, 1320, -405, 1318, -404, 480, -1249, 475, -1248, 1319, -404, 476, -1248, 480, -1244, 475, -1248, 476, -7936, 1318, -405, 1318, -405, 475, -1256, 1318, -405, 1319, -404, 475, -1253, 475, -1249, 1318, -404, 476, -1248, 475, -1248, 476, -1248, 475, -7942, 1318, -405, 1317, -405, 477, -1255, 1318, -405, 1318, -405, 475, -1253, 475, -1249, 1318, -404, 475, -1249, 475, -1249, 475, -1249, 474, -7941, 1318, -406, 1317, -404, 475, -1258, 1318, -404, 1318, -405, 475, -1253, 475, -1249, 1318, -405, 474, -1250, 474, -1249, 475, -1249, 474, -7945, 1313, -407, 1316, -405, 474, -1259, 1316, -406, 1317, -405, 475, -1254, 474, -1250, 1317, -406, 474, -1250, 473, -1250, 474, -1253, 470]
carrier_frequency: 38kHz
# 风扇定时
- platform: template
name: "Timer"
on_press:
- remote_transmitter.transmit_raw:
code: [1352, -371, 1349, -401, 477, -1256, 1318, -430, 1292, -430, 450, -1279, 449, -1274, 449, -1274, 449, -1275, 1292, -430, 449, -1274, 449, -7964, 1291, -431, 1292, -430, 449, -1283, 1291, -433, 1290, -430, 449, -1279, 448, -1275, 449, -1274, 449, -1275, 1291, -430, 450, -1274, 448, -7965, 1292, -430, 1292, -431, 449, -1282, 1292, -431, 1291, -431, 449, -1279, 449, -1273, 449, -1275, 449, -1274, 1292, -430, 449, -1274, 449, -7965, 1292, -431, 1291, -431, 449, -1283, 1291, -434, 1289, -430, 450, -1278, 449, -1275, 448, -1275, 449, -1274, 1291, -431, 449, -1275, 448, -7966, 1291, -432, 1295, -426, 449, -1284, 1291, -431, 1291, -431, 448, -1280, 448, -1274, 449, -1275, 449, -1274, 1291, -431, 451, -1273, 448]
carrier_frequency: 38kHz
# 风扇摇头
- platform: template
name: "Oscillation"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -371, 1352, -397, 482, -1251, 1320, -406, 1317, -433, 445, -1255, 474, -1249, 474, -1274, 1292, -430, 450, -1273, 450, -1250, 473, -7964, 1292, -407, 1316, -430, 450, -1283, 1292, -430, 1293, -430, 449, -1279, 450, -1274, 449, -1277, 1289, -430, 450, -1274, 449, -1274, 450, -7966, 1291, -431, 1292, -430, 450, -1283, 1292, -430, 1292, -430, 449, -1280, 449, -1274, 449, -1274, 1293, -429, 450, -1274, 449, -1275, 449, -7966, 1292, -430, 1292, -431, 449, -1282, 1293, -430, 1292, -431, 449, -1279, 449, -1274, 449, -1275, 1291, -430, 450, -1274, 449, -1274, 451, -7965, 1291, -431, 1291, -431, 449, -1283, 1291, -433, 1290, -431, 449, -1279, 448, -1275, 449, -1275, 1292, -430, 449, -1275, 449, -1275, 450]
carrier_frequency: 38kHz
# 风扇待机
- platform: template
name: "Standby"
on_press:
- remote_transmitter.transmit_raw:
code: [1350, -372, 1351, -397, 483, -1252, 1318, -406, 1317, -405, 475, -1253, 475, -1248, 475, -1249, 475, -1248, 475, -1249, 1318, -404, 475, -7938, 1317, -406, 1317, -405, 475, -1257, 1318, -405, 1318, -404, 475, -1253, 475, -1248, 475, -1249, 475, -1248, 475, -1253, 1314, -404, 475, -7941, 1317, -405, 1318, -405, 474, -1257, 1318, -405, 1317, -405, 475, -1253, 474, -1249, 475, -1248, 474, -1250, 474, -1249, 1318, -404, 475, -7940, 1316, -431, 1292, -406, 474, -1258, 1317, -406, 1317, -405, 474, -1254, 475, -1249, 474, -1249, 474, -1249, 475, -1249, 1317, -405, 474, -7942, 1317, -406, 1317, -405, 474, -1258, 1317, -406, 1317, -406, 474, -1254, 474, -1249, 474, -1249, 475, -1251, 472, -1250, 1317, -406, 473]
carrier_frequency: 38kHz
# 风扇1档
- platform: template
name: "Speed level 1"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -372, 1350, -398, 481, -1252, 1320, -405, 1318, -404, 480, -1249, 475, -1248, 1319, -404, 476, -1248, 480, -1244, 475, -1248, 476, -7936, 1318, -405, 1318, -405, 475, -1256, 1318, -405, 1319, -404, 475, -1253, 475, -1249, 1318, -404, 476, -1248, 475, -1248, 476, -1248, 475, -7942, 1318, -405, 1317, -405, 477, -1255, 1318, -405, 1318, -405, 475, -1253, 475, -1249, 1318, -404, 475, -1249, 475, -1249, 475, -1249, 474, -7941, 1318, -406, 1317, -404, 475, -1258, 1318, -404, 1318, -405, 475, -1253, 475, -1249, 1318, -405, 474, -1250, 474, -1249, 475, -1249, 474, -7945, 1313, -407, 1316, -405, 474, -1259, 1316, -406, 1317, -405, 475, -1254, 474, -1250, 1317, -406, 474, -1250, 473, -1250, 474, -1253, 470]
carrier_frequency: 38kHz
repeat:
times: 11
wait_time: 300ms
- delay:
300ms
- remote_transmitter.transmit_raw:
code: [1352, -367, 1356, -395, 484, -1249, 1321, -430, 1293, -430, 449, -1278, 451, -1273, 449, -1274, 449, -1274, 451, -1273, 449, -1275, 1292, -7119, 1293, -432, 1291, -430, 450, -1282, 1292, -431, 1292, -430, 450, -1278, 450, -1274, 449, -1274, 449, -1275, 449, -1274, 450, -1274, 1292, -7123, 1292, -431, 1292, -430, 449, -1283, 1293, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1274, 450, -1274, 449, -1274, 450, -1277, 1289, -7122, 1291, -431, 1295, -428, 449, -1283, 1292, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1275, 449, -1275, 448, -1275, 450, -1274, 1292, -7127, 1287, -431, 1291, -431, 449, -1283, 1291, -433, 1291, -431, 450, -1278, 449, -1275, 451, -1273, 448, -1275, 448, -1275, 448, -1277, 1290]
carrier_frequency: 38kHz
repeat:
times: 0
wait_time: 300ms
# 风扇2档
- platform: template
name: "Speed level 2"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -372, 1350, -398, 481, -1252, 1320, -405, 1318, -404, 480, -1249, 475, -1248, 1319, -404, 476, -1248, 480, -1244, 475, -1248, 476, -7936, 1318, -405, 1318, -405, 475, -1256, 1318, -405, 1319, -404, 475, -1253, 475, -1249, 1318, -404, 476, -1248, 475, -1248, 476, -1248, 475, -7942, 1318, -405, 1317, -405, 477, -1255, 1318, -405, 1318, -405, 475, -1253, 475, -1249, 1318, -404, 475, -1249, 475, -1249, 475, -1249, 474, -7941, 1318, -406, 1317, -404, 475, -1258, 1318, -404, 1318, -405, 475, -1253, 475, -1249, 1318, -405, 474, -1250, 474, -1249, 475, -1249, 474, -7945, 1313, -407, 1316, -405, 474, -1259, 1316, -406, 1317, -405, 475, -1254, 474, -1250, 1317, -406, 474, -1250, 473, -1250, 474, -1253, 470]
carrier_frequency: 38kHz
repeat:
times: 11
wait_time: 300ms
- delay:
300ms
- remote_transmitter.transmit_raw:
code: [1352, -367, 1356, -395, 484, -1249, 1321, -430, 1293, -430, 449, -1278, 451, -1273, 449, -1274, 449, -1274, 451, -1273, 449, -1275, 1292, -7119, 1293, -432, 1291, -430, 450, -1282, 1292, -431, 1292, -430, 450, -1278, 450, -1274, 449, -1274, 449, -1275, 449, -1274, 450, -1274, 1292, -7123, 1292, -431, 1292, -430, 449, -1283, 1293, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1274, 450, -1274, 449, -1274, 450, -1277, 1289, -7122, 1291, -431, 1295, -428, 449, -1283, 1292, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1275, 449, -1275, 448, -1275, 450, -1274, 1292, -7127, 1287, -431, 1291, -431, 449, -1283, 1291, -433, 1291, -431, 450, -1278, 449, -1275, 451, -1273, 448, -1275, 448, -1275, 448, -1277, 1290]
carrier_frequency: 38kHz
repeat:
times: 1
wait_time: 300ms
# 风扇3档
- platform: template
name: "Speed level 3"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -372, 1350, -398, 481, -1252, 1320, -405, 1318, -404, 480, -1249, 475, -1248, 1319, -404, 476, -1248, 480, -1244, 475, -1248, 476, -7936, 1318, -405, 1318, -405, 475, -1256, 1318, -405, 1319, -404, 475, -1253, 475, -1249, 1318, -404, 476, -1248, 475, -1248, 476, -1248, 475, -7942, 1318, -405, 1317, -405, 477, -1255, 1318, -405, 1318, -405, 475, -1253, 475, -1249, 1318, -404, 475, -1249, 475, -1249, 475, -1249, 474, -7941, 1318, -406, 1317, -404, 475, -1258, 1318, -404, 1318, -405, 475, -1253, 475, -1249, 1318, -405, 474, -1250, 474, -1249, 475, -1249, 474, -7945, 1313, -407, 1316, -405, 474, -1259, 1316, -406, 1317, -405, 475, -1254, 474, -1250, 1317, -406, 474, -1250, 473, -1250, 474, -1253, 470]
carrier_frequency: 38kHz
repeat:
times: 11
wait_time: 300ms
- delay:
300ms
- remote_transmitter.transmit_raw:
code: [1352, -367, 1356, -395, 484, -1249, 1321, -430, 1293, -430, 449, -1278, 451, -1273, 449, -1274, 449, -1274, 451, -1273, 449, -1275, 1292, -7119, 1293, -432, 1291, -430, 450, -1282, 1292, -431, 1292, -430, 450, -1278, 450, -1274, 449, -1274, 449, -1275, 449, -1274, 450, -1274, 1292, -7123, 1292, -431, 1292, -430, 449, -1283, 1293, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1274, 450, -1274, 449, -1274, 450, -1277, 1289, -7122, 1291, -431, 1295, -428, 449, -1283, 1292, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1275, 449, -1275, 448, -1275, 450, -1274, 1292, -7127, 1287, -431, 1291, -431, 449, -1283, 1291, -433, 1291, -431, 450, -1278, 449, -1275, 451, -1273, 448, -1275, 448, -1275, 448, -1277, 1290]
carrier_frequency: 38kHz
repeat:
times: 2
wait_time: 300ms
# 风扇4档
- platform: template
name: "Speed level 4"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -372, 1350, -398, 481, -1252, 1320, -405, 1318, -404, 480, -1249, 475, -1248, 1319, -404, 476, -1248, 480, -1244, 475, -1248, 476, -7936, 1318, -405, 1318, -405, 475, -1256, 1318, -405, 1319, -404, 475, -1253, 475, -1249, 1318, -404, 476, -1248, 475, -1248, 476, -1248, 475, -7942, 1318, -405, 1317, -405, 477, -1255, 1318, -405, 1318, -405, 475, -1253, 475, -1249, 1318, -404, 475, -1249, 475, -1249, 475, -1249, 474, -7941, 1318, -406, 1317, -404, 475, -1258, 1318, -404, 1318, -405, 475, -1253, 475, -1249, 1318, -405, 474, -1250, 474, -1249, 475, -1249, 474, -7945, 1313, -407, 1316, -405, 474, -1259, 1316, -406, 1317, -405, 475, -1254, 474, -1250, 1317, -406, 474, -1250, 473, -1250, 474, -1253, 470]
carrier_frequency: 38kHz
repeat:
times: 11
wait_time: 300ms
- delay:
300ms
- remote_transmitter.transmit_raw:
code: [1352, -367, 1356, -395, 484, -1249, 1321, -430, 1293, -430, 449, -1278, 451, -1273, 449, -1274, 449, -1274, 451, -1273, 449, -1275, 1292, -7119, 1293, -432, 1291, -430, 450, -1282, 1292, -431, 1292, -430, 450, -1278, 450, -1274, 449, -1274, 449, -1275, 449, -1274, 450, -1274, 1292, -7123, 1292, -431, 1292, -430, 449, -1283, 1293, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1274, 450, -1274, 449, -1274, 450, -1277, 1289, -7122, 1291, -431, 1295, -428, 449, -1283, 1292, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1275, 449, -1275, 448, -1275, 450, -1274, 1292, -7127, 1287, -431, 1291, -431, 449, -1283, 1291, -433, 1291, -431, 450, -1278, 449, -1275, 451, -1273, 448, -1275, 448, -1275, 448, -1277, 1290]
carrier_frequency: 38kHz
repeat:
times: 3
wait_time: 300ms
# 风扇5档
- platform: template
name: "Speed level 5"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -372, 1350, -398, 481, -1252, 1320, -405, 1318, -404, 480, -1249, 475, -1248, 1319, -404, 476, -1248, 480, -1244, 475, -1248, 476, -7936, 1318, -405, 1318, -405, 475, -1256, 1318, -405, 1319, -404, 475, -1253, 475, -1249, 1318, -404, 476, -1248, 475, -1248, 476, -1248, 475, -7942, 1318, -405, 1317, -405, 477, -1255, 1318, -405, 1318, -405, 475, -1253, 475, -1249, 1318, -404, 475, -1249, 475, -1249, 475, -1249, 474, -7941, 1318, -406, 1317, -404, 475, -1258, 1318, -404, 1318, -405, 475, -1253, 475, -1249, 1318, -405, 474, -1250, 474, -1249, 475, -1249, 474, -7945, 1313, -407, 1316, -405, 474, -1259, 1316, -406, 1317, -405, 475, -1254, 474, -1250, 1317, -406, 474, -1250, 473, -1250, 474, -1253, 470]
carrier_frequency: 38kHz
repeat:
times: 11
wait_time: 300ms
- delay:
300ms
- remote_transmitter.transmit_raw:
code: [1352, -367, 1356, -395, 484, -1249, 1321, -430, 1293, -430, 449, -1278, 451, -1273, 449, -1274, 449, -1274, 451, -1273, 449, -1275, 1292, -7119, 1293, -432, 1291, -430, 450, -1282, 1292, -431, 1292, -430, 450, -1278, 450, -1274, 449, -1274, 449, -1275, 449, -1274, 450, -1274, 1292, -7123, 1292, -431, 1292, -430, 449, -1283, 1293, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1274, 450, -1274, 449, -1274, 450, -1277, 1289, -7122, 1291, -431, 1295, -428, 449, -1283, 1292, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1275, 449, -1275, 448, -1275, 450, -1274, 1292, -7127, 1287, -431, 1291, -431, 449, -1283, 1291, -433, 1291, -431, 450, -1278, 449, -1275, 451, -1273, 448, -1275, 448, -1275, 448, -1277, 1290]
carrier_frequency: 38kHz
repeat:
times: 4
wait_time: 300ms
# 风扇6档
- platform: template
name: "Speed level 6"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -372, 1350, -398, 481, -1252, 1320, -405, 1318, -404, 480, -1249, 475, -1248, 1319, -404, 476, -1248, 480, -1244, 475, -1248, 476, -7936, 1318, -405, 1318, -405, 475, -1256, 1318, -405, 1319, -404, 475, -1253, 475, -1249, 1318, -404, 476, -1248, 475, -1248, 476, -1248, 475, -7942, 1318, -405, 1317, -405, 477, -1255, 1318, -405, 1318, -405, 475, -1253, 475, -1249, 1318, -404, 475, -1249, 475, -1249, 475, -1249, 474, -7941, 1318, -406, 1317, -404, 475, -1258, 1318, -404, 1318, -405, 475, -1253, 475, -1249, 1318, -405, 474, -1250, 474, -1249, 475, -1249, 474, -7945, 1313, -407, 1316, -405, 474, -1259, 1316, -406, 1317, -405, 475, -1254, 474, -1250, 1317, -406, 474, -1250, 473, -1250, 474, -1253, 470]
carrier_frequency: 38kHz
repeat:
times: 11
wait_time: 300ms
- delay:
300ms
- remote_transmitter.transmit_raw:
code: [1352, -367, 1356, -395, 484, -1249, 1321, -430, 1293, -430, 449, -1278, 451, -1273, 449, -1274, 449, -1274, 451, -1273, 449, -1275, 1292, -7119, 1293, -432, 1291, -430, 450, -1282, 1292, -431, 1292, -430, 450, -1278, 450, -1274, 449, -1274, 449, -1275, 449, -1274, 450, -1274, 1292, -7123, 1292, -431, 1292, -430, 449, -1283, 1293, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1274, 450, -1274, 449, -1274, 450, -1277, 1289, -7122, 1291, -431, 1295, -428, 449, -1283, 1292, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1275, 449, -1275, 448, -1275, 450, -1274, 1292, -7127, 1287, -431, 1291, -431, 449, -1283, 1291, -433, 1291, -431, 450, -1278, 449, -1275, 451, -1273, 448, -1275, 448, -1275, 448, -1277, 1290]
carrier_frequency: 38kHz
repeat:
times: 5
wait_time: 300ms
# 风扇7档
- platform: template
name: "Speed level 7"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -372, 1350, -398, 481, -1252, 1320, -405, 1318, -404, 480, -1249, 475, -1248, 1319, -404, 476, -1248, 480, -1244, 475, -1248, 476, -7936, 1318, -405, 1318, -405, 475, -1256, 1318, -405, 1319, -404, 475, -1253, 475, -1249, 1318, -404, 476, -1248, 475, -1248, 476, -1248, 475, -7942, 1318, -405, 1317, -405, 477, -1255, 1318, -405, 1318, -405, 475, -1253, 475, -1249, 1318, -404, 475, -1249, 475, -1249, 475, -1249, 474, -7941, 1318, -406, 1317, -404, 475, -1258, 1318, -404, 1318, -405, 475, -1253, 475, -1249, 1318, -405, 474, -1250, 474, -1249, 475, -1249, 474, -7945, 1313, -407, 1316, -405, 474, -1259, 1316, -406, 1317, -405, 475, -1254, 474, -1250, 1317, -406, 474, -1250, 473, -1250, 474, -1253, 470]
carrier_frequency: 38kHz
repeat:
times: 11
wait_time: 300ms
- delay:
300ms
- remote_transmitter.transmit_raw:
code: [1352, -367, 1356, -395, 484, -1249, 1321, -430, 1293, -430, 449, -1278, 451, -1273, 449, -1274, 449, -1274, 451, -1273, 449, -1275, 1292, -7119, 1293, -432, 1291, -430, 450, -1282, 1292, -431, 1292, -430, 450, -1278, 450, -1274, 449, -1274, 449, -1275, 449, -1274, 450, -1274, 1292, -7123, 1292, -431, 1292, -430, 449, -1283, 1293, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1274, 450, -1274, 449, -1274, 450, -1277, 1289, -7122, 1291, -431, 1295, -428, 449, -1283, 1292, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1275, 449, -1275, 448, -1275, 450, -1274, 1292, -7127, 1287, -431, 1291, -431, 449, -1283, 1291, -433, 1291, -431, 450, -1278, 449, -1275, 451, -1273, 448, -1275, 448, -1275, 448, -1277, 1290]
carrier_frequency: 38kHz
repeat:
times: 6
wait_time: 300ms
# 风扇8档
- platform: template
name: "Speed level 8"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -372, 1350, -398, 481, -1252, 1320, -405, 1318, -404, 480, -1249, 475, -1248, 1319, -404, 476, -1248, 480, -1244, 475, -1248, 476, -7936, 1318, -405, 1318, -405, 475, -1256, 1318, -405, 1319, -404, 475, -1253, 475, -1249, 1318, -404, 476, -1248, 475, -1248, 476, -1248, 475, -7942, 1318, -405, 1317, -405, 477, -1255, 1318, -405, 1318, -405, 475, -1253, 475, -1249, 1318, -404, 475, -1249, 475, -1249, 475, -1249, 474, -7941, 1318, -406, 1317, -404, 475, -1258, 1318, -404, 1318, -405, 475, -1253, 475, -1249, 1318, -405, 474, -1250, 474, -1249, 475, -1249, 474, -7945, 1313, -407, 1316, -405, 474, -1259, 1316, -406, 1317, -405, 475, -1254, 474, -1250, 1317, -406, 474, -1250, 473, -1250, 474, -1253, 470]
carrier_frequency: 38kHz
repeat:
times: 11
wait_time: 300ms
- delay:
300ms
- remote_transmitter.transmit_raw:
code: [1352, -367, 1356, -395, 484, -1249, 1321, -430, 1293, -430, 449, -1278, 451, -1273, 449, -1274, 449, -1274, 451, -1273, 449, -1275, 1292, -7119, 1293, -432, 1291, -430, 450, -1282, 1292, -431, 1292, -430, 450, -1278, 450, -1274, 449, -1274, 449, -1275, 449, -1274, 450, -1274, 1292, -7123, 1292, -431, 1292, -430, 449, -1283, 1293, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1274, 450, -1274, 449, -1274, 450, -1277, 1289, -7122, 1291, -431, 1295, -428, 449, -1283, 1292, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1275, 449, -1275, 448, -1275, 450, -1274, 1292, -7127, 1287, -431, 1291, -431, 449, -1283, 1291, -433, 1291, -431, 450, -1278, 449, -1275, 451, -1273, 448, -1275, 448, -1275, 448, -1277, 1290]
carrier_frequency: 38kHz
repeat:
times: 7
wait_time: 300ms
# 风扇9档
- platform: template
name: "Speed level 9"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -372, 1350, -398, 481, -1252, 1320, -405, 1318, -404, 480, -1249, 475, -1248, 1319, -404, 476, -1248, 480, -1244, 475, -1248, 476, -7936, 1318, -405, 1318, -405, 475, -1256, 1318, -405, 1319, -404, 475, -1253, 475, -1249, 1318, -404, 476, -1248, 475, -1248, 476, -1248, 475, -7942, 1318, -405, 1317, -405, 477, -1255, 1318, -405, 1318, -405, 475, -1253, 475, -1249, 1318, -404, 475, -1249, 475, -1249, 475, -1249, 474, -7941, 1318, -406, 1317, -404, 475, -1258, 1318, -404, 1318, -405, 475, -1253, 475, -1249, 1318, -405, 474, -1250, 474, -1249, 475, -1249, 474, -7945, 1313, -407, 1316, -405, 474, -1259, 1316, -406, 1317, -405, 475, -1254, 474, -1250, 1317, -406, 474, -1250, 473, -1250, 474, -1253, 470]
carrier_frequency: 38kHz
repeat:
times: 11
wait_time: 300ms
- delay:
300ms
- remote_transmitter.transmit_raw:
code: [1352, -367, 1356, -395, 484, -1249, 1321, -430, 1293, -430, 449, -1278, 451, -1273, 449, -1274, 449, -1274, 451, -1273, 449, -1275, 1292, -7119, 1293, -432, 1291, -430, 450, -1282, 1292, -431, 1292, -430, 450, -1278, 450, -1274, 449, -1274, 449, -1275, 449, -1274, 450, -1274, 1292, -7123, 1292, -431, 1292, -430, 449, -1283, 1293, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1274, 450, -1274, 449, -1274, 450, -1277, 1289, -7122, 1291, -431, 1295, -428, 449, -1283, 1292, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1275, 449, -1275, 448, -1275, 450, -1274, 1292, -7127, 1287, -431, 1291, -431, 449, -1283, 1291, -433, 1291, -431, 450, -1278, 449, -1275, 451, -1273, 448, -1275, 448, -1275, 448, -1277, 1290]
carrier_frequency: 38kHz
repeat:
times: 8
wait_time: 300ms
# 风扇10档
- platform: template
name: "Speed level 10"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -372, 1350, -398, 481, -1252, 1320, -405, 1318, -404, 480, -1249, 475, -1248, 1319, -404, 476, -1248, 480, -1244, 475, -1248, 476, -7936, 1318, -405, 1318, -405, 475, -1256, 1318, -405, 1319, -404, 475, -1253, 475, -1249, 1318, -404, 476, -1248, 475, -1248, 476, -1248, 475, -7942, 1318, -405, 1317, -405, 477, -1255, 1318, -405, 1318, -405, 475, -1253, 475, -1249, 1318, -404, 475, -1249, 475, -1249, 475, -1249, 474, -7941, 1318, -406, 1317, -404, 475, -1258, 1318, -404, 1318, -405, 475, -1253, 475, -1249, 1318, -405, 474, -1250, 474, -1249, 475, -1249, 474, -7945, 1313, -407, 1316, -405, 474, -1259, 1316, -406, 1317, -405, 475, -1254, 474, -1250, 1317, -406, 474, -1250, 473, -1250, 474, -1253, 470]
carrier_frequency: 38kHz
repeat:
times: 11
wait_time: 300ms
- delay:
300ms
- remote_transmitter.transmit_raw:
code: [1352, -367, 1356, -395, 484, -1249, 1321, -430, 1293, -430, 449, -1278, 451, -1273, 449, -1274, 449, -1274, 451, -1273, 449, -1275, 1292, -7119, 1293, -432, 1291, -430, 450, -1282, 1292, -431, 1292, -430, 450, -1278, 450, -1274, 449, -1274, 449, -1275, 449, -1274, 450, -1274, 1292, -7123, 1292, -431, 1292, -430, 449, -1283, 1293, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1274, 450, -1274, 449, -1274, 450, -1277, 1289, -7122, 1291, -431, 1295, -428, 449, -1283, 1292, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1275, 449, -1275, 448, -1275, 450, -1274, 1292, -7127, 1287, -431, 1291, -431, 449, -1283, 1291, -433, 1291, -431, 450, -1278, 449, -1275, 451, -1273, 448, -1275, 448, -1275, 448, -1277, 1290]
carrier_frequency: 38kHz
repeat:
times: 9
wait_time: 300ms
# 风扇11档
- platform: template
name: "Speed level 11"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -372, 1350, -398, 481, -1252, 1320, -405, 1318, -404, 480, -1249, 475, -1248, 1319, -404, 476, -1248, 480, -1244, 475, -1248, 476, -7936, 1318, -405, 1318, -405, 475, -1256, 1318, -405, 1319, -404, 475, -1253, 475, -1249, 1318, -404, 476, -1248, 475, -1248, 476, -1248, 475, -7942, 1318, -405, 1317, -405, 477, -1255, 1318, -405, 1318, -405, 475, -1253, 475, -1249, 1318, -404, 475, -1249, 475, -1249, 475, -1249, 474, -7941, 1318, -406, 1317, -404, 475, -1258, 1318, -404, 1318, -405, 475, -1253, 475, -1249, 1318, -405, 474, -1250, 474, -1249, 475, -1249, 474, -7945, 1313, -407, 1316, -405, 474, -1259, 1316, -406, 1317, -405, 475, -1254, 474, -1250, 1317, -406, 474, -1250, 473, -1250, 474, -1253, 470]
carrier_frequency: 38kHz
repeat:
times: 11
wait_time: 300ms
- delay:
300ms
- remote_transmitter.transmit_raw:
code: [1352, -367, 1356, -395, 484, -1249, 1321, -430, 1293, -430, 449, -1278, 451, -1273, 449, -1274, 449, -1274, 451, -1273, 449, -1275, 1292, -7119, 1293, -432, 1291, -430, 450, -1282, 1292, -431, 1292, -430, 450, -1278, 450, -1274, 449, -1274, 449, -1275, 449, -1274, 450, -1274, 1292, -7123, 1292, -431, 1292, -430, 449, -1283, 1293, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1274, 450, -1274, 449, -1274, 450, -1277, 1289, -7122, 1291, -431, 1295, -428, 449, -1283, 1292, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1275, 449, -1275, 448, -1275, 450, -1274, 1292, -7127, 1287, -431, 1291, -431, 449, -1283, 1291, -433, 1291, -431, 450, -1278, 449, -1275, 451, -1273, 448, -1275, 448, -1275, 448, -1277, 1290]
carrier_frequency: 38kHz
repeat:
times: 10
wait_time: 300ms
# 风扇12档
- platform: template
name: "Speed level 12"
on_press:
- remote_transmitter.transmit_raw:
code: [1351, -372, 1350, -398, 481, -1252, 1320, -405, 1318, -404, 480, -1249, 475, -1248, 1319, -404, 476, -1248, 480, -1244, 475, -1248, 476, -7936, 1318, -405, 1318, -405, 475, -1256, 1318, -405, 1319, -404, 475, -1253, 475, -1249, 1318, -404, 476, -1248, 475, -1248, 476, -1248, 475, -7942, 1318, -405, 1317, -405, 477, -1255, 1318, -405, 1318, -405, 475, -1253, 475, -1249, 1318, -404, 475, -1249, 475, -1249, 475, -1249, 474, -7941, 1318, -406, 1317, -404, 475, -1258, 1318, -404, 1318, -405, 475, -1253, 475, -1249, 1318, -405, 474, -1250, 474, -1249, 475, -1249, 474, -7945, 1313, -407, 1316, -405, 474, -1259, 1316, -406, 1317, -405, 475, -1254, 474, -1250, 1317, -406, 474, -1250, 473, -1250, 474, -1253, 470]
carrier_frequency: 38kHz
repeat:
times: 11
wait_time: 300ms
- delay:
300ms
- remote_transmitter.transmit_raw:
code: [1352, -367, 1356, -395, 484, -1249, 1321, -430, 1293, -430, 449, -1278, 451, -1273, 449, -1274, 449, -1274, 451, -1273, 449, -1275, 1292, -7119, 1293, -432, 1291, -430, 450, -1282, 1292, -431, 1292, -430, 450, -1278, 450, -1274, 449, -1274, 449, -1275, 449, -1274, 450, -1274, 1292, -7123, 1292, -431, 1292, -430, 449, -1283, 1293, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1274, 450, -1274, 449, -1274, 450, -1277, 1289, -7122, 1291, -431, 1295, -428, 449, -1283, 1292, -431, 1291, -431, 449, -1279, 449, -1274, 449, -1275, 449, -1275, 448, -1275, 450, -1274, 1292, -7127, 1287, -431, 1291, -431, 449, -1283, 1291, -433, 1291, -431, 450, -1278, 449, -1275, 451, -1273, 448, -1275, 448, -1275, 448, -1277, 1290]
carrier_frequency: 38kHz
repeat:
times: 11
wait_time: 300ms