#WHY is my iPad automation of charging not working?

1 messages · Page 1 of 1 (latest)

dim swift
#

It should be working. It's the right Sensor ID, right condition, right Smart Switch that DOES WORK. Why isn't it working?

alias: iPad's Charger Automation
description: >+
  When iPad reaches 60%, it’ll start charging, and when it reaches 80%, it’ll
  stop charging.

triggers:
  - entity_id:
      - sensor.panel_battery_level
    id: below
    below: 60
    trigger: numeric_state
  - entity_id:
      - sensor.panel_battery_level
    id: above
    above: 80
    trigger: numeric_state
conditions: []
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - below
        sequence:
          - type: turn_on
            device_id: c36bccb23d5cddce73d29c212ee18181
            entity_id: 2f8ed0cab1796bd6b3df7d656a87ec59
            domain: switch
      - conditions:
          - condition: trigger
            id:
              - above
        sequence:
          - type: turn_off
            device_id: c36bccb23d5cddce73d29c212ee18181
            entity_id: 2f8ed0cab1796bd6b3df7d656a87ec59
            domain: switch
mode: single
#

Also, the sensor does update.

gilded wind
#

Numeric_state triggers only trigger when the value crosses the threshold. So, for your below trigger, the battery has to start above 60 and then falls below 60. For the above, the battery has to rise above 80 before it will trigger.

hollow axle
#

It would be helpful if you expand on what “not working” means. Does it not trigger? Are there traces in the automation? Do the actions not work? Does the source not cross 60 or 80?

dim swift
hollow axle
#

Is there a trace in the automation? If there is, please share it

dim swift
#

that's what i see

hollow axle
#

In the top right, press the three vertical dots, and select “Download trace”

hollow axle
#

It looks like it triggered when it hit 100% and turned off the switch. The previous state was 50%.

#

Can you share a screenshot of the history graph of that battery sensor? sensor.panel_battery_level

dim swift
hollow axle
#

The y-axis would be helpful, but also you shared a trace of the automation triggering from below 80 to above 80, so I was wanting a history graph of the same time period