Virtual switch, MQTT boolean?


is it possible to mimic Home Assistant input boolean functionality, basically a virtual switch for modes, with some sort of an arbitrary switch entry in Z2M?

The goal is that Z2M/MQTT holds all the states.
Something important as a house mode switch should not be in one place (HASS), and everything that depends on it on another (Z2M).