Using input boolean you’d need to have the option to disable the control. Currently this is not supported.
Could there be another approach to the automation you are trying to achieve ?
Are they physical switches? If so, most switches are made to do automation second to actually working like a switch. What I’m trying to say is if they are physical switches, both would probably work as physical switches, then HA would recognize the new state and adjust. But the adjustment will lag by a second or so. Can you be more specific on what you are trying to do and what equipment you have to try and do it with?
If you have a physical switch that is able to report its status you can create an automation that checks this and acts upon it. Should be easy to do. But you need a switch with reliable status reporting. How do you want to activate those switches ?
One is a boiler, for which is fine some hours during 24h (can be a preset timing)
The other is an electric heater which should work for some hours during 24h (can be a preset timing).
But some manual (with manual I mean with HASS interface or a call with HTTP SHORTCUT of some sort) changes should be allowed (for the electric heater mainly).
Ideally even manual changes too
problem is with manual switches, the initial connection is going to be made and the startup current (which for motors is the large part normally) will already be flowing before HA can react to it through an automation. The best way to do it would be to have 4 switches (yea I know). Two that do nothing but signal HA to turn the equipment on or off. Two that connect to the actual equipment that only HA controls. That way when HA gets a request to turn something on, it can check the status of the other, turn it off if needed before it turns on the second one. The extra switches that report to HA can either be HA input booleans that you control from your phone or a screen somewhere, or a simple pushbutton switch somewhere. They don’t even have to be full house power, they can be simple 5 volt switches on a battery that talk through zwave or a serial connection to HA.
@turboc is absolutely right. The only way to have a reliable solution is to do any switching through hass. You could use manual switching. But it should be sending it’s signals to hass. Not directly to your devices.