code: def get_power_state(self, id_or_uri):
          
          uri = self._client.build_uri(id_or_uri) + "/powerState"
          return self._client.get(uri)
docs: Gets the power state (on, off or unknown) of the specified power delivery device that supports power control.
          The device must be an HP Intelligent Outlet.
  
          Args:
              id_or_uri:
                  Can be either the power device id or the uri
  
          Returns:
              str: The power state