You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package controls the Office PC's peripheral state using `Wake-on-LAN` for power and a set of **Template Switches** that wrap button entities (likely from an agent like *IOTLink* or similar running on the PC). It allows toggling Audio Output (Speakers vs. Headphones), Muting, and Monitor Power via the Home Assistant dashboard.
18
+
<!-- START_SUMMARY -->
19
+
This package provides a control interface for the Office PC, enabling "Smart Wake" capabilities and peripheral management. It uses Wake-on-LAN to power on the machine and a set of helper switches to control audio output (Headphones vs. Speakers), mute status, and monitor power. These switches trigger button presses on the local PC via an agent (IoT Link).
20
+
<!-- END_SUMMARY -->
21
+
22
+
## Process Description (Non-Technical)
23
+
<!-- START_DETAILED -->
24
+
1.**Power On**: usage of the 'Power' switch sends a magic packet (WoL) to turn on the PC.
25
+
2.**Audio Control**: Toggling the "Audio Device" switch sends a command to the PC to swap the default playback device between Speakers and Headphones.
26
+
3.**Monitors**: The "Displays" switch allows you to remotely wake up or put the monitors to sleep without touching the mouse/keyboard.
27
+
<!-- END_DETAILED -->
28
+
29
+
## Integration Dependencies
30
+
<!-- START_DEPENDENCIES -->
31
+
***IoT Link**: A Windows agent running on the PC to execute commands (button presses).
32
+
***Wake-on-LAN**: Standard network integration to boot the PC.
33
+
<!-- END_DEPENDENCIES -->
5
34
6
-
## Architecture
35
+
## Dashboard Connections
36
+
<!-- START_DASHBOARD -->
37
+
This package powers the following dashboard views:
The architecture bridges Home Assistant with the Windows OS. Commands initiated in the Dashboard (e.g., "Toggle Audio") flip a Template Switch in HA. This switch calls a `button.press` service, which talks to the MQTT-connected IoT Link agent installed on the PC. The agent then executes the local script/command to change the audio device or monitor state. State feedback travels back via MQTT sensors to update the Dashboard icon.
The Privacy Engine. Reads `.storage/lovelace_dashboards`, performs regex-based name redaction (Jukka->Evis), and outputs clean YAML blocks. Logic lives in `.ag_scripts/dashboard_manager`.
136
+
### `.ag_scripts/dashboard_manager/main.py`
137
+
The Dashboard Engine. Reads `.storage/lovelace_dashboards`, performs name redaction (Jukka->Evis), and generates dashboard documentation.
The Package Doc Generator. Reads a specific package YAML, extracts header metadata (Version/Desc), and updates the specific Markdown file. Logic lives in `.ag_scripts/package_manager`.
140
+
### `.ag_scripts/package_manager/main.py`
141
+
The Package Engine. Reads specific package YAML files, extracts metadata, and ensures the markdown skeleton exists.
0 commit comments