[RELEASE] WyzeHub - Wyze Device Integration (minimal cam support)

Hi,

I'm trying to replace my finicky IFTTT applets that enable and disable motion detection for my Wyze cameras. In the Wyze app this corresponds to the toggle under Event recording/Record an event when camera/Detects motion.

There appears to be 3 issues that are preventing the migration:

  1. While the Set Motion Recording button yields the proper outcome from the Hubitat device page, issuing the setMotionRecording(true|false) from webCoRE appears to be a no-op: no impact on the device in Hubitat or the Wyze app and no logs for the device in Hubitat. These are the webCoRE logs:
+167ms	║║Executed physical command [Wyze - OfficePan].setMotionRecording(false) (114ms)
+168ms	║║Executed [Wyze - OfficePan].setMotionRecording (115ms)
  1. The setMotionNotification command in webCoRE doesn't accept parameters while it requires true or false from the device page.

  2. (minor) It looks like motion notification (Notifications in Wyze app) and motion recording (Event recording in Wyze app) are inverted in Hubitat.

When toggling it in the Wyze app, the outcome is as follows in the Hubitat device view (after hitting Refresh):

Wyze App Hubitat device current state
ON motion_notification : true; motion_recording : true
OFF motion_notification : false; motion_recording : true