Caldin-Maldin

esphome

Nov 6th, 2023
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. sensor:
  2. - platform: homeassistant
  3. name: Temperature Sensor Boiler
  4. entity_id: sensor.boiler_temperature
  5. unit_of_measurement: °C
  6. accuracy_decimals: 0
  7. device_class: temperature
  8. id: boiler
  9.  
  10. - platform: template
  11. name: "Template Sensor "
  12. id: "average"
  13. accuracy_decimals: 0
  14. unit_of_measurement: °C
  15. lambda: |-
  16. return (id(value_20) + id(value_21) + id(value_22))/3;
  17.  
  18. time:
  19. - platform: sntp
  20. timezone: "Asia/Yekaterinburg"
  21. id: time_now
  22. on_time:
  23. - seconds: 0
  24. minutes: 0
  25. hours: /1
  26. then:
  27. - lambda: |-
  28. id(value_01) = id(room).state;
  29. # id(value_{id(time_now).now().hour;}) = id(boiler).state;
  30.  
  31. globals:
  32. - id: value_00
  33. type: float
  34. initial_value: "0"
  35. - id: value_01
  36. type: float
  37. initial_value: "0"
  38. - id: value_02
  39. type: float
  40. initial_value: "0"
  41. - id: value_03
  42. type: float
  43. initial_value: "0"
  44. - id: value_04
  45. type: float
  46. initial_value: "0"
  47. - id: value_05
  48. type: float
  49. initial_value: "0"
  50. - id: value_06
  51. type: float
  52. initial_value: "0"
  53. - id: value_07
  54. type: float
  55. initial_value: "0"
  56. - id: value_08
  57. type: float
  58. initial_value: "0"
  59. - id: value_09
  60. type: float
  61. initial_value: "0"
  62. - id: value_10
  63. type: float
  64. initial_value: "0"
  65. - id: value_11
  66. type: float
  67. initial_value: "0"
  68. - id: value_12
  69. type: float
  70. initial_value: "0"
  71. - id: value_13
  72. type: float
  73. initial_value: "0"
  74. - id: value_14
  75. type: float
  76. initial_value: "0"
  77. - id: value_15
  78. type: float
  79. initial_value: "0"
  80. - id: value_16
  81. type: float
  82. initial_value: "0"
  83. - id: value_17
  84. type: float
  85. initial_value: "0"
  86. - id: value_18
  87. type: float
  88. initial_value: "0"
  89. - id: value_19
  90. type: float
  91. initial_value: "0"
  92. - id: value_20
  93. type: float
  94. initial_value: "0"
  95. - id: value_21
  96. type: float
  97. initial_value: "0"
  98. - id: value_22
  99. type: float
  100. initial_value: "0"
  101. - id: value_23
  102. type: float
  103. initial_value: "0"
Advertisement
Add Comment
Please, Sign In to add comment