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 ESPHome Camera #22107

Merged
merged 3 commits into from Mar 17, 2019

Conversation

Projects
None yet
3 participants
@OttoWinter
Copy link
Contributor

OttoWinter commented Mar 16, 2019

Description:

Adds cameras from ESPHome to HA with the native API.

Most of the logic is handled in aioesphomeapi package (images are large and therefore need to be transported in several packages)

Some of the supported boards have inadequate cooling and tend to overheat. So the camera is only active when something is requesting an image. The camera outputs individual JPEG images (encoded in the camera module itself) which are transmitted as a stream (so very much like MJPEG)

There are two types of images for this integration.

  • async_camera_image - A still image, will trigger one image to be taken.
  • handle_async_mjpeg_stream - An image stream, will hold the image active for 5s after each request_image_stream call.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

OttoWinter added some commits Mar 16, 2019

@balloob balloob merged commit cf5ba7d into home-assistant:dev Mar 17, 2019

4 checks passed

Hound No violations found. Woof!
cla-bot Everyone involved has signed the CLA
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage decreased (-0.09%) to 92.681%
Details

@wafflebot wafflebot bot removed the in progress label Mar 17, 2019

@balloob balloob referenced this pull request Apr 3, 2019

Merged

0.91.0 #22688

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.