A rogue landlord used AI to try to trick a council into believing he had installed a smoke detector in a house he was subletting.