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