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