I build this Device so my daughter could send “cannot sleep” messages to our Phones.
DC-DC Modul: https://shorturl.at/Lm2Zz Aliexpress
The ESP is flashed with Tasmota: https://templates.blakadder.com/ESP-01S.html
Integrated “Nightlight” switched by ON/OFF Togglebutton.
On D3(GPIO0) is an temporary Pushbutton:

SwitchTopic 1 - Send MQTT Message directly
SwitchMode 2 - NO = False/NC = True
MQTT (Sonoff Adapter) as transport Service between Button and IoBroker
An configured Pushover or simular Service is needed. (Iobroker to Smartphone)
My Blockly locks like:

The Lid ist hold by M3x8mm ButtonHead Bolts and I used an green LED (2-2,2v)
Have Fun and sorry for the QuicknDirty Circuit Diagramm ;-)
The author marked this model as their own original creation.