def is_powered_on(self):
host = '<STR_LIT>'.format(self.ip)<EOL>try:<EOL><INDENT>HTTPConnection(host, timeout=<NUM_LIT:2>).request('<STR_LIT:GET>', '<STR_LIT>')<EOL><DEDENT>except (ConnectionRefusedError, socket.timeout):<EOL><INDENT>log.debug('<STR_LIT>',<EOL>self.ip, self.port)<EOL>return False<EOL><DEDENT>log.debug('<STR_LIT>', self.ip, self.port)<EOL>return True<EOL>
Get power status of device.

        The set-top box can't explicitly powered on or powered off the device.
        The power can only be toggled.

        To find out the power status of the device a little trick is used.
        When the set-top box is powered a web server is running on port 62137
        of the device server a file at /DeviceDescription.xml. By checking if
        this file is available the power status can be determined.

        :return: Boolean indicitation if device is powered on.