def process_home_manager_heartbeat(self):
    self.heartbeat_count += 1
    if (self.heartbeat_count == 120):
        self.send_heartbeat_to_home_manager()
    if (self.heartbeat_count > 200):
        self.print_status('Home Manager Heartbeat Lost. Setting Aircon to Thermo Off Mode on ')
        self.client.publish('AirconStatus', '{"service": "Restart"}')
        self.no_heartbeat_ack = True
        self.process_thermo_off_command()
        time.sleep(10)
        os.system('sudo reboot')
def process_home_manager_heartbeat(self):
    self.heartbeat_count += 1
    if (self.heartbeat_count == 120):
        self.send_heartbeat_to_home_manager()
    if (self.heartbeat_count > 200):
        self.print_status('Home Manager Heartbeat Lost. Setting Aircon to Thermo Off Mode on ')
        self.client.publish('AirconStatus', '{"service": "Restart"}')
        self.no_heartbeat_ack = True
        self.process_thermo_off_command()
        time.sleep(10)
        os.system('sudo reboot')