Zwave switch action in automation fails to run randomly

Recently, my automations have been failing to turn various switches on/off while the rest of the automation’s actions execute just fine and need help in finding any possible root causes, the most frequently impacted automation is one that kills two plugs when my PC powers off, or on when my PC boots ( these are done through wattage thresholds on a zwave plug going to the PC, and a zwave plug powering the monitor, and a wemo switch powering the powered hub )

the most recent iteration of the problem was that upon triggering the automation, only the wemo switch powered up while the zwave one for the 2nd monitor stayed off. traces give a generic “home assistant error”

this automation is meant to replace a function my UPS used to have but was absent in a replacement model

What is the state of the target device when that happens? Was it unavailable? If so, then that step will fail. But you can add a continue on error to make sure the other steps work.

the device was online and available at the time. additionally, the device’s wattage report is sometimes logged at the exact second as the failure above supporting the availability at the execution time

Please post the YAML

I used the visual editor entirely, heres the YAML that resulted from using the vis editor:

description: ""
trigger:
  - type: power
    platform: device
    device_id: 5099a6e465993168cc0683445e788d3c
    entity_id: a67d1c05c749eb0fd65bf7f48c1f8b15
    domain: sensor
    above: 35
    id: "ON"
  - type: power
    platform: device
    device_id: 5099a6e465993168cc0683445e788d3c
    entity_id: a67d1c05c749eb0fd65bf7f48c1f8b15
    domain: sensor
    below: 30
    for:
      hours: 0
      minutes: 0
      seconds: 0
    id: "OFF"
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - "ON"
        sequence:
          - type: turn_on
            device_id: bbf90a7e8fbbc2e1d591fba65e5e3dbf
            entity_id: 63f4461732d2bdc1220a3d950458ca11
            domain: switch
          - type: turn_on
            device_id: 66d77e3df9fe810e59fa13908b25c4ac
            entity_id: d789cb6eabd3c67191ddfb36035f48b2
            domain: switch
      - conditions:
          - condition: trigger
            id:
              - "OFF"
        sequence:
          - type: turn_off
            device_id: bbf90a7e8fbbc2e1d591fba65e5e3dbf
            entity_id: 63f4461732d2bdc1220a3d950458ca11
            domain: switch
          - type: turn_off
            device_id: 66d77e3df9fe810e59fa13908b25c4ac
            entity_id: d789cb6eabd3c67191ddfb36035f48b2
            domain: switch
mode: single