I have an automation that should tell my awtrix by switching an boolean to on when the battery is below 70 (test percentage) and the on state will then tell the awtrix to show the message.
But when I look at the trace, it only turns off the boolean, not on, even if the phone is below 70%
alias: "Awtrix: S22 Battery Monitor"
description: If battery gets below 30, Awtrix will tell it.
trigger:
- type: battery_level
platform: device
device_id: 8cc521d001a98e7558b64084ff3385d6
entity_id: 450d94fb2c39a7810d349700eb9e7ed0
domain: sensor
below: 70
id: LowBattery
- type: battery_level
platform: device
device_id: 8cc521d001a98e7558b64084ff3385d6
entity_id: 450d94fb2c39a7810d349700eb9e7ed0
domain: sensor
above: 70
id: FineBattery
condition: []
action:
- if:
- condition: trigger
id:
- LowBattery
then:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.awtrix_moodlight
area_id: utility_closet
data: {}
else:
- service: input_boolean.turn_off
target:
area_id: utility_closet
entity_id: input_boolean.awtrix_moodlight
data: {}
mode: single
Am I missing something?