[RELEASE] TP-LINK TAPO Plug, Switch, Bulb, Hub and Robovac Integration

My test device was a 210 (battery). Have yet to capture a ring status. What I need is a log after modification to the TpLink Camera Driver.

Line 345 Code, add to the second line, "log.warn devResp". to read:

def parse_getLastAlarmInfo(devResp) { // library marker davegut.tpLinkCamCommon, line 240
        log.warn devResp
	Map alarmData = devResp.system.last_alarm_info // library marker davegut.tpLinkCamCommon, line 241
	if (alarmData.last_alarm_time.toInteger() > state.lastAlarmTime) { // library marker davegut.tpLinkCamCommon, line 242
		state.lastAlarmTime = alarmData.last_alarm_time.toInteger() // library marker davegut.tpLinkCamCommon, line 243
		sendEvent(name: "motion", value: "active") // library marker davegut.tpLinkCamCommon, line 244
		runIn(30, setInactive) // library marker davegut.tpLinkCamCommon, line 245
	} // library marker davegut.tpLinkCamCommon, line 246
	return [alarmType: alarmData.last_alarm_type] // library marker davegut.tpLinkCamCommon, line 247
} // library marker davegut.tpLinkCamCommon, line 248

Disable polling in preferences. Then approach doorbell and quickly press the command POLL. Do the same for RING. Should see a warning message for each. THEN take out the updated line and reset the polling.

This will not instantly fix the issue, but will tell me what I need to do to fix (easy fix, just add attribute and have YOU test). One day after your response with data to fix. Update instructions then.

1 Like