little help with a automation. I know the names are right and the watch is under 90, but the automation never runs.
in templating, this returns TRUE
{{
state_attr('device_tracker.nicoles_apple_watch', 'battery_level') | float(0) < 90 and
state_attr('device_tracker.nicoles_apple_watch', 'battery_status') != 'Charging' and
is_state('device_tracker.nicoles_apple_watch', 'home')
}}
Below is the YAML, but it never runs
alias: Notify if Nicole's Apple Watch Battery Below 90%, Not Charging, and Home
description: >-
Sends a notification if Nicole's Apple Watch battery is below 90%, not
charging, and she is at home.
triggers:
- trigger: numeric_state
entity_id:
- sensor.nicolevarela_apple_watch_battery
attribute: battery
below: 90
conditions:
- condition: state
entity_id: device_tracker.nicoles_apple_watch
state: home
- condition: state
entity_id: sensor.nicolevarela_apple_watch_battery
attribute: battery_status
state: NotCharging
actions:
- data:
message: Your Apple Watch battery is below 90% and is not charging while at home.
action: notify.mobile_app_nicole_14_pro
mode: single