HubitatActive icon indicating copy to clipboard operation
HubitatActive copied to clipboard

Feature: kasa camera motion switch

Open TonyFleisher opened this issue 3 years ago • 2 comments

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:

  1. The response is wrapped in an extra system object in the sys_info (see line #777)
  2. 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.

TonyFleisher avatar Oct 17 '22 01:10 TonyFleisher

New Device based on:

def driverVer() { return "6.7.1" } def type() { return "EM Plug" }

.. with a few modifications, of course.

TonyFleisher avatar Oct 17 '22 01:10 TonyFleisher

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

DaveGut avatar Oct 23 '22 16:10 DaveGut