『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 8031|回复: 8

[技术探讨] Tasmota如何发送红外信号控制空调?

[复制链接]

57

主题

403

帖子

3041

积分

论坛元老

Rank: 8Rank: 8

积分
3041
金钱
2638
HASS币
0
发表于 2018-7-30 18:20:45 | 显示全部楼层 |阅读模式
如题,我接官方的方法,
https://github.com/altelch/SonoffIR

焊了一个红外发射的模块。用手机的摄像头试了这个模块,可以正常的点亮。

现在有一个问题就是Tasmota如何发送红外信号呢?
根据这个
https://github.com/arendst/Sonoff-Tasmota/wiki/Commands

好像只能发送这两个固定的信号
IRsend {"Protocol":"NEC","Bits":32,"Data":2170978686}
IRsend {"Protocol":"NEC","Bits":32,"Data":0x8166817E}

要如何才能发送学习到的红外码呢?
IMG_1266.jpg
回复

使用道具 举报

17

主题

335

帖子

2545

积分

金牌会员

Rank: 6Rank: 6

积分
2545
金钱
2210
HASS币
0
发表于 2018-7-30 18:26:46 | 显示全部楼层
静待结果
回复

使用道具 举报

8

主题

870

帖子

5218

积分

论坛元老

Rank: 8Rank: 8

积分
5218
金钱
4348
HASS币
0
发表于 2018-7-31 07:15:46 | 显示全部楼层
空调红外码好像要买的
回复

使用道具 举报

57

主题

403

帖子

3041

积分

论坛元老

Rank: 8Rank: 8

积分
3041
金钱
2638
HASS币
0
 楼主| 发表于 2018-7-31 09:40:52 | 显示全部楼层
新生活 发表于 2018-7-31 07:15
空调红外码好像要买的

我昨天看了Tasmota的说明,红外的现在好像不能发送你想要随便发的信号。只能按它固件的格式来发,支持的只有那几个设备而已。
要不可以用学习的办法把码学习下来,然后再发给空调。我只需要让空调远程启动在某一个状态就行,并不需要调节各种各校的参数。
回复

使用道具 举报

2

主题

71

帖子

826

积分

高级会员

Rank: 4

积分
826
金钱
754
HASS币
0
发表于 2018-8-1 08:34:13 | 显示全部楼层
静待结果 ,折腾过,无果
回复

使用道具 举报

34

主题

335

帖子

1848

积分

金牌会员

Rank: 6Rank: 6

积分
1848
金钱
1513
HASS币
0
发表于 2018-8-1 20:31:28 | 显示全部楼层
加油,
回复

使用道具 举报

8

主题

870

帖子

5218

积分

论坛元老

Rank: 8Rank: 8

积分
5218
金钱
4348
HASS币
0
发表于 2018-8-2 11:38:35 | 显示全部楼层
李丑男 发表于 2018-7-31 09:40
我昨天看了Tasmota的说明,红外的现在好像不能发送你想要随便发的信号。只能按它固件的格式来发,支持的 ...

那应该是Tasmota连接的红外模块的限制或者红外api的限制,如果是红外码的格式那转换下应该可以用,就像射频模块一样,可以多种格式转换
回复

使用道具 举报

4

主题

59

帖子

251

积分

中级会员

Rank: 3Rank: 3

积分
251
金钱
192
HASS币
0
发表于 2024-3-18 16:49:29 | 显示全部楼层
插眼 我试了很多 方法 esphome 也是 只能发送和接收。
解码要在 ha上实现。 比如空调这样的。。。我卡主了。哎。
回复

使用道具 举报

4

主题

59

帖子

251

积分

中级会员

Rank: 3Rank: 3

积分
251
金钱
192
HASS币
0
发表于 2024-6-28 13:42:32 | 显示全部楼层
04:05:42.531 MQT: tele/tasmota_ED6BE3/RESULT = {"IrReceived":{"Protocol":"KELON","Bits":48,"Data":"0xC2000683","DataLSB":"0x430060C1","Repeat":0,"IRHVAC":{"Vendor":"KELON","Model":-1,"Command":"Control","Mode":"Cool","Power":"On","Celsius":"On","Temp":30,"FanSpeed":"Auto","SwingV":"Auto","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"On","Filter":"Off","Clean":"Off","Beep":"On","Sleep":-1,"iFeel":"Off","SensorTemp":null}}}
04:06:40.380 MQT: tele/tasmota_ED6BE3/RESULT = {"IrReceived":{"Protocol":"KELON","Bits":48,"Data":"0x20000683","DataLSB":"0x40060C1","Repeat":0,"IRHVAC":{"Vendor":"KELON","Model":-1,"Command":"Control","Mode":"Heat","Power":"On","Celsius":"On","Temp":20,"FanSpeed":"Auto","SwingV":"Auto","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"On","Filter":"Off","Clean":"Off","Beep":"On","Sleep":-1,"iFeel":"Off","SensorTemp":null}}}
04:07:08.789 MQT: tele/tasmota_ED6BE3/RESULT = {"IrReceived":{"Protocol":"KELON","Bits":48,"Data":"0x71000683","DataLSB":"0x8E0060C1","Repeat":0,"IRHVAC":{"Vendor":"KELON","Model":-1,"Command":"Control","Mode":"Auto","Power":"On","Celsius":"On","Temp":25,"FanSpeed":"Auto","SwingV":"Auto","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"On","Filter":"Off","Clean":"Off","Beep":"On","Sleep":-1,"iFeel":"Off","SensorTemp":null}}}
04:07:12.879 MQT: tele/tasmota_ED6BE3/RESULT = {"IrReceived":{"Protocol":"KELON","Bits":48,"Data":"0x74030683","DataLSB":"0x2EC060C1","Repeat":0,"IRHVAC":{"Vendor":"KELON","Model":-1,"Command":"Control","Mode":"Fan","Power":"On","Celsius":"On","Temp":25,"FanSpeed":"Low","SwingV":"Auto","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"On","Filter":"Off","Clean":"Off","Beep":"On","Sleep":-1,"iFeel":"Off","SensorTemp":null}}}
04:07:16.354 MQT: tele/tasmota_ED6BE3/RESULT = {"IrReceived":{"Protocol":"KELON","Bits":48,"Data":"0x73000683","DataLSB":"0xCE0060C1","Repeat":0,"IRHVAC":{"Vendor":"KELON","Model":-1,"Command":"Control","Mode":"Dry","Power":"On","Celsius":"On","Temp":25,"FanSpeed":"Auto","SwingV":"Auto","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"On","Filter":"Off","Clean":"Off","Beep":"On","Sleep":-1,"iFeel":"Off","SensorTemp":null}}}
04:07:20.572 MQT: tele/tasmota_ED6BE3/RESULT = {"IrReceived":{"Protocol":"KELON","Bits":48,"Data":"0xC2000683","DataLSB":"0x430060C1","Repeat":0,"IRHVAC":{"Vendor":"KELON","Model":-1,"Command":"Control","Mode":"Cool","Power":"On","Celsius":"On","Temp":30,"FanSpeed":"Auto","SwingV":"Auto","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"On","Filter":"Off","Clean":"Off","Beep":"On","Sleep":-1,"iFeel":"Off","SensorTemp":null}}}
这是我接收到的红外空调码..
现在就是不知道怎么在ha上面 发送呢,
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 16:10 , Processed in 0.146379 second(s), 34 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表