Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
Device State (deviceStateAutomation)
| Field | Value |
|---|---|
| Category | android / automation |
| Backend handler | plugin server/nodes/android/device_state_automation/__init__.py; dispatch via BaseNode.execute() -> shared AndroidServiceBase.invoke (@Operation("invoke")) |
| Tests | server/tests/nodes/test_android.py |
| Skill (if any) | none |
| Direct agent tool | connectable to any agent's input-tools |
Purpose
Aggregate device state control: airplane mode, screen on/off, power save mode, brightness level.
Backend service mapping
| Field | Value |
|---|---|
SERVICE_ID_MAP[deviceStateAutomation] |
device_state |
| Default action | status |
Parameters
Shared parameter set only.
Logic Flow (node-specific slice)
flowchart TD
A[Dispatch] --> B[service_id = 'device_state']
B --> C{action}
C -- status --> D[POST /api/device_state]
C -- screen_on --> D
C -- screen_off --> D
C -- power_save --> D
D --> E[Flatten data: screen_state, airplane_mode,<br/>power_save, brightness]
Edge cases & known limits
- Frontend hidden
service_idisdevice_state_automation; the handler rewrites it todevice_stateviaSERVICE_ID_MAP. See_pattern.mditem 1. - Shared edge cases only otherwise.
Related
- Siblings:
screenControlAutomation,airplaneModeControl - Shared pattern:
_pattern.md