I have 9 different “dual smart thermostats” custom components on two different air handlers (5 on one, 4 on the other). Each thermostat has a switch group for heater and cooler. Heater switch group is a damper, zone valve, and heat signal. Cooler switch group is a damper and compressor signal. The fan entity in the thermostats are to the respective switch to signal for that air handler. Inside the air handlers there are 3 wires that can connect to the fan motor that sets the air handler fan speed. 1 wire for each (low, med, high). Only one can be connected to the fan motor at a time. These 3 wires are on 3 different switches controlled in HA and all switches are connected to the fan motor wire. What I am trying to do set an automation, helper, scene, or script to determine if 1, 2, or 3 or more dampers are open. If only 1 damper is open then the switch for low is on, other 2 off. If 2 dampers are open then switch for med is on, other 2 off. If 3 or more dampers open then switch for high is on, other 2 off.
How do I do this? Helper can only group the switches but not decide. Automation can set conditions, but I would need to make a ton of automations for each possible outcome, is there a cleaner way to do this that I just don’t know about?
How can i hide the switches for this to work. The wires have to be connected via switch (m5stack4relay). I didn’t see anything in that templating that allows me to set this up the way i have to. I admit, I may not be reading this correctly.
Thank you, I don’t intend for you to do the work, I am just trying to figure out how to start and I don’t know how with the given options.
switch.hot_water_tank_1_relay_17 #damper for zone in AH2
switch.hot_water_tank_1_relay_20 #damper for zone in AH2
switch.hot_water_tank_1_relay_19 #damper for zone in AH2
switch.hot_water_tank_1_relay_18 #damper for zone in AH2
switch.hot_water_tank_1_relay_24 #damper for zone in AH2
switch.core_sensor_hub_relay_30 #AH2 fan relay
switch.core_sensor_hub_relay_32 #AH2 fan speed low
switch.core_sensor_hub_relay_35 #AH2 fan speed med
switch.core_sensor_hub_relay_36 #AH2 fan speed high
switch.hot_water_tank_1_relay_13 #damper for zone in AH1
switch.hot_water_tank_1_relay_14 #damper for zone in AH1
switch.hot_water_tank_1_relay_15 #damper for zone in AH1
switch.hot_water_tank_1_relay_16 #damper for zone in AH1
switch.core_sensor_hub_relay_26 #AH1 fan relay
switch.core_sensor_hub_relay_28 #AH1 fan speed low
switch.core_sensor_hub_relay_33 #AH1 fan speed med
switch.core_sensor_hub_relay_34 #AH1 fan speed high
Incredible. I did not know that you could add that in the way you did with variables. I have so much to learn. Thank you. This makes total sense now that I see it.
If you try to turn the fan on and there are no dampers open, it should immediately turn off.
Likewise, selecting a fan preset mode that is not compatible with the number of dampers open will revert the fan preset to the valid state immediately.
I also do not see the fan set speed script in the fan template, there are preset scripts listed there, but I do not see a preset script example, is that supposed to be the set speed script?
ok, that is what I was in the process of doing because I was assuming, thank you for retyping. Where do I add this set speed script into the fan template above?