Player APIs (BrightScript & Ja...
...
Object Reference
Input/Output Objects
roPowerEvent
1min
the ropowerevent object triggers if you switch between plugged in ac and poe object creation the ropowerevent object is created as follows createobject("ropowerevent", a as string, b as string) as object ifpowerevent getdata() as object returns current state and requested state when it has switched from the current state to the requested state