How to use the aioesphomeapi.api_pb2.CameraImageRequest function in aioesphomeapi

To help you get started, we’ve selected a few aioesphomeapi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github esphome / aioesphomeapi / aioesphomeapi / core.py View on Github external
30: pb.CoverCommandRequest,
    31: pb.FanCommandRequest,
    32: pb.LightCommandRequest,
    33: pb.SwitchCommandRequest,
    34: pb.SubscribeHomeassistantServicesRequest,
    35: pb.HomeassistantServiceResponse,
    36: pb.GetTimeRequest,
    37: pb.GetTimeResponse,
    38: pb.SubscribeHomeAssistantStatesRequest,
    39: pb.SubscribeHomeAssistantStateResponse,
    40: pb.HomeAssistantStateResponse,
    41: pb.ListEntitiesServicesResponse,
    42: pb.ExecuteServiceRequest,
    43: pb.ListEntitiesCameraResponse,
    44: pb.CameraImageResponse,
    45: pb.CameraImageRequest,
    46: pb.ListEntitiesClimateResponse,
    47: pb.ClimateStateResponse,
    48: pb.ClimateCommandRequest,
}
github esphome / aioesphomeapi / aioesphomeapi / client.py View on Github external
async def _request_image(self, *, single=False, stream=False):
        req = pb.CameraImageRequest()
        req.single = single
        req.stream = stream
        await self._connection.send_message(req)