@mtiutiu Thank you for the information! I will give it a try with the bluetooth module.
I use Home Assistant as the controller and store the relay state in the EEPROM (according to the relay example) and on top of that I have configured the node to send updates of the state (taken form EEPROM) to home assistant periodically.