Skip to content
Snippets Groups Projects
Commit efa7991d authored by Jan Grewe's avatar Jan Grewe
Browse files

fan control theoretically working through lambda

parent cdcb4c26
No related branches found
No related tags found
No related merge requests found
...@@ -59,49 +59,57 @@ sensor: ...@@ -59,49 +59,57 @@ sensor:
battery_voltage: battery_voltage:
name: "Battery Voltage" name: "Battery Voltage"
temperature: temperature:
id: "temperature" id: "ble_temperature"
name: "Temperature" name: "Temperature"
on_value_range: on_value_range:
- above: ${temperature_fan_on} - above: ${temperature_fan_on}
then:
- if:
condition:
- sensor.in_range:
id: "humidity"
above: ${humidity_fan_off}
then: then:
- switch.turn_on: propbox_fan - switch.turn_on: propbox_fan
# then:
# - if:
# condition:
# and:
# - lambda: return (x > ${humidity_fan_off});
# - switch.is_off: propbox_fan
# then:
# - switch.turn_on: propbox_fan
- below: ${temperature_fan_off} - below: ${temperature_fan_off}
then:
- if:
condition:
- sensor.in_range:
id: "humidity"
below: ${humidity_fan_on}
then: then:
- switch.turn_off: propbox_fan - switch.turn_off: propbox_fan
# then:
# - if:
# condition:
# and:
# - lambda: return (x < ${humidity_fan_on});
# - switch.is_on: propbox_fan
# then:
# - switch.turn_off: propbox_fan
humidity: humidity:
id: "humidity" id: "ble_humidity"
name: "Humidity" name: "Humidity"
on_value_range: on_value_range:
- above: ${humidity_fan_on} - above: ${humidity_fan_on}
then:
- if:
condition:
- sensor.in_range:
id: "temperature"
above: ${temperature_fan_off}
then: then:
- switch.turn_on: propbox_fan - switch.turn_on: propbox_fan
# then:
# - if:
# condition:
# and:
# - lambda: return (x > ${temperature_fan_off});
# - switch.is_off: propbox_fan
# then:
# - switch.turn_on: propbox_fan
- below: ${humidity_fan_off} - below: ${humidity_fan_off}
then:
- if:
condition:
- sensor.in_range:
id: "temperature"
below: ${temperature_fan_on}
then: then:
- switch.turn_off: propbox_fan - switch.turn_off: propbox_fan
# then:
# - if:
# condition:
# and:
# - lambda: return (x < ${temperature_fan_on});
# - switch.is_on: propbox_fan
# then:
# - switch.turn_off: propbox_fan
text_sensor: text_sensor:
!include include/text_sensors.yaml !include include/text_sensors.yaml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment