At least in California you can store your gun however you want *unless* you have reason to believe there will be children in your home. In which case if they get a hold of the gun and hurt someone you are responsible if you didn't have the gun locked somehow. This is one of the few reasonable California gun laws. There is so much backlash about any gun restrictions because lawmakers are constantly proposing stupid gun laws. Like the repeated attempts in California to make it difficult to get ammo and to track every ammo purchase. As if someone is going to walk into a school with 10K rounds in his backpack. To non gun owners: ammo is extremely heavy. Most people planning a killing spree aren't going to drag around a cart with 10K rounds. Tracking ammo purchases will just tell you who goes out shooting a lot.
The idea for this type of gun lock is not new. The fear is that once the technology is there it eventually becomes mandatory. See all the mess over microstamping. And most gun owners don't want to deal with the extra electronics for a safety device they don't need.