Add PC lock/unlock automation and update README with new configuration details for HASS.Agent integration #Closes #160

This commit is contained in:
Carlo Costanzo
2025-11-24 11:22:21 -05:00
parent 8afd560b99
commit a36f1032ac
4 changed files with 53 additions and 3 deletions

View File

@@ -49,6 +49,19 @@ group:
- sensor.sleepnumber_carlo_stacey_sleepnumber
# - sensor.Stacey_sleep_hours
##############################################################################
### Automations - Detect when things are not right. Like any Good Watchdog.
##############################################################################
automation:
- alias: "CARLO-HOMEPC - Lock PC and Sleep Monitors When Carlo Is in Bed"
id: 25c69640-4c38-46a2-82ae-5a32c3c6f1b4
mode: single
trigger:
- platform: state
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
from: 'off'
to: 'on'
action:
- service: button.press
target:
entity_id: button.carlo_homepc_carlo_homepc_lock
- service: button.press
target:
entity_id: button.carlo_homepc_carlo_homepc_monitorsleep