mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-30 18:11:45 +00:00
- Updated comments in various YAML configuration files to provide clearer descriptions of functionalities and integrations. - Improved documentation for alarm, alexa_media_player, backups, blink, cbyge, climate, finance, fridge, garadget, glances, hass_agent_homepc, holiday, ios, landscape_lighting, lightning, logger, medicine, nfc_tags, noonhome, office_motion, phynplus, powerwall, printer, processmonitor, proxmox, rachio, rheem_econet, roku, sleepiq, space, speedtest, stats, superbowl, vacuum, wireless, and youtube packages. - Added relevant links and issue references where applicable to enhance user guidance and support.
39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
#-------------------------------------------
|
|
# @CCOSTAN
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
# HASS.Agent Home PC - Office lamp follows CARLO-HOMEPC session state.
|
|
#-------------------------------------------
|
|
######################################################################
|
|
## Locks/monitors PC activity via HASS.Agent; Sleep Number triggers live in config/packages/sleepiq.yaml.
|
|
######################################################################
|
|
# Docs: https://hassagent.readthedocs.io/en/latest/
|
|
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
|