I am looking for a movie title, the topic might best be called "smart home dystopia".
In the movie, there is an AI which controls the home/house/apartment, which also has the specific task to protect its inhabitant (a single man, at least I do not remember other family members).
This AI comes to the conclusion that the actual danger lies in the outside world and thus locks in the man to protect him. It follows some arguments between the man and the AI on this conclusion (AI explains her reasoning, etc.).
I have no recollection how the film ends. I remember I saw fragments of it on TV some 30 years back, from memory I would say it might be from the seventies.
I was not lucky searching for this title, any hints you might give me are appreciated.