Hi everyone, and thanks @Will_71 for the Thermostat integration
I have three electric heaters, each controlled by its own FIBARO FGS‑224 in wired pilot mode. Via Z-Wave JS UI, each module reports to Gladys with two switches, one per output.
Could the Thermostat integration allow selecting two existing switches as actuators in wired pilot mode? I could then configure a thermostat per heater and associate it with the two outputs of the corresponding module.
For each thermostat, we would define the on/off combination of the two outputs for the four commands Comfort, Eco, Frost Protection, and Off. The thermostat would apply this combination with each mode change, including via its programming. The mapping would be configurable to adapt to the wiring of each heater.
This would allow supporting the FGS‑224 and other dual-relay modules already recognized as switches in Gladys.
I can test on my three heaters if it helps. Thanks!
Wouldn’t it be possible via scenes? The trigger would be the command sent by the thermostat integration… I’m just saying that, but I haven’t checked it!
I have a first version for you to test. The Thermostat integration now accepts two switches instead of a pilot wire module, so no need for scenes anymore.
How it works
You create a thermostat per radiator, of type « Radiator with pilot wire » (the radiator regulates with its own thermostat) or « Virtual thermostat » (Gladys regulates on a temperature probe).
In the « Pilot wire » block, you choose « Two switches (two-relay module) », then the two outputs of your FGS-224.
A table gives the state of the two switches for each command. It is pre-filled with your table (Comfort off/off, Eco on/on, Frost protection off/on, Off on/off) and remains modifiable if a radiator is wired the other way around.
The thermostat then applies the correct combination for each mode change: schedule, preset chosen manually, open window (frost protection), off.
Two things to know
The two switches are reserved for the thermostat. If they are changed elsewhere (scene, dashboard), Gladys will restore the expected order in less than a minute. So, remember to deactivate your current scenes before testing.
Two relays give four orders: Comfort -1 °C and Comfort -2 °C are sent as Comfort.
For testing
The test image is willde71/gladys-test:pilot-wire-switches. It’s a development version: make a backup first, or test on a separate instance.
What I’m most interested in, as I don’t have the equipment to test: do the four commands arrive correctly on your three radiators, and does the transition from one command to another work properly (the two outputs are controlled one after the other)?