How is one suppose to deal with an electronic lock during a Shabbat hotel stay?
There is a simple solution. All hotels have a manual security key as well. On Friday you should tell the hotel that you are a religious jew and don't want to activate the electric lock. They should provide you with a key. If for some reason you don't have a key there is no problem asking the hotel security guard to open your door on Shabbat (As long as he is not Jewish). Even though a non-Jew is not allowed to violate the Shabbat for a Jew (Shulchan Orech, Orech Chaim,247,1) , nevertheless, the guard is allowed to open the door for you becase he has the option of doing it with a key. Therefore even if he should use a magnetic card he did so on his own accord and not because of your request. (Mishna Brurah 276, subsection 31) It's worthwhile to check out the airconditioning and light systems as well. In many hotels there is an automatic switch that turn the systems off when you leave the room. This should be turned off for the Shabbat.