2018-01-01 19:00:45 -05:00
|
|
|
#-------------------------------------------
|
Standardizing on Headers for all YAML files.
- 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.
2025-11-29 13:17:00 -05:00
|
|
|
# @CCOSTAN
|
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
|
|
|
# Office Motion - Motion/illuminance triggers for office lighting.
|
2018-01-01 19:00:45 -05:00
|
|
|
#-------------------------------------------
|
Standardizing on Headers for all YAML files.
- 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.
2025-11-29 13:17:00 -05:00
|
|
|
######################################################################
|
|
|
|
|
## Office motion sensors and automations.
|
|
|
|
|
######################################################################
|
|
|
|
|
# Light sensor node: https://amzn.to/2oUgj5i
|
2018-01-01 19:00:45 -05:00
|
|
|
homeassistant:
|
|
|
|
|
customize:
|
|
|
|
|
binary_sensor.office_motion:
|
|
|
|
|
friendly_name: Office Motion Sensor
|
2018-01-14 18:30:56 -05:00
|
|
|
|
2020-07-16 13:08:35 -04:00
|
|
|
|
2018-01-01 19:00:45 -05:00
|
|
|
#---Sensor for Light-----------------------------
|
2023-01-16 18:57:38 -05:00
|
|
|
mqtt:
|
|
|
|
|
binary_sensor:
|
|
|
|
|
- state_topic: "NodeMCU4/Motion/Motion"
|
|
|
|
|
name: "Office_Motion"
|
|
|
|
|
payload_on: 1
|
|
|
|
|
payload_off: 0
|
|
|
|
|
device_class: motion
|
2018-01-01 19:00:45 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
automation:
|
|
|
|
|
- alias: 'Motion in the Office - Turn on Light'
|
2020-07-19 15:59:59 -04:00
|
|
|
id: 5a8e9dc3-a851-4cce-a054-d96f599cb1f5
|
2020-07-31 10:30:17 -04:00
|
|
|
mode: restart
|
2018-01-01 19:00:45 -05:00
|
|
|
trigger:
|
|
|
|
|
- platform: state
|
|
|
|
|
entity_id:
|
|
|
|
|
- binary_sensor.office_motion
|
|
|
|
|
to: 'on'
|
|
|
|
|
from: 'off'
|
|
|
|
|
|
|
|
|
|
condition:
|
|
|
|
|
- condition: state
|
2020-07-16 13:08:35 -04:00
|
|
|
entity_id: light.office_lights
|
2018-01-01 19:00:45 -05:00
|
|
|
state: 'off'
|
2018-08-23 18:16:15 -04:00
|
|
|
- condition: or
|
|
|
|
|
conditions:
|
|
|
|
|
- condition: state
|
|
|
|
|
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
|
|
|
|
state: 'off'
|
|
|
|
|
- condition: state
|
|
|
|
|
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
|
|
|
|
state: 'off'
|
2018-01-01 19:00:45 -05:00
|
|
|
|
|
|
|
|
action:
|
|
|
|
|
- service: light.turn_on
|
2020-07-16 13:08:35 -04:00
|
|
|
entity_id: light.office_lights
|
2018-01-01 19:00:45 -05:00
|
|
|
|
|
|
|
|
- alias: 'Motion in the Office - Turn off Light'
|
2020-07-19 15:59:59 -04:00
|
|
|
id: 346d8210-2160-4911-8be0-1ad696cc69d1
|
2020-07-31 10:30:17 -04:00
|
|
|
mode: restart
|
2018-01-01 19:00:45 -05:00
|
|
|
trigger:
|
|
|
|
|
- platform: state
|
|
|
|
|
entity_id:
|
|
|
|
|
- binary_sensor.office_motion
|
|
|
|
|
to: 'off'
|
|
|
|
|
from: 'on'
|
|
|
|
|
for:
|
2018-01-14 18:30:56 -05:00
|
|
|
minutes: 2
|
2018-01-01 19:00:45 -05:00
|
|
|
|
|
|
|
|
condition:
|
|
|
|
|
- condition: state
|
2020-07-16 13:08:35 -04:00
|
|
|
entity_id: light.office_lights
|
2018-01-01 19:00:45 -05:00
|
|
|
state: 'on'
|
|
|
|
|
|
|
|
|
|
action:
|
|
|
|
|
- service: light.turn_off
|
2020-07-16 13:08:35 -04:00
|
|
|
entity_id: light.office_lights
|