Skip to content

Commit ac4bf95

Browse files
authored
Add workday wake-on-lan automation for CARLO-HOMEPC
Add workday wake-on-lan automation for CARLO-HOMEPC
1 parent e0d127f commit ac4bf95

3 files changed

Lines changed: 48 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Live, personal Home Assistant configuration shared for **browsing and inspiratio
4444
- Garage routines and entry lighting: [config/packages/garadget.yaml](config/packages/garadget.yaml), [config/automation/garage_entry_light.yaml](config/automation/garage_entry_light.yaml)
4545
- Holiday/front-of-house color scenes: [config/scene/monthly_colors.yaml](config/scene/monthly_colors.yaml), [config/script/monthly_color_scene.yaml](config/script/monthly_color_scene.yaml)
4646
- Dash-button triggers for quick actions: [config/automation/dash_buttons.yaml](config/automation/dash_buttons.yaml)
47-
- PC lock/unlock-driven lighting via HASS.Agent: [config/packages/hass_agent_homepc.yaml](config/packages/hass_agent_homepc.yaml)
47+
- PC lock/unlock-driven lighting plus workday wake-up via HASS.Agent + Wake on LAN: [config/packages/hass_agent_homepc.yaml](config/packages/hass_agent_homepc.yaml)
4848
- Seasonal cuckoo clock with October and Christmas sound packs: [config/automation/System/CucKoo_Clock.yaml](config/automation/System/CucKoo_Clock.yaml)
4949
- Garage arrival and entry helpers: [config/packages/garadget.yaml](config/packages/garadget.yaml)
5050
- Battery and solar awareness: [config/packages/powerwall.yaml](config/packages/powerwall.yaml)

config/packages/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Live collection of plug-and-play Home Assistant packages. Each YAML file in this
6262
| [powerwall.yaml](powerwall.yaml) | Track Tesla Powerwall grid status, push live outage tracking to mobile targets, and shed loads automatically when off-grid (alerts include Activity feed + Repairs). | `binary_sensor.powerwall_grid_status`, `sensor.powerwall_*`, `script.notify_live_activity`, `repairs.create` |
6363
| [tesla_model_y.yaml](tesla_model_y.yaml) | Remind the garage and parents to plug in the Model Y after low-battery arrivals and after 8 PM when it is home but not charging. | `sensor.spaceship_battery_level`, `switch.spaceship_charge`, `notify.alexa_media_garage`, `script.notify_engine` |
6464
| [vacuum.yaml](vacuum.yaml) | Dreame vacuum orchestration with room tracking, push alerts, Activity feed, Repairs issues on errors, and Alexa one-off room-clean switches. | `input_select.l10s_vacuum_phase`, `sensor.l10s_vacuum_error`, `repairs.create` |
65-
| [hass_agent_homepc.yaml](hass_agent_homepc.yaml) | Mirrors PC lock/unlock state from HASS.Agent to the office lamp for instant desk presence cues. | `sensor.carlo_homepc_carlo_homepc_sessionstate`, `switch.office_lamp_switch` |
65+
| [hass_agent_homepc.yaml](hass_agent_homepc.yaml) | Mirrors PC lock/unlock state to the office lamp and wakes `CARLO-HOMEPC` on workday morning bed exits. | `sensor.carlo_homepc_carlo_homepc_sessionstate`, `button.carlo_home`, `switch.office_lamp_switch` |
6666
| [sleepiq.yaml](sleepiq.yaml) | Sleep Number presence/snore automations; Overview Health consumes direct SleepIQ integration entities for scores, vitals, pressure, and bed controls. | `sensor.sleepnumber_carlo_carlo_sleep_score`, `sensor.sleepnumber_carlo_stacey_sleep_score`, `number.sleepnumber_carlo_carlo_firmness`, `select.sleepnumber_carlo_foundation_preset_right` |
6767
| [finance.yaml](finance.yaml) | Yahoo Finance sensor bundle for portfolio glances and Lovelace cards. | `sensor.tsla`, `sensor.aapl`, `sensor.amzn`, `sensor.msft` |
6868

config/packages/hass_agent_homepc.yaml

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
#-------------------------------------------
2-
# @CCOSTAN
3-
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
4-
# HASS.Agent Home PC - Office lamp follows CARLO-HOMEPC session state.
5-
#-------------------------------------------
61
######################################################################
7-
## Locks/monitors PC activity via HASS.Agent; Sleep Number triggers live in config/packages/sleepiq.yaml.
2+
# @CCOSTAN - Follow Me on X
3+
# For more info visit https://www.vcloudinfo.com/click-here
4+
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
5+
# -------------------------------------------------------------------
6+
# HASS.Agent Home PC - Session-aware lamp cues and workday wake-up
7+
# HASS.Agent session automations plus Wake on LAN for CARLO-HOMEPC.
8+
# -------------------------------------------------------------------
9+
# Related Issue: 24
10+
# Notes: Sleep Number nighttime lock/monitor-sleep logic lives in
11+
# config/packages/sleepiq.yaml.
12+
# Notes: Wake on LAN button entity is managed through the HA UI
13+
# integration and is pressed here from YAML automation.
814
######################################################################
9-
# Docs: https://hassagent.readthedocs.io/en/latest/
1015
automation:
1116
- alias: "Office Lamp - Follow CARLO-HOMEPC Session"
1217
id: 7b3f9e14-55b1-44aa-a6eb-2e0873a4c2bb
@@ -36,3 +41,37 @@ automation:
3641
- service: switch.turn_on
3742
target:
3843
entity_id: switch.office_lamp_switch
44+
45+
- alias: "CARLO-HOMEPC - Wake on Workday Morning Bed Exit"
46+
id: 6d40b8b2-8fa9-4250-84bd-cb1c3fc9e7c9
47+
mode: single
48+
trigger:
49+
- platform: state
50+
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
51+
from: "on"
52+
to: "off"
53+
for: "00:02:00"
54+
condition:
55+
- condition: state
56+
entity_id: person.carlo
57+
state: "home"
58+
- condition: state
59+
entity_id: input_boolean.guest_mode
60+
state: "off"
61+
- condition: time
62+
after: "05:00:00"
63+
before: "09:00:00"
64+
weekday:
65+
- mon
66+
- tue
67+
- wed
68+
- thu
69+
- fri
70+
action:
71+
- service: button.press
72+
target:
73+
entity_id: button.carlo_home
74+
- service: script.send_to_logbook
75+
data:
76+
topic: "HOMEPC"
77+
message: "Triggered Wake on LAN for CARLO-HOMEPC after Carlo's workday bed exit."

0 commit comments

Comments
 (0)