Feature: kasa camera motion switch
Test with device: model:KC420WS(US) dev_name:Kasa Cam Outdoor, 24/7 Recording hw_ver:1.0 type:IOT.IPCAMERA
A few interesting things about the device:
- The response is wrapped in an extra system object in the sys_info (see line #777)
- For motion, it sets last_activity_timestamp only, so motion inactive has to be scheduled
Note: Led on/off and Switch on/off commands not implemented.
New Device based on:
def driverVer() { return "6.7.1" } def type() { return "EM Plug" }
.. with a few modifications, of course.
I have created a test driver. It requires manual installation and if you want to set the camera settings, you will have to log into the Kasa Cloud. It is NOT part of the integration at this time (will transition after more testing).
- Install code
- Create virtual device
- enter IP address
- Save Preferences
- setPollInterval
If you want to control camera preferences:
- Select Enable CAM Setting Functions, Save preferences.
- Change settings as desired. Save Preferences.
- To disable cloud polling, simply deselect Enable CAM Setting functions.
ON/Off is only available through the cloud (when Enable CAM Setting Functions is true).
Link: https://raw.githubusercontent.com/DaveGut/Test-Code/master/Kasa_Camera.groovy