Compare commits
1 commit
main
...
feat/venti
Author | SHA1 | Date | |
---|---|---|---|
|
d4e1e3c28d |
3 changed files with 38 additions and 32 deletions
18
README.md
18
README.md
|
@ -11,12 +11,12 @@ http://ir-blaster.n39.eu
|
|||
```
|
||||
2. esphome installieren
|
||||
```bash
|
||||
pip install esphome
|
||||
pip installv esphome
|
||||
```
|
||||
3. `secrets.yaml` anlegen:
|
||||
```yaml
|
||||
WifiPassword: "changeme"
|
||||
OtaPassword: "changeme"
|
||||
OtaPassword: "chamgeme"
|
||||
```
|
||||
4. config hochladen
|
||||
```bash
|
||||
|
@ -37,16 +37,4 @@ http://ir-blaster.n39.eu
|
|||
* OK (0x2FD847B)
|
||||
* Lauter (0x2FD58A7)
|
||||
* Leiser (0x2FD7887)
|
||||
* On/Off (0x2FD48B7)
|
||||
|
||||
## Multisync X401S
|
||||
* Taste 0
|
||||
* Taste 1
|
||||
* Taste 2
|
||||
* Taste 3
|
||||
* Taste 4
|
||||
* Taste 5
|
||||
* Taste 6
|
||||
* Taste 7
|
||||
* Taste 8
|
||||
* Taste 9
|
||||
* On/Off (0x2FD48B7)
|
39
config.yaml
39
config.yaml
|
@ -55,8 +55,39 @@ button:
|
|||
- platform: template
|
||||
name: "Ventilator An/Aus"
|
||||
on_press:
|
||||
- remote_transmitter.transmit_pronto:
|
||||
data: "0000 006D 0018 0000 002E 0013 002E 0013 000E 0034 002D 0013 002E 0013 000E 0034 000D 0034 000D 0034 000D 0034 000D 0034 000D 0034 002E 0117 002E 0013 002E 0013 000E 0034 002E 0013 002E 0013 000E 0034 000D 0034 000D 0034 000D 0034 000D 0034 000D 0034 002E 0181 06C3"
|
||||
- remote_transmitter.transmit_raw:
|
||||
code: [1212, -473, 1214, -470, 372, -1313, 1217, -473, 1214, -470, 374, -1312, 380, -1314, 370, -1310, 378, -1309, 374, -1314, 373, -1313, 1217, -7222, 1212, -475, 1212, -469, 378, -1310, 1222, -464, 1224, -466, 371, -1316, 371, -1314, 372, -1315,372, -1313, 374, -1312, 374, -1319, 1211, -7217, 1291, -397, 1218, -467, 376, -1310, 1293, -394, 1217, -470, 377, -1309, 380, -1307, 373, -1314, 373, -1314, 447, -1240, 372, -1312, 1221, -7214, 1218, -468, 1216, -471, 373, -1315, 1215, -470, 1216,-470, 375, -1315, 370, -1313, 373, -1287, 401, -1313, 372, -1320, 367, -1317, 1213]
|
||||
repeat:
|
||||
times: 5
|
||||
wait_time: 16ms
|
||||
carrier_frequency: 38kHz
|
||||
- platform: template
|
||||
name: "Ventilator Oscil"
|
||||
on_press:
|
||||
- remote_transmitter.transmit_raw:
|
||||
code: [1215, -470, 1223, -463, 375, -1312, 1217, -469, 1223, -465, 372, -1314, 373, -1320, 1210, -470, 373, -1314, 373, -1314, 377, -1309, 372, -8061, 1218, -468, 1217, -475, 369, -1312, 1216, -477, 1210, -470, 373, -1313, 373, -1314, 1218, -468,375, -1312, 374, -1313, 372, -1317, 370, -8061, 1215, -473, 1215, -468, 373, -1314, 1216, -475, 1212, -470, 373, -1313, 374, -1313, 1217, -470, 378, -1308, 373, -1313, 374, -1313, 373, -8060, 1221, -470, 1212, -470, 379, -1309, 1215, -470, 1219, -467,374, -1314, 372, -1314, 1216, -472, 371, -1315, 377, -1309, 374, -1311, 375, -8059, 1216, -470, 1216, -470, 374, -1313, 1218, -468, 1217, -470, 373, -1313, 376, -1312, 1216, -470, 373, -1316, 370, -1313, 373, -1314, 373, -8065, 1212, -473, 1217, -466,379, -1310, 1214, -471, 1216, -470, 378, -1308, 373, -1315, 1216, -475, 367, -1316, 371, -1313, 374, -1313, 377]
|
||||
repeat:
|
||||
times: 5
|
||||
wait_time: 16ms
|
||||
carrier_frequency: 38kHz
|
||||
- platform: template
|
||||
name: "Ventilator Speed"
|
||||
on_press:
|
||||
- remote_transmitter.transmit_raw:
|
||||
code: [1220, -468, 1215, -469, 377, -1317, 1212, -468, 1217, -444, 399, -1316, 371, -1313, 376, -1311, 373, -1314, 373, -1314, 1216, -470, 374, -8060, 1217, -469, 1222, -464, 374, -1313, 1224, -463, 1217, -476, 370, -1317, 370, -1317, 366, -1317,370, -1290, 396, -1314, 1220, -466, 373, -8060, 1222, -465, 1216, -469, 374, -1312, 1218, -469, 1218, -468, 374, -1313, 381, -1306, 377, -1309, 374, -1320, 370, -1310, 1216, -471, 373, -8060, 1215, -470, 1216, -445, 398, -1317, 1213, -476, 1212, -468,376, -1311, 372, -1313, 374, -1312, 374, -1314, 380, -1309, 1213, -470, 374]
|
||||
repeat:
|
||||
times: 5
|
||||
wait_time: 16ms
|
||||
carrier_frequency: 38kHz
|
||||
- platform: template
|
||||
name: "Ventilator Mode"
|
||||
on_press:
|
||||
- remote_transmitter.transmit_raw:
|
||||
code: [1217, -473, 1213, -475, 368, -1292, 1238, -470, 1217, -474, 374, -1310, 373, -1315, 371, -1319, 371, -1310, 1216, -471, 373, -1313, 373, -8062, 1215, -471, 1223, -465, 374, -1313, 1215, -471, 1214, -471, 373, -1313, 379, -1308, 373, -1321,367, -1319, 1210, -470, 374, -1320, 370, -8064, 1208, -470, 1220, -467, 373, -1290, 1241, -469, 1217, -470, 373, -1314, 372, -1314, 373, -1314, 373, -1320, 1210, -471, 372, -1316, 371, -8060, 1216, -473, 1214, -471, 372, -1313, 1217, -475, 1211, -470,373, -1318, 369, -1314, 372, -1316, 371, -1313, 1217, -470, 378, -1317, 371]
|
||||
repeat:
|
||||
times: 5
|
||||
wait_time: 16ms
|
||||
carrier_frequency: 38kHz
|
||||
- platform: template
|
||||
name: "MultisyncX401S Taste 0"
|
||||
on_press:
|
||||
|
@ -154,7 +185,7 @@ remote_receiver:
|
|||
number: GPIO2
|
||||
inverted: True
|
||||
mode: INPUT_PULLUP
|
||||
dump: all
|
||||
dump: raw
|
||||
# Change to dump: all to see all protocols, use dump: raw to see raw codes
|
||||
|
||||
remote_transmitter:
|
||||
|
@ -168,4 +199,4 @@ sensor:
|
|||
name: Uptime Sensor
|
||||
- platform: wifi_signal
|
||||
name: "WiFi Signal Sensor"
|
||||
update_interval: 60s
|
||||
update_interval: 60s
|
|
@ -1,13 +0,0 @@
|
|||
import requests
|
||||
import time
|
||||
from tqdm import tqdm
|
||||
|
||||
url = "http://ir-blaster.n39.eu/button/multisyncx401s_taste_%s/press"
|
||||
|
||||
for i in tqdm(range(0000, 10000)):
|
||||
num_str = f"{i:04d}"
|
||||
print(f"Sending: {num_str}")
|
||||
for digit in num_str:
|
||||
requests.post(url % digit)
|
||||
time.sleep(0.35)
|
||||
time.sleep(0.35)
|
Loading…
Reference in a new issue