Skip to content

Commit

Permalink
Update terrarium devices and cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-V committed Aug 29, 2024
1 parent 9fa2ee2 commit e351cd6
Show file tree
Hide file tree
Showing 10 changed files with 219 additions and 646 deletions.
11 changes: 7 additions & 4 deletions blueprints/automation/presence_light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ blueprint:
description: This light will turn on when presence is detected.
selector:
entity:
domain: light
filter:
- domain: light
light_off_entity:
name: Light
description: >
Expand All @@ -36,15 +37,17 @@ blueprint:
Defaults to `light_entity`.
selector:
entity:
domain: light
filter:
- domain: light
default: ""
presence_entity:
name: Presence entity
description: The presence sensor that will be used as a trigger.
selector:
entity:
domain: binary_sensor
device_class: presence
filter:
- domain: binary_sensor
device_class: presence

initial_state: true
max_exceeded: silent
Expand Down
45 changes: 34 additions & 11 deletions blueprints/automation/terrarium_scheduling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,43 @@ blueprint:
description: A boolean input that enables/disables scheduling altogether.
selector:
entity:
domain: input_boolean
filter:
- domain: input_boolean
day_time_entity:
name: Day time input entity
description: The entity representing when day time starts for this terrarium.
selector:
entity:
domain: input_datetime
filter:
- domain: input_datetime
night_time_entity:
name: Night time input entity
description: The entity representing when night time starts for this terrarium.
selector:
entity:
domain: input_datetime
filter:
- domain: input_datetime
heat_bulb_switch:
name: Heat bulb
default: switch.dummy
selector:
entity:
domain: switch
filter:
- domain: switch
heater_switch:
name: Heater
default: switch.dummy
selector:
entity:
domain: switch
filter:
- domain: switch
uv_light_switch:
name: UV light
default: switch.dummy
selector:
entity:
domain: switch
filter:
- domain: switch

initial_state: true
mode: "restart"
Expand All @@ -45,6 +54,10 @@ trigger:
at:
- !input day_time_entity
- !input night_time_entity
- platform: state
entity_id:
- !input day_time_entity
- !input night_time_entity
- platform: state
entity_id: !input scheduling_entity
from: "off"
Expand All @@ -53,8 +66,9 @@ trigger:
event: start

variables:
day_time_entity: !input day_time_entity
night_time_entity: !input night_time_entity
heat_bulb_switch: !input heat_bulb_switch
heater_switch: !input heater_switch
uv_light_switch: !input uv_light_switch

condition:
- condition: state
Expand All @@ -63,6 +77,7 @@ condition:

action:
- action: switch.turn_on
enabled: "{{ heater_switch != 'switch.dummy' }}"
target:
entity_id: !input heater_switch

Expand All @@ -72,11 +87,19 @@ action:
before: !input night_time_entity
then:
- action: switch.turn_on
enabled: "{{ heat_bulb_switch != 'switch.dummy' }}"
target:
entity_id: !input heat_bulb_switch
- action: switch.turn_on
enabled: "{{ uv_light_switch != 'switch.dummy' }}"
target:
entity_id: !input uv_light_switch
else:
- action: switch.turn_off
enabled: "{{ heat_bulb_switch != 'switch.dummy' }}"
target:
entity_id: !input heat_bulb_switch
- action: switch.turn_off
enabled: "{{ uv_light_switch != 'switch.dummy' }}"
target:
entity_id:
- !input heat_bulb_switch
- !input uv_light_switch
entity_id: !input uv_light_switch
2 changes: 1 addition & 1 deletion dashboards/cards/livings-overview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ elements:
state_filter:
"on": sepia() saturate(350%) hue-rotate(-50deg)
"off": inherit
entity: binary_sensor.slinky_requires_attention
entity: binary_sensor.lydia_requires_attention
image: /local/animals/slinky_tile.jpg
double_tap_action:
action: navigate
Expand Down
Loading

0 comments on commit e351cd6

Please sign in to comment.