I like the idea ...
Mostly bcs its exactly the same as i suggested aproximately 3/4 year ago, when i was thinking about some energy bar that would be deplenishing by ingame activity ... same princip, just turned around.
Problem here is that people would be pissed off ...
Since everyone wish to rest in exactly that situation, when THEY see fit ... and that is impossible with litteraly any other system. :-/
So far food for resting seems like best compromise, especialy if part of difficiulty settings would be amount of food needed for Long Rest.