Advertisement
ptr727

Untitled

Nov 15th, 2024 (edited)
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.96 KB | None | 0 0
  1. input_boolean:
  2.   stairs_ceiling_fan_control:
  3.     name: Stairs Ceiling Fan Control
  4.     icon: mdi:fan
  5.  
  6. climate:
  7.   - platform: generic_thermostat
  8.     name: Stairs Ceiling Fan Thermostat
  9.     unique_id: stairs_ceiling_fan_thermostat
  10.     heater: input_boolean.stairs_ceiling_fan_control
  11.     target_sensor: sensor.upstairs_temperature
  12.     min_temp: 60
  13.     max_temp: 80
  14.     ac_mode: true
  15.     target_temp: 75
  16.     cold_tolerance: 0.25
  17.     hot_tolerance: 0.25
  18.     min_cycle_duration:
  19.       minutes: 1
  20.     initial_hvac_mode: "cool"
  21.     away_temp: 30
  22.     precision: 0.1
  23.  
  24. alias: Stairs Ceiling Fan On
  25. description: ""
  26. triggers:
  27.   - trigger: state
  28.     entity_id:
  29.      - input_boolean.stairs_ceiling_fan_control
  30.       - climate.upstairs
  31.       - climate.downstairs
  32. conditions:
  33.   - condition: or
  34.     conditions:
  35.       - condition: state
  36.         entity_id: input_boolean.stairs_ceiling_fan_control
  37.         state: "on"
  38.       - condition: state
  39.         entity_id: climate.upstairs
  40.         attribute: fan
  41.         state: "on"
  42.       - condition: state
  43.         entity_id: climate.downstairs
  44.         attribute: fan
  45.         state: "on"
  46. actions:
  47.   - action: fan.turn_on
  48.     metadata: {}
  49.     data: {}
  50.     target:
  51.       entity_id: fan.stairs_ceiling_fan
  52. mode: single
  53.  
  54. alias: Stairs Ceiling Fan Off
  55. description: ""
  56. triggers:
  57.   - trigger: state
  58.     entity_id:
  59.      - input_boolean.stairs_ceiling_fan_control
  60.       - climate.upstairs
  61.       - climate.downstairs
  62. conditions:
  63.   - condition: not
  64.     conditions:
  65.       - condition: state
  66.         entity_id: input_boolean.stairs_ceiling_fan_control
  67.         state: "on"
  68.       - condition: state
  69.         entity_id: climate.upstairs
  70.         attribute: fan
  71.         state: "on"
  72.       - condition: state
  73.         entity_id: climate.downstairs
  74.         attribute: fan
  75.         state: "on"
  76. actions:
  77.   - action: fan.turn_off
  78.     metadata: {}
  79.     data: {}
  80.     target:
  81.       entity_id: fan.stairs_ceiling_fan
  82. mode: single
  83.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement