Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add camera #39

Merged
merged 25 commits into from
Aug 8, 2024
Merged

Add camera #39

merged 25 commits into from
Aug 8, 2024

Conversation

JELoohuis
Copy link
Collaborator

@JELoohuis JELoohuis commented Jul 6, 2024

  • Added support for the camera category of devices.
    The camera device class is quite extensive, and some parts quite complex to integrate with Homey, so I stuck to those that could be readily tested with my device.

    Images are not yet supported due to Homey not having the correct rights in the Tuya API.
    It may be possible to decrypt the images sent in event messages, but this will require figuring out the exact encryption parameters used.
    The key for this is readily available through the Tuya API as local_key in the device details.

    Since the camera device class has a huge amount of capabilities,
    those that were deemed unlikely to be changed by hand often were implemented as settings.
    For those settings that may be changed semi-regularly flows were added.
    This is of course a compromise, as the settings that are not applicable cannot be disabled, unlike capabilities.

    The zoom control/stop and battery level are not supported by my test device, so they are untested.
    It would be nice to receive feedback on these from people with devices that do support them.

@WeeJeWel

This comment was marked as resolved.

@bobvandevijver bobvandevijver added the enhancement New feature or request label Jul 22, 2024
@bobvandevijver bobvandevijver linked an issue Jul 24, 2024 that may be closed by this pull request
@bobvandevijver bobvandevijver added this to the Release 1.2.0 milestone Jul 29, 2024
drivers/camera/device.js Outdated Show resolved Hide resolved
drivers/camera/device.js Outdated Show resolved Hide resolved
drivers/camera/device.js Outdated Show resolved Hide resolved
drivers/camera/device.js Outdated Show resolved Hide resolved
drivers/camera/device.js Outdated Show resolved Hide resolved
drivers/camera/driver.flow.compose.json Show resolved Hide resolved
drivers/camera/driver.js Outdated Show resolved Hide resolved
drivers/camera/driver.js Outdated Show resolved Hide resolved
drivers/camera/driver.js Outdated Show resolved Hide resolved
lib/TuyaOAuth2Client.js Outdated Show resolved Hide resolved
@JELoohuis JELoohuis force-pushed the add-camera branch 4 times, most recently from c9f8252 to 7433e40 Compare August 8, 2024 13:07
@JELoohuis JELoohuis marked this pull request as ready for review August 8, 2024 13:17
@bobvandevijver bobvandevijver merged commit f232c8f into athombv:master Aug 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

Ostaniot wireless indoor PTZ camera
3 participants