Most likely around 1956 to 1958, not long after Ralph Baer joined Sanders Associates as a staff engineer working under the manager of the Equipment Design Division.
The context matters. Baer was an engineer at a defence contractor, surrounded by electronic equipment, and the thought that struck him was that this technology could do more than track targets — it could be played with. That idea sat largely undeveloped for years before he was in a position to pursue it.
He eventually did, and the work produced the Brown Box, which became the basis for the Magnavox Odyssey, generally regarded as the first home video game console. So the concept dates to the late fifties, even though the product arrived in the early seventies.