EZAIOT_thermostat_smartplug.yaml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. name: Thermostat smartplug
  2. products:
  3. # Brand name: EZAIOT
  4. # Product link: aliexpress.com/item/1005007122621628.html
  5. - id: msclnsfe0q3yd39q
  6. name: EZAIoT socket thermostat
  7. primary_entity:
  8. entity: climate
  9. translation_key: thermostat
  10. dps:
  11. - id: 4
  12. type: string
  13. name: hvac_mode
  14. mapping:
  15. - dps_val: "heat"
  16. value: "heat"
  17. - dps_val: "cool"
  18. value: "cool"
  19. - dps_val: "plug"
  20. value: "off"
  21. - id: 6
  22. type: integer
  23. name: current_temperature
  24. mapping:
  25. - scale: 10
  26. - id: 9
  27. type: integer
  28. name: max_temperature
  29. optional: true
  30. mapping:
  31. - scale: 10
  32. - id: 12
  33. type: integer
  34. name: min_temperature
  35. optional: true
  36. mapping:
  37. - scale: 10
  38. - id: 17
  39. type: integer
  40. name: temperature
  41. unit: C
  42. mapping:
  43. - scale: 10
  44. - id: 114
  45. type: integer
  46. name: hvac_action
  47. mapping:
  48. - dps_val: 0
  49. constraint: hvac_mode
  50. conditions:
  51. - dps_val: false
  52. value: "off"
  53. - dps_val: true
  54. value: idle
  55. - dps_val: 1
  56. constraint: hvac_mode
  57. conditions:
  58. - dps_val: heat
  59. value: heating
  60. - dps_val: cool
  61. value: cooling
  62. secondary_entities:
  63. # Control
  64. # Control relay in plug mode
  65. - entity: switch
  66. name: Relay Control
  67. dps:
  68. - id: 2
  69. name: switch
  70. type: boolean
  71. # Turn on the display on press for timeout time
  72. - entity: button
  73. name: Display On
  74. dps:
  75. - id: 118
  76. name: button
  77. optional: true
  78. type: boolean
  79. # Diagnostics
  80. - entity: binary_sensor
  81. class: power
  82. category: diagnostic
  83. dps:
  84. - id: 114
  85. type: integer
  86. name: sensor
  87. mapping:
  88. - dps_val: 0
  89. value: false
  90. - dps_val: 1
  91. value: true
  92. # Configuration
  93. # Child Lock
  94. - entity: lock
  95. translation_key: child_lock
  96. category: config
  97. dps:
  98. - id: 110
  99. name: lock
  100. type: boolean
  101. # Display Timeout
  102. - entity: select
  103. name: Display Timeout
  104. icon: "mdi:timer-cog-outline"
  105. category: config
  106. dps:
  107. - id: 117
  108. type: string
  109. name: option
  110. optional: true
  111. mapping:
  112. - dps_val: "15s"
  113. value: "15s"
  114. - dps_val: "30s"
  115. value: "30s"
  116. - dps_val: "60s"
  117. value: "60s"
  118. - dps_val: "120s"
  119. value: "120s"
  120. # High temperature alarm audio
  121. - entity: switch
  122. category: config
  123. name: Audio Alarm High temperature
  124. icon: "mdi:thermometer-alert"
  125. dps:
  126. - id: 8
  127. name: switch
  128. type: boolean
  129. # High temperature alarm setting
  130. - entity: number
  131. name: Alarm Maximum temperature
  132. category: config
  133. icon: "mdi:thermometer-chevron-up"
  134. dps:
  135. - id: 9
  136. type: integer
  137. name: value
  138. optional: true
  139. unit: C
  140. mapping:
  141. - scale: 10
  142. range:
  143. min: -300
  144. max: 1200
  145. # Low temperature alarm audio
  146. - entity: switch
  147. category: config
  148. name: Audio Alarm Low temperature
  149. icon: "mdi:thermometer-alert"
  150. dps:
  151. - id: 11
  152. name: switch
  153. optional: true
  154. type: boolean
  155. # Low temperature alarm setting
  156. - entity: number
  157. name: Alarm Minimum temperature
  158. category: config
  159. icon: "mdi:thermometer-chevron-down"
  160. dps:
  161. - id: 12
  162. type: integer
  163. name: value
  164. optional: true
  165. unit: C
  166. mapping:
  167. - scale: 10
  168. range:
  169. min: -300
  170. max: 1200
  171. # Cooling Delay
  172. # Delay on
  173. - entity: switch
  174. category: config
  175. name: Cooling Delay
  176. icon: "mdi:pump"
  177. dps:
  178. - id: 13
  179. name: switch
  180. optional: true
  181. type: boolean
  182. # Delay time (minutes)
  183. - entity: number
  184. name: Cooling Delay time
  185. category: config
  186. icon: "mdi:pump"
  187. dps:
  188. - id: 14
  189. type: integer
  190. name: value
  191. optional: true
  192. unit: min
  193. range:
  194. min: 0
  195. max: 1200
  196. # Frost protection
  197. - entity: switch
  198. category: config
  199. name: Frost protection
  200. icon: "mdi:snowflake-thermometer"
  201. dps:
  202. - id: 113
  203. name: switch
  204. type: boolean
  205. # Difference Hysteresis
  206. - entity: number
  207. name: Hysteresis
  208. category: config
  209. icon: "mdi:thermometer"
  210. mode: "box"
  211. dps:
  212. - id: 111
  213. type: integer
  214. name: value
  215. optional: true
  216. mapping:
  217. - scale: 10
  218. unit: C
  219. range:
  220. min: 0
  221. max: 100
  222. # Temperature correction
  223. - entity: number
  224. name: Temp Correction
  225. category: config
  226. icon: "mdi:thermometer"
  227. mode: "box"
  228. dps:
  229. - id: 18
  230. type: integer
  231. name: value
  232. optional: true
  233. mapping:
  234. - scale: 10
  235. unit: C
  236. range:
  237. min: -150
  238. max: 150
  239. # Brightness
  240. - entity: select
  241. name: Brightness
  242. icon: "mdi:brightness-6"
  243. category: config
  244. dps:
  245. - id: 115
  246. type: string
  247. name: option
  248. optional: true
  249. mapping:
  250. - dps_val: "Low"
  251. value: "Low"
  252. - dps_val: "Middle"
  253. value: "Medium"
  254. - dps_val: "High"
  255. value: "High"
  256. # Last State
  257. - entity: switch
  258. category: config
  259. name: Restore Last State
  260. icon: "mdi:restore"
  261. dps:
  262. - id: 116
  263. name: switch
  264. optional: true
  265. type: boolean