Configure Rest switch using Espeasy_Mega

Hi to everyone,

I have a wemos using Espeasy Mega. This wemos is connected directly to my boiler to switch on/off the battery. Some times, this wemos doesn’t receive the signal (i dunno why) and would like to create a rest switch on HA to force the on or the off.

the configuration is this one

imagen

When in1 has value 0, the battery are stoped, and when has value 1 are on.

How i can force the state of the in1?

thanks