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

 找回密码
 立即注册
楼主: 27hh

Sonoff Tasmota接入温湿度+光照+人体传感器并支持物理开关控制

  [复制链接]

0

主题

73

帖子

417

积分

中级会员

Rank: 3Rank: 3

积分
417
金钱
344
HASS币
0
发表于 2018-1-12 15:04:26 | 显示全部楼层
折腾不止!1
回复

使用道具 举报

5

主题

295

帖子

2062

积分

金牌会员

Rank: 6Rank: 6

积分
2062
金钱
1766
HASS币
0
发表于 2018-1-12 17:10:40 | 显示全部楼层
感谢分享
回复

使用道具 举报

0

主题

60

帖子

566

积分

高级会员

Rank: 4

积分
566
金钱
506
HASS币
0
发表于 2018-1-13 13:23:02 | 显示全部楼层
牛人一个!
回复

使用道具 举报

5

主题

120

帖子

253

积分

中级会员

Rank: 3Rank: 3

积分
253
金钱
133
HASS币
0
发表于 2018-1-14 19:09:16 | 显示全部楼层
  来看看,说得不错。
回复

使用道具 举报

0

主题

37

帖子

151

积分

注册会员

Rank: 2

积分
151
金钱
114
HASS币
0
发表于 2018-1-14 21:18:11 | 显示全部楼层
这是什么东西呢
回复

使用道具 举报

0

主题

14

帖子

96

积分

注册会员

Rank: 2

积分
96
金钱
82
HASS币
0
发表于 2018-1-15 02:13:33 来自手机 | 显示全部楼层
真是不得了啊
回复

使用道具 举报

16

主题

277

帖子

4000

积分

论坛元老

Rank: 8Rank: 8

积分
4000
金钱
3718
HASS币
0
发表于 2018-1-15 10:37:58 | 显示全部楼层
充分利用接口,感谢楼主
回复

使用道具 举报

4

主题

148

帖子

516

积分

高级会员

Rank: 4

积分
516
金钱
368
HASS币
0
发表于 2018-1-15 10:39:38 来自手机 | 显示全部楼层
学习研究一下
回复

使用道具 举报

10

主题

198

帖子

1791

积分

金牌会员

Rank: 6Rank: 6

积分
1791
金钱
1593
HASS币
0
发表于 2018-1-15 21:22:14 | 显示全部楼层
我用的SR505的人体传感器,按照你的方法设置,但为啥我HA里的IR始终显示状态一直是“ON”?
HA的日志如下:
下午9:20
IR changed to ON
下午9:14
IR changed to ON
下午9:10
Turn on light when there is movement turned on
下午9:10
Entrance light on automaion turned on
下午9:10
Turn off light 1 minutes after last movement turned on
下午9:10
Home Assistant started


以下是sonoff日志console中的内容:

00:00:00 Project sonoff Sonoff (Topic S8, Fallback DVES_A7AA0B, GroupTopic sonoffs) Version 5.8.0l
00:00:00 WIF: Connecting to AP1 NETGEAR68 in mode 11N as S8-2571...
00:00:05 WIF: Connected
00:00:05 DNS: Initialized
00:00:05 HTP: Web server active on S8-2571.local with IP address 192.168.1.6
13:48:56 MQT: Attempting connection...
13:48:57 DNS: Query done. MQTT services found 0
13:48:57 MQT: Connected
13:48:57 MQT: tele/S8/LWT = Online (retained)
13:48:57 MQT: cmnd/S8/POWER =
13:48:57 MQT: stat/S8/RESULT = {"POWER":"OFF"}
13:48:57 MQT: stat/S8/POWER = OFF
13:48:57 MQT: tele/S8/INFO1 = {"Module":"Sonoff Basic", "Version":"5.8.0l", "FallbackTopic":"DVES_A7AA0B", "GroupTopic":"sonoffs"}
13:48:57 MQT: tele/S8/INFO2 = {"WebServerMode":"Admin", "Hostname":"S8-2571", "IPAddress":"192.168.1.6"}
13:48:57 MQT: tele/S8/INFO3 = {"RestartReason":"Software/System restart"}
13:48:57 MQT: stat/S8/RESULT = {"Command":"Unknown"}
13:48:58 MQT: stat/S8/RESULT = {"POWER":"OFF"}
13:48:58 MQT: stat/S8/POWER = OFF
13:49:05 MQT: tele/S8/STATE = {"Time":"2018-01-15T13:49:05", "Uptime":0, "Vcc":3.176, "POWER":"OFF", "Wifi":{"AP":1, "SSId":"NETGEAR68", "RSSI":100, "APMac":"E8:FC:AF:89:E0:33"}}
13:49:05 MQT: tele/S8/SENSOR = {"Time":"2018-01-15T13:49:05", "Switch1":"ON", "Switch3":"ON"}
13:50:38 CMD: SwitchMode3 1
13:50:38 MQT: stat/S8/RESULT = {"SwitchMode3":1}
13:54:01 CMD: Switchtopic S8
13:54:01 MQT: stat/S8/RESULT = {"SwitchTopic":"S8"}
13:54:39 MQT: tele/S8/STATE = {"Time":"2018-01-15T13:54:39", "Uptime":0, "Vcc":3.175, "POWER":"OFF", "Wifi":{"AP":1, "SSId":"NETGEAR68", "RSSI":96, "APMac":"E8:FC:AF:89:E0:33"}}
13:54:39 MQT: tele/S8/SENSOR = {"Time":"2018-01-15T13:54:39", "Switch1":"ON", "Switch3":"ON"}
13:58:50 MQT: cmnd/S8/POWER3 = OFF
13:58:50 MQT: stat/S8/RESULT = {"Command":"Unknown"}
13:58:52 MQT: cmnd/S8/POWER3 = ON
13:58:52 MQT: stat/S8/RESULT = {"Command":"Unknown"}
13:59:54 APP: Serial logging disabled
14:00:11 MQT: tele/S8/STATE = {"Time":"2018-01-15T14:00:11", "Uptime":0, "Vcc":3.175, "POWER":"OFF", "Wifi":{"AP":1, "SSId":"NETGEAR68", "RSSI":100, "APMac":"E8:FC:AF:89:E0:33"}}
14:00:11 MQT: tele/S8/SENSOR = {"Time":"2018-01-15T14:00:11", "Switch1":"ON", "Switch3":"ON"}
14:00:57 MQT: cmnd/S8/POWER3 = OFF
14:00:57 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:00:58 MQT: cmnd/S8/POWER3 = ON
14:00:58 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:01:15 MQT: cmnd/S8/POWER3 = OFF
14:01:15 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:01:17 MQT: cmnd/S8/POWER3 = ON
14:01:17 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:01:25 MQT: cmnd/S8/POWER3 = OFF
14:01:25 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:01:26 MQT: cmnd/S8/POWER3 = ON
14:01:27 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:01:55 MQT: cmnd/S8/POWER3 = OFF
14:01:55 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:01:56 MQT: cmnd/S8/POWER3 = ON
14:01:56 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:02:00 MQT: tele/S8/UPTIME = {"Time":"2018-01-15T14:02:00", "Uptime":1}
14:02:18 MQT: cmnd/S8/POWER3 = OFF
14:02:18 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:02:20 MQT: cmnd/S8/POWER3 = ON
14:02:20 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:02:42 MQT: cmnd/S8/POWER3 = OFF
14:02:42 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:02:44 MQT: cmnd/S8/POWER3 = ON
14:02:44 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:04:00 MQT: cmnd/S8/POWER3 = OFF
14:04:00 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:04:02 MQT: cmnd/S8/POWER3 = ON
14:04:02 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:05:48 MQT: tele/S8/STATE = {"Time":"2018-01-15T14:05:48", "Uptime":1, "Vcc":3.175, "POWER":"OFF", "Wifi":{"AP":1, "SSId":"NETGEAR68", "RSSI":94, "APMac":"E8:FC:AF:89:E0:33"}}
14:05:48 MQT: tele/S8/SENSOR = {"Time":"2018-01-15T14:05:48", "Switch1":"ON", "Switch3":"ON"}
14:05:50 MQT: cmnd/S8/POWER3 = OFF
14:05:50 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:05:51 MQT: cmnd/S8/POWER3 = ON
14:05:51 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:06:34 MQT: cmnd/S8/POWER3 = OFF
14:06:35 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:06:36 MQT: cmnd/S8/POWER3 = ON
14:06:36 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:07:10 MQT: cmnd/S8/POWER3 = OFF
14:07:10 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:07:11 MQT: cmnd/S8/POWER3 = ON
14:07:11 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:07:42 MQT: cmnd/S8/POWER3 = OFF
14:07:42 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:07:44 MQT: cmnd/S8/POWER3 = ON
14:07:44 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:07:57 MQT: cmnd/S8/POWER3 = OFF
14:07:57 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:07:59 MQT: cmnd/S8/POWER3 = ON
14:07:59 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:10:21 MQT: cmnd/S8/POWER3 = OFF
14:10:21 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:10:23 MQT: cmnd/S8/POWER3 = ON
14:10:23 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:10:44 MQT: cmnd/S8/POWER3 = OFF
14:10:44 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:10:46 MQT: cmnd/S8/POWER3 = ON
14:10:46 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:11:15 MQT: cmnd/S8/POWER3 = OFF
14:11:15 MQT: stat/S8/RESULT = {"Command":"Unknown"}
14:11:16 MQT: cmnd/S8/POWER3 = ON
14:11:16 MQT: stat/S8/RESULT = {"Command":"Unknown"}
回复

使用道具 举报

32

主题

986

帖子

4233

积分

论坛元老

Rank: 8Rank: 8

积分
4233
金钱
3207
HASS币
110

教程狂人论坛风云人物

 楼主| 发表于 2018-1-15 22:22:14 | 显示全部楼层
sdhuaren 发表于 2018-1-15 21:22
我用的SR505的人体传感器,按照你的方法设置,但为啥我HA里的IR始终显示状态一直是“ON”?
HA的日志如下: ...

你应该是把人体设为power3了吧,日志上看没有问题,看看sonoff与ha的通讯有没有问题
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-22 14:26 , Processed in 0.074624 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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