diff --git a/hosts/homeassistant/automations.yaml b/hosts/homeassistant/automations.yaml index 6fba669..3c125bf 100755 --- a/hosts/homeassistant/automations.yaml +++ b/hosts/homeassistant/automations.yaml @@ -58,27 +58,23 @@ 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 + - action: light.turn_on + metadata: {} + data: + brightness_step_pct: 10 + target: + entity_id: light.bedroom_lights - 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 + - action: light.turn_on + metadata: {} + data: + brightness_step_pct: -10 + target: + entity_id: light.bedroom_lights mode: single - id: '1740697291423' alias: Living Rooom Lights @@ -148,27 +144,23 @@ 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 + - action: light.turn_on + metadata: {} + data: + brightness_step_pct: 10 + target: + entity_id: light.living_room_lights - 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 + - action: light.turn_on + metadata: {} + data: + brightness_step_pct: -10 + target: + entity_id: light.living_room_light_1 - conditions: - condition: trigger id: @@ -186,3 +178,59 @@ target: entity_id: light.living_room_lights mode: single +- id: '1741048414771' + alias: Front Closet + description: '' + triggers: + - type: present + device_id: c6519ea1e715f397dbbf7b73452f9e49 + entity_id: c3a7b8892b8b372d2c40556e770ddc68 + domain: binary_sensor + trigger: device + for: + hours: 0 + minutes: 0 + seconds: 0 + id: present + - type: not_present + device_id: c6519ea1e715f397dbbf7b73452f9e49 + entity_id: c3a7b8892b8b372d2c40556e770ddc68 + domain: binary_sensor + trigger: device + for: + hours: 0 + minutes: 0 + seconds: 5 + id: not + 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: + - not + sequence: + - action: light.turn_off + metadata: {} + data: + transition: 2 + target: + entity_id: + - light.front_closet_light_1 + - light.front_closet_light_2 + mode: single diff --git a/hosts/homeassistant/homeassistant.nix b/hosts/homeassistant/homeassistant.nix index 6c2a788..bbb3e43 100755 --- a/hosts/homeassistant/homeassistant.nix +++ b/hosts/homeassistant/homeassistant.nix @@ -257,6 +257,7 @@ in trusted_proxies = [ "172.30.33.0/24" "10.0.1.18" + "10.0.1.0/24" ]; };