How to Check Camera Availability History in Home Assistant

When a camera disappears and then quietly returns, the first useful question is when Home Assistant stopped seeing it. Check the camera entity’s state and history before restarting anything. A timeline is less dramatic than reboot roulette, but usually more useful.

This method can show periods when Home Assistant considered an entity unavailable. It cannot, on its own, tell you whether the camera, Frigate, go2rtc or the network caused the interruption.

What you need

  • Access to Home Assistant and Developer Tools.
  • A camera entity already added to Home Assistant. Use your own entity; there is no universal entity ID to copy.
  • History available for that entity. Recorder settings and retention affect what you can see.
  • Optional access to Frigate for comparison.

Find the availability timeline

  1. Find your camera entity. Open Developer Tools, choose States and search for the entity. If you are unsure which one belongs to the camera, look for it under its device or integration in Settings. The entity name on your system is a site-specific detail, not a setting to copy from this article.
  2. Check its current state. An unavailable state means Home Assistant currently considers the entity unavailable. Another state does not guarantee a fresh picture or a working recording. A state label is useful, but it is not a crystal ball.
  3. Look at its history. Open the entity’s history, or find it in Home Assistant’s History view. Look for unavailable periods and note their start and end times. This gives you a window for checking other evidence.
  4. Compare with Frigate. If Frigate is accessible during a problem, check its view of the same camera and note whether it shows a current image or an error. A difference between Frigate and Home Assistant can narrow the investigation, but it does not prove the cause.

Test the check

During a naturally occurring interruption, check the entity state, then revisit its history after the state changes. If an unavailable interval appears, compare its times with relevant integration or service logs. Check that the times and time zones line up before drawing conclusions.

If no interval appears, check Recorder settings and whether the event is within the retained history. The entity may be excluded from recording, or the relevant data may no longer be retained. If the entity stays available but the image is stale, investigate the stream separately.

Before sharing logs

This procedure has not been verified for your installation. Menu labels and available history can vary with the Home Assistant version and configuration, and a timeline alone does not confirm a fix. Remove camera names and locations, IP addresses, passwords, keys and other identifying details before sharing screenshots or logs.

How to Redact a Screenshot Before Sharing It

A screenshot can explain a problem quickly, right up until it also explains your account details to everyone. The goal is a shareable PNG with sensitive details covered by solid, opaque blocks. A blur might look discreet while leaving the text readable, which rather defeats the point.

What you need

  • GIMP installed on your computer.
  • A screenshot saved locally, with permission to share its non-sensitive contents.
  • A private place for the original and a separate location for the redacted export.

Redact and export the image

Menu wording can vary between GIMP versions. Start with a screenshot file rather than an editable project containing additional layers.

  1. Open the screenshot in GIMP. Keep the original unchanged. Scan the entire image for names, email addresses, account details, tokens and private addresses. Check browser tabs and notifications too. They have a talent for contributing when nobody asked.
  2. Set a solid foreground colour. Use the foreground colour control to choose opaque black. An opaque block is easier to assess than a decorative blur.
  3. Cover each sensitive area. Use the Rectangle Select tool to select an area extending beyond the sensitive detail. Make sure selection feathering is off. Select the image layer and choose Edit > Fill with FG Color. Repeat for every area, then choose Select > None. Leave a margin around each detail so the edges do not give it away.
  4. Export a separate PNG. Choose File > Export As and use a new filename ending in .png. Keep the original and any editable project private: an editable file may retain content underneath a cover.

Test before sharing

Open the exported PNG in an image viewer, not just in the GIMP editing window. Zoom in on every block and its edges. If any detail is visible, enlarge the cover and export again. Scan the rest of the image and the filename too. A neat black rectangle does little for privacy if the title bar contains the same information.

Troubleshooting and remaining checks

If a fill does not appear, check that the image layer is selected and not locked. If a block looks translucent or has soft edges, check the foreground colour’s opacity and selection feathering, then replace the cover and inspect a fresh export.

A visual check cannot establish what metadata the PNG contains. Review the available export options and inspect the exported file with a metadata viewer that supports PNG. If you cannot verify whether sensitive metadata remains, do not share the file. For anything especially sensitive, I would avoid sharing the screenshot altogether.

How to Check Portfolio Allocation Drift in a Spreadsheet

A portfolio can drift away from its target allocation even when you leave it alone. A spreadsheet can show the difference; it cannot decide what you should do about it. The aim here is a repeatable comparison, not a recommendation to buy or sell.

What you need

  • A spreadsheet application.
  • Recent values for the holdings and cash included in your check, plus an independently obtained total for the same accounts and date.
  • Your existing target percentages, if you have them.

Use one currency throughout. If conversion is needed, record the exchange rate and date. Keep account numbers and other identifying details out of the sheet.

Build the spreadsheet

  1. Set the scope. Decide which accounts and holdings to include, and note any exclusions. Your independent total must cover the same scope. These instructions assume positive category values and a non-zero total.
  2. Enter categories and values. Put the headings Category, Value, Current, Target and Difference in cells A1 to E1. Use rows 2 to 4 for your categories and their values. These rows are placeholders: add rows if needed, and adjust the formula ranges below. Count each holding once. For mixed funds, use a published breakdown or note that your classification is approximate.
  3. Calculate the total. In B5, enter the formula below. It adds the three category values and provides the denominator for the allocation calculation.
=SUM(B2:B4)
  1. Calculate current percentages. In C2, enter the formula below and copy it down to C4. The dollar signs keep the total fixed as you copy. Format C2 to C4 as percentages. If B5 is zero, check the values before dividing.
=B2/$B$5
  1. Compare with your target. Enter your existing target percentages in D2 to D4. In E2, enter the formula below, copy it down to E4 and format those cells as percentages. A positive difference means above target; a negative one means below. Read the difference in percentage points. If you have no target, leave these columns blank.
=C2-D2

Test and troubleshoot

For a worked test, use values of 600, 300 and 100 in B2 to B4, with targets of 50%, 30% and 20% in D2 to D4. The total should be 1,000, the current allocations 60%, 30% and 10%, and the differences 10, 0 and minus 10 percentage points. Replace these illustrative values with your own afterwards.

For your real data, compare B5 with the independently obtained total. Investigate a mismatch by checking scope, dates, currency conversion, missed holdings and duplicates. Current percentages should total approximately 100%, allowing for rounding, but that check alone cannot reveal a holding missing from both the numerator and denominator. Targets should also total 100% for the same scope.

Limits of the comparison

This is a general method, not a tested template for your accounts. Provider values, fund breakdowns and any costs or tax implications need separate checking. I would treat the result as a starting point for questions, not a verdict. The spreadsheet is only as clever as the numbers it is given, which is an uncomfortable standard for all of us.

How to Check a Download’s SHA-256 Checksum on Linux Mint

A download can finish without being the file you expected. A SHA-256 checksum gives you a practical way to compare it with the publisher’s copy. It is not a malware detector, but it can catch a damaged or substituted download.

What you need

Use a Linux Mint desktop, the downloaded file and a SHA-256 checksum from the publisher’s official source. Make sure the checksum is for the exact file and version you downloaded. A checksum for a different release is about as helpful as a key for someone else’s shed.

You also need the sha256sum utility. Open a terminal and check:

command -v sha256sum

If this prints a path, the utility is available. If it prints nothing, check for the coreutils package in Mint’s software manager using your configured trusted repositories.

Check the file

  1. Find the published checksum. Look for a SHA-256 value alongside the download on the publisher’s official site. Keep it handy for comparison. It should be 64 hexadecimal characters.
  2. Calculate your file’s checksum. In the command below, replace PATH_TO_DOWNLOADED_FILE with the actual path to your file. This is a placeholder, not a literal filename. Keep the double quotes, particularly if the path contains spaces.
    sha256sum -- "PATH_TO_DOWNLOADED_FILE"
  3. Compare the values. The command prints a checksum followed by the filename. Compare the checksum with the publisher’s value, not the filename. Letter case does not matter, but every hexadecimal character must otherwise match.

Test and troubleshoot

If the values match, the downloaded bytes match the published SHA-256 value. If they differ, do not install or open the file yet. Check that you used the right file, version and checksum type, then download it again from the official source and repeat the comparison.

If the terminal reports that the file cannot be found, check the path and spelling. If it reports permission denied, check that your user can read the file. A command error is not a checksum mismatch.

What remains unverified

This check does not prove the file is safe or that the publisher’s site is uncompromised. An attacker who can replace both the file and its published checksum can make them match. Where the publisher provides a verified signature, check that too using its instructions. This article does not verify any particular download or publisher’s checksum.