Skip to content

Commit

Permalink
Updated sensor entity ID's from Z2M 2.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannytsang committed Jan 4, 2025
1 parent 67a7748 commit 584e346
Show file tree
Hide file tree
Showing 8 changed files with 265 additions and 265 deletions.
8 changes: 4 additions & 4 deletions packages/integrations/weather/weather.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ automation:
above: input_number.forecast_high_temperature
- trigger: numeric_state
entity_id:
- sensor.front_garden_motion_illuminance_lux
- sensor.back_garden_motion_illuminance_lux
- sensor.front_garden_motion_illuminance
- sensor.back_garden_motion_illuminance
above: input_number.close_blinds_brightness_threshold
conditions:
- or:
Expand All @@ -34,7 +34,7 @@ automation:
- parallel:
- if:
- condition: numeric_state
entity_id: sensor.front_garden_motion_illuminance_lux
entity_id: sensor.front_garden_motion_illuminance
above: input_number.close_blinds_brightness_threshold
then:
- action: script.bedroom_close_blinds_by_weather
Expand All @@ -47,7 +47,7 @@ automation:
weather_condition: "{{ states(trigger.entity_id) }}"
- if:
- condition: numeric_state
entity_id: sensor.back_garden_motion_illuminance_lux
entity_id: sensor.back_garden_motion_illuminance
above: input_number.close_blinds_brightness_threshold
then:
- action: script.leos_bedroom_close_blinds_by_weather
Expand Down
4 changes: 2 additions & 2 deletions packages/rooms/back_garden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ automation:
description: ""
triggers:
- trigger: numeric_state
entity_id: sensor.back_garden_motion_illuminance_lux
entity_id: sensor.back_garden_motion_illuminance
for:
hours: 0
minutes: 10
Expand All @@ -116,7 +116,7 @@ automation:
data:
message:
Sun light has fallen below {{ states('input_number.close_blinds_brightness_threshold')
}} ({{ states('sensor.back_garden_motion_illuminance_lux') }}){{ state_attr('sensor.back_garden_motion_illuminance_lux',
}} ({{ states('sensor.back_garden_motion_illuminance') }}){{ state_attr('sensor.back_garden_motion_illuminance',
'unit_of_measurement') }}. Opening blinds/curtains.
title: Back Garden
log_level: "Debug"
Expand Down
4 changes: 2 additions & 2 deletions packages/rooms/front_garden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ automation:
description: ""
triggers:
- trigger: numeric_state
entity_id: sensor.front_garden_motion_illuminance_lux
entity_id: sensor.front_garden_motion_illuminance
for:
hours: 0
minutes: 10
Expand All @@ -137,7 +137,7 @@ automation:
data:
message:
Sun light has fallen below {{ states('input_number.close_blinds_brightness_threshold')
}} ({{ states('sensor.front_garden_motion_illuminance_lux', with_unit=True)
}} ({{ states('sensor.front_garden_motion_illuminance', with_unit=True)
}}). Opening office blinds/curtains.
title: Front Garden
log_level: "Normal"
Expand Down
22 changes: 11 additions & 11 deletions packages/rooms/living_room.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ automation:
- conditions:
- or:
- condition: numeric_state
entity_id: sensor.living_room_motion_2_illuminance_lux
entity_id: sensor.living_room_motion_2_illuminance
below: input_number.living_room_light_level_2_threshold
- condition: numeric_state
entity_id: sensor.living_room_motion_illuminance
Expand All @@ -48,7 +48,7 @@ automation:
data:
message: >-
:paw_prints: Motion detected and it's dark
({{ states('sensor.living_room_motion_2_illuminance_lux') }} &
({{ states('sensor.living_room_motion_2_illuminance') }} &
{{ states('sensor.living_room_motion_illuminance') }} <
{{ states('input_number.living_room_light_level_2_threshold') }} &
{{ states('input_number.living_room_light_level_4_threshold', with_unit=True) }})
Expand Down Expand Up @@ -77,7 +77,7 @@ automation:
conditions:
- or:
- condition: numeric_state
entity_id: sensor.living_room_motion_2_illuminance_lux
entity_id: sensor.living_room_motion_2_illuminance
below: input_number.living_room_light_level_2_threshold
- condition: numeric_state
entity_id: sensor.living_room_motion_illuminance
Expand All @@ -99,7 +99,7 @@ automation:
data:
message: >-
:paw_prints: Motion detected and it's dark
({{ states('sensor.living_room_motion_2_illuminance_lux') }} &
({{ states('sensor.living_room_motion_2_illuminance') }} &
{{ states('sensor.living_room_motion_illuminance') }} <
{{ states('input_number.living_room_light_level_2_threshold') }} &
{{ states('input_number.living_room_light_level_4_threshold', with_unit=True) }})
Expand Down Expand Up @@ -700,7 +700,7 @@ automation:
description: ""
triggers:
- trigger: numeric_state
entity_id: sensor.front_garden_motion_illuminance_lux
entity_id: sensor.front_garden_motion_illuminance
above: input_number.blind_low_brightness_threshold
for: "00:01:00"
conditions:
Expand All @@ -711,7 +711,7 @@ automation:
- condition: sun
before: sunset
- condition: numeric_state
entity_id: sensor.front_garden_motion_illuminance_lux
entity_id: sensor.front_garden_motion_illuminance
below: input_number.blind_high_brightness_threshold
- condition: state
entity_id: input_boolean.enable_living_room_blind_automations
Expand Down Expand Up @@ -764,7 +764,7 @@ automation:
- action: script.send_to_home_log
data:
message: >-
It's bright outside ({{ states('sensor.front_garden_motion_illuminance_lux', with_unit=True) }}).
It's bright outside ({{ states('sensor.front_garden_motion_illuminance', with_unit=True) }}).
Partially closing middle and right blinds.
title: ":couch_and_lamp: Living Room"
log_level: "Debug"
Expand All @@ -781,7 +781,7 @@ automation:
description: ""
triggers:
- trigger: numeric_state
entity_id: sensor.front_garden_motion_illuminance_lux
entity_id: sensor.front_garden_motion_illuminance
above: input_number.blind_high_brightness_threshold
for: "00:01:00"
conditions:
Expand Down Expand Up @@ -840,7 +840,7 @@ automation:
- action: script.send_to_home_log
data:
message: >-
It's really bright outside ({{ states('sensor.front_garden_motion_illuminance_lux', with_unit=True) }}).
It's really bright outside ({{ states('sensor.front_garden_motion_illuminance', with_unit=True) }}).
Closing blinds.
title: ":couch_and_lamp: Living Room"
log_level: "Debug"
Expand All @@ -857,7 +857,7 @@ automation:
description: ""
triggers:
- trigger: numeric_state
entity_id: sensor.front_garden_motion_illuminance_lux
entity_id: sensor.front_garden_motion_illuminance
for:
hours: 0
minutes: 5
Expand Down Expand Up @@ -894,7 +894,7 @@ automation:
- action: script.send_to_home_log
data:
message: >-
It is not as bright outside ({{ states('sensor.front_garden_motion_illuminance_lux', with_unit=True) }}).
It is not as bright outside ({{ states('sensor.front_garden_motion_illuminance', with_unit=True) }}).
Opening Blinds
title: ":couch_and_lamp: Living Room"
log_level: "Debug"
Expand Down
Loading

0 comments on commit 584e346

Please sign in to comment.