Schizophrenic man torched his terraced Wakefield home during manic episode
He caused up to £10,000 worth of damage to the council property.
A man threw pans at emergency workers as they attempted to rescue him from his home that he was trying to torch.
The front door of Aaron Gavaghan’s home was engulfed in flames, Leeds Crown Court was told.
The 31-year-old was given a hospital order this week, meaning he must remain in a secure unit until he is deemed well enough to be released.
He had admitted charges of arson reckless as to whether life was endangered and criminal damage.
Prosecutor Zanisha Herbert said a 999 call was made by members of the public on January 18 last year, saying that Gavaghan was smashing the windows to his own property, an end terrace on Bamborough Street in Wakefield.


An ambulance crew arrived first and he began to hurl items through the windows at them.
The front door was on fire at this point but he continued to shout and throw pans at them.
At one stage negotiators were called to help entice Gavaghan from his home. He was eventually arrested and later refused to be interviewed by police, but did tell officers he was responsible.
The Wakefield Council-owned property sustained damage that cost between £5,000 and £10,000 to put right.
Gavaghan has 58 previous convictions for 100 offences, including multiple for criminal damage.
Mitigating, Sam Roxborough said Gavaghan had set fire to the door to only harm himself.
The court heard that he has an anti-social personality disorder and a chronic psychotic disorder, likely to be schizophrenia.
Judge Penelope Belcher gave him a Section 37 hospital order with Section 41 restrictions.
This means he will be detained in a psychiatric unit rather than prison, and his eventual release can only be sanctioned by the secretary of state.