|
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 | | -#------------------------------------------- |
6 | 1 | ###################################################################### |
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. |
8 | 14 | ###################################################################### |
9 | | -# Docs: https://hassagent.readthedocs.io/en/latest/ |
10 | 15 | automation: |
11 | 16 | - alias: "Office Lamp - Follow CARLO-HOMEPC Session" |
12 | 17 | id: 7b3f9e14-55b1-44aa-a6eb-2e0873a4c2bb |
@@ -36,3 +41,37 @@ automation: |
36 | 41 | - service: switch.turn_on |
37 | 42 | target: |
38 | 43 | 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