My house / office is too cluttery for this to work well for me. It's a good idea though.
The next morning wonder why you have fire extinguisher dust everywhere and you'll remember!
First Alert even makes a handy portable fire extinguisher that's perfect for your bedstand: https://www.firstalert.com/us/en/products/fire-extinguishers...