-
-
Notifications
You must be signed in to change notification settings - Fork 500
Expand file tree
/
Copy pathhass_agent_homepc.yaml
More file actions
78 lines (77 loc) · 2.66 KB
/
Copy pathhass_agent_homepc.yaml
File metadata and controls
78 lines (77 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
######################################################################
# @CCOSTAN - Follow Me on X
# For more info visit https://www.vcloudinfo.com/click-here
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# -------------------------------------------------------------------
# HASS.Agent Home PC - Session-aware lamp cues and workday wake-up
# HASS.Agent session automations plus Wake on LAN for CARLO-HOMEPC.
# -------------------------------------------------------------------
# Related Issue: 24
# - Blog: https://www.vcloudinfo.com/2026/04/home-assistant-wake-on-lan-workday-pc-automation.html
# Notes: Sleep Number nighttime lock/monitor-sleep logic lives in
# config/packages/sleepiq.yaml.
# Notes: Wake on LAN button entity is managed through the HA UI
# integration and is pressed here from YAML automation.
######################################################################
automation:
- alias: "Office Lamp - Follow CARLO-HOMEPC Session"
id: 7b3f9e14-55b1-44aa-a6eb-2e0873a4c2bb
mode: single
trigger:
- platform: state
entity_id: sensor.carlo_homepc_carlo_homepc_sessionstate
to: 'Locked'
id: locked
- platform: state
entity_id: sensor.carlo_homepc_carlo_homepc_sessionstate
to: 'Unlocked'
id: unlocked
action:
- choose:
- conditions:
- condition: trigger
id: locked
sequence:
- service: switch.turn_off
target:
entity_id: switch.office_lamp_switch
- conditions:
- condition: trigger
id: unlocked
sequence:
- service: switch.turn_on
target:
entity_id: switch.office_lamp_switch
- alias: "CARLO-HOMEPC - Wake on Workday Morning Bed Exit"
id: 6d40b8b2-8fa9-4250-84bd-cb1c3fc9e7c9
mode: single
trigger:
- platform: state
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
from: "on"
to: "off"
for: "00:02:00"
condition:
- condition: state
entity_id: person.carlo
state: "home"
- condition: state
entity_id: input_boolean.guest_mode
state: "off"
- condition: time
after: "05:00:00"
before: "09:00:00"
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: button.press
target:
entity_id: button.carlo_home
- service: script.send_to_logbook
data:
topic: "HOMEPC"
message: "Triggered Wake on LAN for CARLO-HOMEPC after Carlo's workday bed exit."