Advertisement
boelle11

Untitled

Feb 20th, 2022
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 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 sensor to get the current outside wind direction from.
  9. selector:
  10. entity:
  11. domain: sensor
  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: 0
  26. max: 360
  27. unit_of_measurement: °
  28. wind2:
  29. name: wind2
  30. default: 236.25
  31. selector:
  32. number:
  33. step: 1
  34. min: 0
  35. max: 360
  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. notify_device:
  46. name: Device
  47. description: The device must run the official Home Assistant app to receive notifications.
  48. default: false
  49. selector:
  50. device:
  51. integration: mobile_app
  52.  
  53. trigger:
  54. platform: numeric_state
  55. entity_id: !input weather
  56. above: !input wind1
  57. below: !input wind2
  58.  
  59. action:
  60. - service: climate.set_temperature
  61. data_template:
  62. entity_id: !input thermostat
  63. temperature: !input temp_to_set
  64. - domain: mobile_app
  65. type: notify
  66. device_id: !input notify_device
  67. message: "Termostat sat til {{ temperature }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement