I need a device which can close the door automatically by pressing a button in remote (or from iphone, mac, whatever).
I need the door to operate normally which can be manually opened, closed, or left at mid-open. However, when I want I should be able to push a button from my bed and close automatically.
Find hardware for opening door. Like garge opener or gate opener
Then find hardware that may operate switch for door, esp8266controlled relay or sonoff work here. This device relay would connect across terminals for manual door switch
Just so we clear, manual open means “manually push button and door open by motor or other function vs automatic open where door open by motor or other function after sensor is tripped or some state is met”
You are looking for something similar to that used in hospital to open door for handicap accessible when press wall switch. I will see if I can find one. Swinging gate opener may work but I am not sure