From efd9d0948ca74feb9f54b5752b48e42186e904fb Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Wed, 4 May 2022 15:06:01 -0700 Subject: [PATCH] Update Lighting and Automation --- .gitignore | 1 + configuration.yaml | 2 +- packages/lighting/README.md | 4 ++++ packages/lighting/main.yaml | 37 +++++++++++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 packages/lighting/README.md create mode 100644 packages/lighting/main.yaml diff --git a/.gitignore b/.gitignore index 50c082d..65ff494 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ adb/ deps/ tts/ __pycache__/ +automations.yaml custom_components/ !custom_components/hacs secrets.yaml diff --git a/configuration.yaml b/configuration.yaml index 1866016..eecf88d 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -64,7 +64,7 @@ logger: ############################################################################### # Automation File for Configuration UI -automation: +automation: !include automations.yaml # Enable the Configuration UI config: diff --git a/packages/lighting/README.md b/packages/lighting/README.md new file mode 100644 index 0000000..8819a62 --- /dev/null +++ b/packages/lighting/README.md @@ -0,0 +1,4 @@ +# Lighting Package + +This package contains configuration information for lighting. It depends on +multiple Zigbee and Z-Wave entities, which must be set up separately. diff --git a/packages/lighting/main.yaml b/packages/lighting/main.yaml new file mode 100644 index 0000000..2521950 --- /dev/null +++ b/packages/lighting/main.yaml @@ -0,0 +1,37 @@ +# Irrigation Package + +# ----------------------------------------------------------------------------- +# Automations for Bedroom Nighstand Lamps +automation jen_nighstand_lamp: + alias: Jen Nighstand Lamp + description: '' + mode: single + trigger: + - device_id: 98d9a86c7838fdbfcbdaeceef9a98f36 + domain: zha + platform: device + type: remote_button_short_press + subtype: remote_button_short_press + condition: [] + action: + - type: toggle + device_id: 444b8c5db71e96e192187688e1140d9a + entity_id: light.jen_nightstand_light + domain: light + +automation jp_nighstand_lamp: + alias: J.P. Nighstand Lamp + description: '' + mode: single + trigger: + - device_id: f223ed24fe135bfd6bb7006dddb6b9f8 + domain: zha + platform: device + type: remote_button_short_press + subtype: remote_button_short_press + condition: [] + action: + - type: toggle + device_id: a9a219b3e184e045a40959605b4c2be0 + entity_id: light.jp_nighstand_light + domain: light