Advertisement
boelle11

Untitled

Feb 20th, 2022
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. blueprint:
  2. name: Smart Thermostat
  3. description: 'Based on wind direction thermostat is set to max'
  4. domain: automation
  5. input:
  6. weather:
  7. name: Weather
  8. description: Specify your weather to get the current outside wind direction from.
  9. selector:
  10. entity:
  11. domain: weather
  12. thermostat:
  13. name: Thermostat
  14. description: Specify your thermostat.
  15. selector:
  16. entity:
  17. domain: climate
  18. wind1:
  19. name: wind1
  20. description: "The ouside wind direction needs to be between this and the next"
  21. default: 123.75
  22. selector:
  23. number:
  24. step: 1
  25. min: 123.75
  26. max: 236.25
  27. unit_of_measurement: °
  28. wind2:
  29. name: wind2
  30. default: 236.25
  31. selector:
  32. number:
  33. step: 1
  34. min: 123.75
  35. max: 236.25
  36. unit_of_measurement: °
  37. temp_to_set:
  38. name: Temperature
  39. default: 23
  40. selector:
  41. number:
  42. min: 5
  43. max: 30
  44. unit_of_measurement: °
  45.  
  46. trigger:
  47. platform: numeric_state
  48. entity_id: !input weather
  49. attribute: wind_bearing
  50. above: !input wind1
  51. below: !input wind2
  52.  
  53. action:
  54. - service: climate.set_temperature
  55. target: !input thermostat
  56. data_template:
  57. temperature: !input temp_to_set
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement