After the latest stable update, my “Choose” automations are not working correctly. Instead of choosing one path, they execute one and then the other.
Code:
alias: Enchufe Tablet Despacho con Batería
description: ""
triggers:
- type: battery_level
device_id: 3c7114e8a6a1fb2cc4f1df63e85959cd
entity_id: 92a9347bbc53c62d94b731192bba0115
domain: sensor
metadata:
secondary: true
trigger: device
below: 20
id: Batería baja
- type: battery_level
device_id: 3c7114e8a6a1fb2cc4f1df63e85959cd
entity_id: 92a9347bbc53c62d94b731192bba0115
domain: sensor
metadata:
secondary: true
trigger: device
id: Batería alta
above: 80
- type: battery_level
device_id: 3c7114e8a6a1fb2cc4f1df63e85959cd
entity_id: 92a9347bbc53c62d94b731192bba0115
domain: sensor
metadata:
secondary: true
trigger: device
id: Batería alta
above: 99.9
- type: battery_level
device_id: 3c7114e8a6a1fb2cc4f1df63e85959cd
entity_id: 92a9347bbc53c62d94b731192bba0115
domain: sensor
metadata:
secondary: true
trigger: device
below: 15
id: Batería baja
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- Batería baja
sequence:
- type: turn_on
device_id: b085a4f3671d2caa3e0d868047d76ac1
entity_id: 4aed11b7e67847eea5f527202a520b87
domain: switch
- conditions:
- condition: trigger
id:
- Batería alta
sequence:
- type: turn_off
device_id: b085a4f3671d2caa3e0d868047d76ac1
entity_id: 4aed11b7e67847eea5f527202a520b87
domain: switch
mode: single
Trace:
Choose: Option 1 executed
(switch.enchufe_usb_despacho) turned on
1 second later
(switch.enchufe_usb_despacho) turned off