Added functionality to send a custom power state for each device