I have a water pump on a smart switch. I want the switch to turn on in either of the following two situations:
A. Automated turn-on requires all three conditions to be true:
1. Water Pump Schedule helper is ON AND
2. input_boolean switch for Automating the Water Pump is ON AND
3. binary_sensor for monitoring the temperature of the water that is being pumped is ON (because the temp of the water is lower than my set water temp)
OR
B. Manual turn-on requires that the user has clicked a UI button tied to an input_boolean to manually turn on the water pump.
For some reason that I can’t figure out, my template is only listening for state changes tied to the schedule and the input_boolean for manual turn-on. Why isn’t the template listening for state changes to the binary_sensor or the input_boolean that’s tied to running the automation?
binary_sensor:
- platform: template
sensors:
house_call_for_hot_water:
friendly_name: "House Call For Hot Water"
value_template: >
{{ (states('schedule.house_water_heating_schedule') == 'on'
and states('input_boolean.run_house_hot_water_schedule') == 'on'
and states('binary_sensor.monitor_house_hot_water_temp_range') == 'on')
or states('input_boolean.house_manual_hot_water_on') == 'on'
}}
4 posts - 3 participants