A programmable logic switch for controlling electrical utilities, including: - one or more control devices of the electrical utilities, activatable by a user and configured for generating respective command signals; - a serial interface for connecting the switch to an electrical bus to which other switches can be connected, characterized in that said serial interface is configured for receiving one or more input signals from other switches connected to the electrical bus, and for transmitting one or more output signals towards other switches connected to the electrical bus; the switch further comprising: - a programming interface configured for generating one or more programming signals as a function of programming data entered locally or remotely; - a control unit connected to the serial interface and to the programming interface, and being configured for: receiving the one or more input signals from the electrical bus, receiving the command signals from the one or more control devices, receiving the one or more programming signals, - an input device and output device having one or more input channels and one or more output channels respectively connectable to external apparatuses and electrical utilities and separate with respect to the serial interface; said input device and output device being connected to the control unit and being configured for generating one or more control signals of the electrical utilities or for receiving one or more external signals from the external apparatuses; said control unit being configured for generating the one or more output signals as a function of the contents of any combination among the one or more input signals, the command signals, the one or more programming signals, other programming data contained inside the control unit, and the one or more external signals. - one or more control devices of the electrical utilities, activatable by a user and configured for generating respective command signals; - a serial interface for connecting the switch to an electrical bus to which other switches can be connected, characterized in that said serial interface is configured for receiving one or more input signals from other switches connected to the electrical bus, and for transmitting one or more output signals towards other switches connected to the electrical bus; the switch further comprising: - a programming interface configured for generating one or more programming signals as a function of programming data entered locally or remotely; - a control unit connected to the serial interface and to the programming interface, and being configured for: receiving the one or more input signals from the electrical bus, - a programming interface configured for generating one or more programming signals as a function of programming data entered locally or remotely; - a control unit connected to the serial interface and to the programming interface, and being configured for: receiving the one or more input signals from the electrical bus, receiving the command signals from the one or more control devices, receiving the one or more programming signals, - an input device and output device having one or more input channels and one or more output channels respectively connectable to external apparatuses and electrical utilities and separate with respect to the serial interface; said input device and output device being connected to the control unit and being configured for generating one or more control signals of the electrical utilities or for receiving one or more external signals from the external apparatuses; - an input device and output device having one or more input channels and one or more output channels respectively connectable to external apparatuses and electrical utilities and separate with respect to the serial interface; said input device and output device being connected to the control unit and being configured for generating one or more control signals of the electrical utilities or for receiving one or more external signals from the external apparatuses; said control unit being configured for generating the one or more output signals as a function of the contents of any combination among the one or more input signals, the command signals, the one or more programming signals, other programming data contained inside the control unit, and the one or more external signals.