How fapgomes/ha-smartthings-find works
SmartThings Find is a Home Assistant integration that imports Samsung device location and status, exposes them as entities, and can request locations or ring devices. The main flow is sign-in and session setup, polling and device-state coordination, then presentation and commands through Home Assistant entities. Samsung Account authorization and browser-cookie sessions are supported. The README documents the user-facing capabilities; some internal wiring is inferred only where the supplied source index or excerpts support it.
Main entry points: coordinator.py Polling coordinator · entity.py Entity base · config_flow.py Configuration flow · __init__.py Integration setup
Components 16
Sign-in
- Configuration flow
custom_components/smartthings_find/config_flow.py - Samsung Account auth
custom_components/smartthings_find/account.py
Device runtime
- Integration setup
custom_components/smartthings_find/__init__.py - Polling coordinator
custom_components/smartthings_find/coordinator.py - Find web API client
custom_components/smartthings_find/api.py
Home Assistant entities
- Entity base
custom_components/smartthings_find/entity.py - Location tracker
custom_components/smartthings_find/device_tracker.py - Battery and status sensors
custom_components/smartthings_find/sensor.py - Connection and lock
custom_components/smartthings_find/binary_sensor.py - Ring and update buttons
custom_components/smartthings_find/button.py - Automatic update switch
custom_components/smartthings_find/switch.py
State and diagnostics
- Device state models
custom_components/smartthings_find/models.py - Session store
custom_components/smartthings_find/store.py - Diagnostics
custom_components/smartthings_find/diagnostics.py
Other components
- User
- Samsung services
Connections 19
- User → Configuration flow: configures
README.md - Configuration flow → Samsung Account auth: starts account auth
custom_components/smartthings_find/config_flow.py - Samsung Account auth → Samsung services: exchanges authorization
custom_components/smartthings_find/account.py - Configuration flow → Samsung services: validates session
- Integration setup → Polling coordinator: sets up
custom_components/smartthings_find/__init__.py - Integration setup → Session store: removes on entry deletion
custom_components/smartthings_find/__init__.py - Polling coordinator → Find web API client: requests device data
custom_components/smartthings_find/coordinator.py - Polling coordinator → Session store: loads and saves
custom_components/smartthings_find/coordinator.py - Polling coordinator → Device state models: uses state models
custom_components/smartthings_find/coordinator.py - Find web API client → Samsung services: calls Find endpoints
README.md - Location tracker → Entity base: extends
custom_components/smartthings_find/device_tracker.py - Battery and status sensors → Entity base: extends
custom_components/smartthings_find/sensor.py - Connection and lock → Entity base: extends
custom_components/smartthings_find/binary_sensor.py - Ring and update buttons → Entity base: extends
custom_components/smartthings_find/button.py - Automatic update switch → Entity base: extends
custom_components/smartthings_find/switch.py - Entity base → Polling coordinator: reads device state
custom_components/smartthings_find/entity.py - Ring and update buttons → Polling coordinator: invokes device commands
custom_components/smartthings_find/button.py - Automatic update switch → Polling coordinator: sets update mode
custom_components/smartthings_find/switch.py - Diagnostics → Polling coordinator: reads diagnostics
custom_components/smartthings_find/diagnostics.py