jfarmer08 / homebridge-wyze-smart-home

Wyze Smart Home plugin for Homebridge.
MIT License
93 stars 14 forks source link

Add support for Wyze Cam Floodlight Pro #233

Open mpl241 opened 3 months ago

mpl241 commented 3 months ago

Is your feature request related to a problem? Please describe: This feature is not related to a problem.

Describe the solution you'd like: I would like to control the Wyze Cam Floodlight Pro using Homebridge in the same way the v2 and v3 cameras are controllable. Specially, I want to turn the camera on and off.

Describe alternatives you've considered: none

Additional context: My v2 and v3 cameras are controllable using this plugin. I would also like to control the floodlight camera. The Homebridge logs show this:

[3/10/2024, 12:33:43 PM] [Wyze] [Camera] Unsupported device type: (Name: Floodlight Cam) (MAC: LD_CFP_zzzzzzzzzzzz) (Model: LD_CFP)

Please let me know if you need additional information.

-Matt

github-actions[bot] commented 3 months ago

Message that will be displayed on users' first issue

jfarmer08 commented 2 months ago

Can you update the enums.js file with the correct model number and test? Then report back.

image

mpl241 commented 2 months ago

@jfarmer08, thanks for the help. I added an entry for WyzeCamFloodlightPro to the enums.js file, and the camera is now controllable using Homebridge.

const CameraModels = {
  WyzeCamv1Hd: "WYZEC1",
  WyzeCamV2: "WYZEC1-JZ",
  WyzeCamV3: "WYZE_CAKP2JFUS",
  WyzeCamV3Pro: "HL_CAM3P",
  WyzeCamFloodlight: "WYZE_CAKP2JFUS",
  WyzeCamPan: "WYZECP1_JEF",
  WyzeCamPanv2: "HL_PAN2",
  WyzeCamPanv3: "HL_PAN3",
  WyzeCamOutdoor: "WVOD1",
  WyzeCamOutdoor2: "HL_WCO2",
  WyzeCamFloodlightPro: "LD_CFP"
}

Thanks for your help!

[4/19/2024, 3:44:37 PM] [Wyze] [Camera] [Privacy Switch] Retrieving previous service for LD_CFP_zzzzzzzzzzzz (Zzzz Cam)
[4/19/2024, 3:44:37 PM] [Wyze] [Camera] [Privacy Switch] Adding service for LD_CFP_zzzzzzzzzzzz (Zzzz Cam)

-Matt