|
发表于 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"} |
|