The application discloses an electronic door lock, which comprises a shell
assembly, a protection piece, an alarm module, a sensing module and a control module, the shell
assembly is provided with a charging hole and a key hole, the protection piece is movably arranged on the shell
assembly, and the protection piece is used for opening and closing the charging hole and the key hole; the alarm module is arranged on the shell assembly; the sensing module is arranged on the shell assembly and can generate a sensing
signal when the protection piece opens the charging hole or the key hole; and the control module is arranged on the shell assembly and electrically connected with the alarm module and the sensing module respectively, so that the control module can control the alarm module to work according to the sensing
signal, the alarm module can work when the protection piece opens the charging hole and the key hole, an
alarm signal is sent to prompt a user, the user can determine that the charging hole or the key hole is opened according to the
alarm signal, and the use safety of the electronic door lock is improved.