DaveGut / HubitatActive

Hubitat Environment Developments
64 stars 87 forks source link

Feature: kasa camera motion switch #31

Closed TonyFleisher closed 6 months ago

TonyFleisher commented 1 year ago

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 commented 1 year ago

New Device based on:

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

.. with a few modifications, of course.

DaveGut commented 1 year ago

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).

If you want to control camera preferences:

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