How silver-volt4/ha_mobilealerts works
Mobile-Alerts is a Home Assistant integration that proxies communication between Mobile-Alerts gateways and the cloud, then exposes gateway and sensor readings as Home Assistant entities. Its main workflow is gateway discovery/configuration, gateway and proxy initialization, sensor-update coordination, and publication of sensor and binary-sensor entities. The graph distinguishes documented and excerpted calls from broader capabilities; source excerpts do not show the internals of the external Mobile-Alerts library or the full entity update path.
Main entry points: __init__.py Integration setup · coordinator.py Update coordinator · base.py Coordinator and entity base · config_flow.py Config and options flow
Components 14
Setup & Discovery
- Config and options flow
custom_components/mobile_alerts/config_flow.py - Integration setup
custom_components/mobile_alerts/__init__.py
Gateway Runtime
- Update coordinator
custom_components/mobile_alerts/coordinator.py - Coordinator and entity base
custom_components/mobile_alerts/base.py - Gateway proxy
custom_components/mobile_alerts/__init__.py
Home Assistant Entities
- Sensor entities
custom_components/mobile_alerts/sensor.py - Binary sensor entities
custom_components/mobile_alerts/binary_sensor.py
Shared Model
- Integration constants
custom_components/mobile_alerts/const.py - Gateway naming helpers
custom_components/mobile_alerts/util.py
Other components
- Home Assistant user
- Mobile-Alerts gateway
- Mobile-Alerts cloud
- Mobile-Alerts library
- Home Assistant
Connections 26
- Home Assistant user → Config and options flow: configures
custom_components/mobile_alerts/config_flow.py - Config and options flow → Mobile-Alerts library: discovers gateways
custom_components/mobile_alerts/config_flow.py - Mobile-Alerts gateway → Config and options flow: DHCP discovery
- Config and options flow → Integration setup: creates entry
custom_components/mobile_alerts/config_flow.py - Integration setup → Mobile-Alerts library: initializes gateway
custom_components/mobile_alerts/__init__.py - Integration setup → Gateway proxy: starts and attaches
custom_components/mobile_alerts/__init__.py - Gateway proxy → Mobile-Alerts gateway: proxies traffic
- Gateway proxy → Mobile-Alerts cloud: forwards data
- Integration setup → Update coordinator: creates
custom_components/mobile_alerts/__init__.py - Integration setup → Home Assistant: forwards platforms
custom_components/mobile_alerts/__init__.py - Update coordinator → Coordinator and entity base: extends
custom_components/mobile_alerts/coordinator.py - Coordinator and entity base → Gateway proxy: registers handler
custom_components/mobile_alerts/base.py - Update coordinator → Sensor entities: creates on arrival
custom_components/mobile_alerts/coordinator.py - Update coordinator → Binary sensor entities: creates on arrival
custom_components/mobile_alerts/coordinator.py - Sensor entities → Coordinator and entity base: uses entity base
custom_components/mobile_alerts/sensor.py - Binary sensor entities → Coordinator and entity base: uses entity base
custom_components/mobile_alerts/binary_sensor.py - Sensor entities → Binary sensor entities: imports sensor class
custom_components/mobile_alerts/binary_sensor.py - Coordinator and entity base → Mobile-Alerts library: pings gateway
custom_components/mobile_alerts/base.py - Coordinator and entity base → Home Assistant: restores and writes state
custom_components/mobile_alerts/base.py - Sensor entities → Integration constants: uses measurement types
custom_components/mobile_alerts/sensor.py - Binary sensor entities → Integration constants: uses measurement types
custom_components/mobile_alerts/binary_sensor.py - Integration setup → Integration constants: reads options
custom_components/mobile_alerts/__init__.py - Config and options flow → Gateway naming helpers: formats gateway names
custom_components/mobile_alerts/config_flow.py - Integration setup → Gateway naming helpers: formats device names
custom_components/mobile_alerts/__init__.py - Update coordinator → Sensor entities: updates sensor data
custom_components/mobile_alerts/coordinator.py - Update coordinator → Binary sensor entities: updates sensor data
custom_components/mobile_alerts/coordinator.py