Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungWe Built a CLI to Find Out If You’re Overpaying for Claude(24.09.2026 um 04:35 Uhr)
Sichere ProgrammierungMy own sandbox was killing my agent's shell, and the exit code hid it(24.09.2026 um 04:38 Uhr)
Sichere ProgrammierungHow three OSLabs engineers built a CLI to catch you overpaying Claude(24.09.2026 um 04:45 Uhr)
Sichere ProgrammierungBreaking CI Guards on Purpose to Prove They Can Fail(24.09.2026 um 05:00 Uhr)
IT Security NachrichtenLangfristige Updatefähigkeit als Pflicht(24.09.2026 um 05:03 Uhr)
Sichere ProgrammierungWe Built a CLI to Find Out If You’re Overpaying for Claude(24.09.2026 um 04:35 Uhr)
Sichere ProgrammierungMy own sandbox was killing my agent's shell, and the exit code hid it(24.09.2026 um 04:38 Uhr)
Sichere ProgrammierungHow three OSLabs engineers built a CLI to catch you overpaying Claude(24.09.2026 um 04:45 Uhr)
Sichere ProgrammierungBreaking CI Guards on Purpose to Prove They Can Fail(24.09.2026 um 05:00 Uhr)
IT Security NachrichtenLangfristige Updatefähigkeit als Pflicht(24.09.2026 um 05:03 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Using Raspberry Pi 4, Raspberry Pi OS, and Docker to Connect Home Assistant with a Eufy IndoorCam 2K Pan & Tilt and Save Images When a Pet Is Detected

I wanted to connect an Anker Eufy IndoorCam 2K Pan & Tilt to Home Assistant and automatically save an image whenever my pet is detected. This article explains how to build that setup on a Raspberry Pi 4 running Raspberry Pi OS with…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

I wanted to connect an Anker Eufy IndoorCam 2K Pan & Tilt to Home Assistant and automatically save an image whenever my pet is detected.



This article explains how to build that setup on a Raspberry Pi 4 running Raspberry Pi OS with Docker.



I’ll start with the practical setup steps needed to get everything working, then summarize the common issues and questions that tend to come up along the way.









What this setup does



The goal is straightforward. We want to create the following flow:




  1. Run Home Assistant in Docker on a Raspberry Pi 4

  2. Run a separate websocket bridge for Eufy

  3. Install the Eufy Security custom integration in Home Assistant

  4. Create an automation that saves the camera’s Event Image whenever a pet is detected



The overall structure looks like this:




Raspberry Pi OS 64-bit
└─ Docker / Docker Compose
├─ Home Assistant Container
└─ eufy-security-ws

Home Assistant
├─ HACS
├─ Eufy Security custom integration
└─ automation
petDetected → save Event Image as snapshot












Conclusion first



Yes, this setup works on Raspberry Pi 4 + Raspberry Pi OS + Docker.



The main points are:




  • Use Raspberry Pi OS 64-bit

  • Run Home Assistant as a container

  • Use the eufy_security custom integration, not the standard integration

  • Run eufy-security-ws as a separate container

  • Save the pet-detection image by calling image.snapshot on the camera’s Event Image









Step-by-step setup






1. Prepare Raspberry Pi OS



Install Raspberry Pi OS 64-bit on your Raspberry Pi 4.



I recommend using the 64-bit version rather than 32-bit. It is the safer choice for Docker and for future maintenance.



Then update the OS:




sudo apt update
sudo apt full-upgrade -y
sudo reboot






After rebooting, verify that the system is running in 64-bit mode:




uname -m






If the output is aarch64, you are on 64-bit.









2. Install Docker



Install Docker and make sure Docker Compose is available:




curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER
newgrp docker
docker --version
docker compose version












3. Create a working directory



Create directories for Home Assistant and the Eufy bridge data:




mkdir -p ~/ha-stack
cd ~/ha-stack

mkdir -p homeassistant/config
mkdir -p homeassistant/media/eufy_snapshots
mkdir -p eufy-security-ws












4. Create compose.yaml



In this setup, Home Assistant and eufy-security-ws run as separate containers.



Create ~/ha-stack/compose.yaml:




services:
homeassistant:
container_name: homeassistant
image: ghcr.io/home-assistant/home-assistant:stable
restart: unless-stopped
privileged: true
network_mode: host
environment:
TZ: Asia/Tokyo
volumes:
- ./homeassistant/config:/config
- ./homeassistant/media:/media
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro

eufy-security-ws:
container_name: eufy-security-ws
image: bropat/eufy-security-ws:latest
restart: unless-stopped
network_mode: host
environment:
TZ: Asia/Tokyo
USERNAME: '[email protected]'
PASSWORD: 'your-password'
COUNTRY: 'JP'
TRUSTED_DEVICE_NAME: 'rpi4-ha'
EVENT_DURATION_SECONDS: '10'
volumes:
- ./eufy-security-ws:/data






Start the containers:




docker compose up -d






Home Assistant should then be available at:




http://<your-pi-ip>:8123












5. Allow Home Assistant to write snapshots



Since the pet-detection images will be saved under /media/eufy_snapshots, Home Assistant needs permission to write there.



Add the following to ~/ha-stack/homeassistant/config/configuration.yaml:




homeassistant:
allowlist_external_dirs:
- /media/eufy_snapshots






This is important: do not overwrite your existing configuration.yaml.



If the file already contains a homeassistant: block, just add allowlist_external_dirs inside it.



After that, restart Home Assistant:




docker compose restart homeassistant












6. Install HACS



Because eufy_security is not a built-in integration, you need HACS.



Install it from inside the Home Assistant container:




docker exec -it homeassistant bash
wget -O - https://get.hacs.xyz | bash -
exit






Then restart Home Assistant:




docker compose restart homeassistant






After the restart, go through the HACS setup in the Home Assistant UI:




  • Settings → Devices & Services

  • Add Integration

  • HACS

  • Complete the GitHub device login flow









7. Configure the eufy-security-ws login settings



This part is critical.



If docker logs -f eufy-security-ws shows:




Missing one of USERNAME or PASSWORD






then your Eufy credentials are not being passed into the container.



Make sure the following variables are present in the eufy-security-ws section of compose.yaml:




  • USERNAME

  • PASSWORD

  • COUNTRY

  • TRUSTED_DEVICE_NAME

  • EVENT_DURATION_SECONDS



After making changes, recreate or restart the container:




docker compose up -d
docker logs -f eufy-security-ws












8. Be careful if your password contains $



Docker Compose may interpret $ as variable expansion.



If your password contains dollar signs, do not write it naively. A safer approach is to wrap it in single quotes and escape as needed with $$.



For example:




PASSWORD: 'pa$$word$$with$$dollar'






This is an easy place to get stuck.









9. Install the Eufy Security integration from HACS



Once HACS is available:




  • Go to HACS → Integrations

  • Search for Eufy Security

  • Install it

  • Restart Home Assistant



Then add the integration:




  • Settings → Devices & Services

  • Add Integration

  • Eufy Security



For the connection settings, use:





  • Host: 127.0.0.1


  • Port: 3000









10. Check the Eufy app settings



Even if Home Assistant is configured correctly, you may not receive pet-detection events unless the Eufy app itself is configured properly.



In the Eufy app, verify the following:





  • Pet Detection is enabled


  • Push notifications are enabled

  • Shared account settings are configured if needed









11. Confirm the created entities



If the integration is working, Home Assistant should create entities like these for your camera:




binary_sensor.living_room_pet_detected
image.living_room_event_image






The exact entity names will vary depending on your environment, so check them in the Home Assistant UI:




  • Settings → Devices & Services

  • Open the Eufy camera device

  • Review the entity list









12. Create automations.yaml



You can save an image when a pet is detected with an automation like this:




- alias: Save image when Eufy detects a pet
id: eufy_pet_snapshot_save
mode: queued

trigger:
- platform: state
entity_id: image.living_room_event_image

condition:
- condition: state
entity_id: binary_sensor.living_room_pet_detected
state: "on"

action:
- variables:
ts: "{{ now().strftime('%Y%m%d-%H%M%S') }}"
file: "/media/eufy_snapshots/pet_{{ ts }}.jpg"

- action: image.snapshot
target:
entity_id: image.living_room_event_image
data:
filename: "{{ file }}"






Replace the entity_id values with the ones from your own environment.









13. Apply the automation changes



If you edit automations.yaml directly, saving the file is not enough. Home Assistant will not automatically reload it.



You have two options.






Option 1: Reload automations from the UI




  • Go to Developer Tools

  • Go to Actions

  • Run automation.reload






Option 2: Restart Home Assistant






docker compose restart homeassistant












14. Verify that the automation is active



You can confirm that the automation has been loaded in several ways:




  1. Check whether the alias appears under Settings → Automations & Scenes → Automations

  2. Open the automation and see whether you can click Run

  3. Review the Trace

  4. Confirm that image files are actually being created in the target directory



To check the saved files from the shell:




ls -lh ~/ha-stack/homeassistant/media/eufy_snapshots












15. Test the full flow



Finally, test the actual detection flow:




  1. Let your pet move in front of the camera

  2. Confirm that binary_sensor.xxx_pet_detected changes to on

  3. Confirm that image.xxx_event_image updates

  4. Confirm that a JPEG file is saved under /media/eufy_snapshots



At that point, the setup is complete.









Common questions and troubleshooting






Can this really be done with Raspberry Pi 4, Raspberry Pi OS, and Docker?



Yes.



The main assumption is that you are using:





  • Home Assistant Container, not Home Assistant OS

  • A separate eufy-security-ws container

  • The eufy_security integration installed through HACS



So the structure is a little different from a Home Assistant OS setup that relies on add-ons.









Should I append to configuration.yaml or replace it?



Append to it. Do not replace it.



Most Home Assistant installations already have settings in configuration.yaml. In this case, you only need to add allowlist_external_dirs.



If there is no existing homeassistant: block:




homeassistant:
allowlist_external_dirs:
- /media/eufy_snapshots






If there is already a homeassistant: block, add it inside that section:




homeassistant:
name: Home
time_zone: Asia/Tokyo
allowlist_external_dirs:
- /media/eufy_snapshots












HACS does not appear under Add Integration



The most common causes are:




  1. Home Assistant was not restarted fully

  2. Browser cache is getting in the way

  3. The HACS files were not installed correctly



First, restart Home Assistant:




docker compose restart homeassistant






Then hard-refresh the browser:





  • Windows / Linux: Ctrl + F5


  • Mac: Cmd + Shift + R



You can also verify that the HACS files exist:




ls ~/ha-stack/homeassistant/config/custom_components/hacs












eufy-security-ws says Missing one of USERNAME or PASSWORD



That means the Eufy credentials are not reaching the container.



Make sure the environment: section includes:




environment:
TZ: Asia/Tokyo
USERNAME: '[email protected]'
PASSWORD: 'your-password'
COUNTRY: 'JP'
TRUSTED_DEVICE_NAME: 'rpi4-ha'
EVENT_DURATION_SECONDS: '10'












What if the password contains $?



Be careful.



Docker Compose treats $ specially, so passwords containing dollar signs can break unless written correctly.



For example:




PASSWORD: 'pa$$word$$with$$dollar'






This is one of the most common small but frustrating issues in the setup.









How can I tell whether automations.yaml has been applied?



Use the following checklist:




  1. Run automation.reload

  2. Open Settings → Automations & Scenes → Automations

  3. Confirm that your automation alias appears

  4. Try running it manually

  5. Check whether an image file is saved in the destination directory



The key point is that editing automations.yaml alone does not automatically apply the changes.









Do I need live video streaming too?



Not for this use case.



If your goal is simply to save an image when a pet is detected, then using only the Event Image is lighter and easier to manage, especially on a Raspberry Pi 4.



Once you add live streaming or recording, the load and the number of moving parts both increase. For a first version, saving still images is the more practical approach.









What should I keep in mind for real-world use?



A few recommendations:




  • Use Raspberry Pi OS 64-bit

  • Prefer an SSD over microSD for storage

  • Start with image saving only

  • Check both the Home Assistant logs and the eufy-security-ws logs when troubleshooting

  • Do not forget the notification settings in the Eufy app









Summary



It is entirely possible to use a Raspberry Pi 4 with Raspberry Pi OS and Docker to build a setup where Home Assistant receives pet-detection events from a Eufy IndoorCam 2K Pan & Tilt and saves an image automatically.



The three most important pieces are:




  • Run Home Assistant as a container

  • Use eufy-security-ws + eufy_security for the Eufy integration

  • Save the image by calling image.snapshot on the Event Image



The initial setup can be slightly tricky around HACS, authentication settings, and reloading automations.yaml, but once those are in place, the overall system is fairly straightforward.



For a Raspberry Pi 4, this is a practical and realistic setup if your goal is simply to save a still image whenever your pet is detected.

IoC Intelligence (1 Indikatoren)
get[.]hacs[.]xyz
CTI Threat Relationship Graph3 Knoten / 2 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
SOC Incident Playbook: Vulnerability Remediation & Verification
title: Detect Exploitation - Using Raspberry Pi 4, Raspberry Pi OS, and Docker to Connect Home Assistant with a Eufy IndoorCam 2K Pan & Tilt and Save Images When a Pet Is Detected
id: da909e23-91ec-41dd-b70c-941b6e0b4e1a
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      DestinationHostname:
        - 'get.hacs.xyz'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "Using Raspberry Pi 4, Raspberr" ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich Using Raspberry Pi 4, Raspberry Pi OS, a.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Using Raspberry Pi 4, Raspberry Pi OS, and Docker to Connect Home Assistant with a Eufy IndoorCam 2K Pan & Tilt and Save Images When a Pet Is Detected

Thematisch verwandte Begriffe: Using, Raspberry, Docker, Connect · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-96676 | A vulnerability was identified in Fast FAC1900R 20190827_2.0.2. The impa…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick