diff --git a/automations.yaml b/automations.yaml new file mode 100644 index 0000000..1d524e2 --- /dev/null +++ b/automations.yaml @@ -0,0 +1,288 @@ +- id: '1740678838632' + alias: Bedroom Light Switch + description: '' + triggers: + - domain: mqtt + device_id: 8b3a5a5b6faaba744c70ee940446a8af + type: action + subtype: on-press + trigger: device + id: on press + - domain: mqtt + device_id: 8b3a5a5b6faaba744c70ee940446a8af + type: action + subtype: off-press + trigger: device + id: off press + - domain: mqtt + device_id: 8b3a5a5b6faaba744c70ee940446a8af + type: action + subtype: up-press + trigger: device + id: up press + - domain: mqtt + device_id: 8b3a5a5b6faaba744c70ee940446a8af + type: action + subtype: down-press + trigger: device + id: down press + conditions: [] + actions: + - choose: + - conditions: + - condition: trigger + id: + - on press + sequence: + - action: light.turn_on + metadata: {} + data: + transition: 2 + brightness_pct: 100 + kelvin: 6004 + target: + entity_id: light.bedroom_lights + - conditions: + - condition: trigger + id: + - off press + sequence: + - action: light.turn_off + metadata: {} + data: + transition: 2 + target: + entity_id: light.bedroom_lights + - conditions: + - condition: trigger + id: + - up press + sequence: + - device_id: 44f4ce3a35528dc7874069d4935e8b96 + domain: light + entity_id: d733cc686a1202a747a1b8982a5b129b + type: brightness_increase + - device_id: eb41c45109c032c15c45516dd26debce + domain: light + entity_id: 627446070b5b0b33cf3cf93ef723c4dd + type: brightness_increase + - conditions: + - condition: trigger + id: + - down press + sequence: + - device_id: 44f4ce3a35528dc7874069d4935e8b96 + domain: light + entity_id: d733cc686a1202a747a1b8982a5b129b + type: brightness_decrease + - device_id: eb41c45109c032c15c45516dd26debce + domain: light + entity_id: 627446070b5b0b33cf3cf93ef723c4dd + type: brightness_decrease + mode: single +- id: '1740697291423' + alias: Living Rooom Lights + description: '' + triggers: + - domain: mqtt + device_id: b4fb325dfe68d4f80391417998f35843 + type: action + subtype: on-press + trigger: device + id: on press + - domain: mqtt + device_id: b4fb325dfe68d4f80391417998f35843 + type: action + subtype: off-press + trigger: device + id: off press + - domain: mqtt + device_id: b4fb325dfe68d4f80391417998f35843 + type: action + subtype: up-press + trigger: device + id: up press + - domain: mqtt + device_id: b4fb325dfe68d4f80391417998f35843 + type: action + subtype: down-press + trigger: device + id: down press + - domain: mqtt + device_id: b4fb325dfe68d4f80391417998f35843 + type: action + subtype: on-hold + trigger: device + id: on-hold + conditions: [] + actions: + - choose: + - conditions: + - condition: trigger + id: + - on press + sequence: + - action: light.turn_on + metadata: {} + data: + transition: 2 + brightness_pct: 100 + kelvin: 6004 + target: + entity_id: + - light.living_room_lights + - conditions: + - condition: trigger + id: + - off press + sequence: + - action: light.turn_off + metadata: {} + data: + transition: 2 + target: + entity_id: + - light.living_room_lights + - conditions: + - condition: trigger + id: + - up press + sequence: + - device_id: b4eb91155f9055a0c60ef550df160a27 + domain: light + entity_id: 199c07d0f6e74e9e9e233231a7865225 + type: brightness_increase + - device_id: 9780865b63490c56c106b6d6a7ab0a12 + domain: light + entity_id: 68f196203d0d94582df8ee8349fc8add + type: brightness_increase + - conditions: + - condition: trigger + id: + - down press + sequence: + - device_id: b4eb91155f9055a0c60ef550df160a27 + domain: light + entity_id: 199c07d0f6e74e9e9e233231a7865225 + type: brightness_decrease + - device_id: 9780865b63490c56c106b6d6a7ab0a12 + domain: light + entity_id: 68f196203d0d94582df8ee8349fc8add + type: brightness_decrease + - conditions: + - condition: trigger + id: + - on-hold + sequence: + - action: light.turn_on + metadata: {} + data: + transition: 0 + brightness_pct: 100 + rgb_color: + - 224 + - 27 + - 36 + target: + entity_id: light.living_room_lights + mode: single +- id: '1740757743088' + alias: Front Closet Lights + description: '' + triggers: + - type: present + device_id: c6519ea1e715f397dbbf7b73452f9e49 + entity_id: c3a7b8892b8b372d2c40556e770ddc68 + domain: binary_sensor + trigger: device + id: present + - type: not_present + device_id: c6519ea1e715f397dbbf7b73452f9e49 + entity_id: c3a7b8892b8b372d2c40556e770ddc68 + domain: binary_sensor + trigger: device + for: + hours: 0 + minutes: 0 + seconds: 5 + id: empty + conditions: [] + actions: + - choose: + - conditions: + - condition: trigger + id: + - present + sequence: + - action: light.turn_on + metadata: {} + data: + transition: 2 + brightness_pct: 100 + kelvin: 6010 + target: + entity_id: + - light.front_closet_light_1 + - light.front_closet_light_2 + - conditions: + - condition: trigger + id: + - empty + sequence: + - action: light.turn_off + metadata: {} + data: + transition: 2 + target: + entity_id: + - light.front_closet_light_1 + - light.front_closet_light_2 + mode: single +- id: '1740758045438' + alias: Bedroom Closet Light + description: '' + triggers: + - type: present + device_id: f5d95e37bec52853cf23cc1f476252c2 + entity_id: 2875db0f169ea4c4086d2ff9781eb611 + domain: binary_sensor + trigger: device + for: + hours: 0 + minutes: 0 + seconds: 0 + id: present + - type: not_present + device_id: f5d95e37bec52853cf23cc1f476252c2 + entity_id: 2875db0f169ea4c4086d2ff9781eb611 + domain: binary_sensor + trigger: device + for: + hours: 0 + minutes: 0 + seconds: 5 + id: empty + conditions: [] + actions: + - choose: + - conditions: + - condition: trigger + id: + - present + sequence: + - action: switch.turn_on + metadata: {} + data: {} + target: + entity_id: switch.smart_plug_1 + - conditions: + - condition: trigger + id: + - empty + sequence: + - action: switch.turn_off + metadata: {} + data: {} + target: + entity_id: switch.smart_plug_1 + mode: single diff --git a/hosts/homeassistant/configuration.nix b/hosts/homeassistant/configuration.nix index e5eea76..84b70bd 100644 --- a/hosts/homeassistant/configuration.nix +++ b/hosts/homeassistant/configuration.nix @@ -96,6 +96,8 @@ in htop git protonmail-bridge + pass + gnome-keyring ]; services.xserver.desktopManager.surf-display = { diff --git a/hosts/homeassistant/homeassistant.nix b/hosts/homeassistant/homeassistant.nix index 928e667..6c2a788 100644 --- a/hosts/homeassistant/homeassistant.nix +++ b/hosts/homeassistant/homeassistant.nix @@ -234,6 +234,7 @@ in onedrive-personal-sdk python-roborock pythonSteam + apple-weatherkit ]; config = { @@ -266,6 +267,7 @@ in auth_header = { debug = false; + username_header = "X-authentik-username"; }; # https://www.home-assistant.io/integrations/ota_updater/