Skip to content
Jupiter documentation
Menu

Take a screenshot

Capture the TV screen to a file in /media or as base64 in a service response.

bscpylgtv.take_screenshot captures the current screen as a JPEG.

Save to a file#

Home Assistant checks the path with hass.config.is_allowed_path before it writes. The path must resolve inside an existing allowed directory. /media and <config>/www are allowed by default. Add other directories to allowlist_external_dirs.

Get the image in the response#

Leave out filename and call the service with a response variable:

Errors#

The integration has no Screenshot button. It was removed because it wrote into the public www folder. Call the service from an automation or script.

Source: belikh/ha-lg-webos-tv HEAD