mqtt.yaml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. sensor:
  2. - name: "Temperatur Hällby"
  3. state_topic: "micke/outside/temperature"
  4. unit_of_measurement: "°C"
  5. - name: Lux Hällby
  6. state_topic: "micke/lux/lux_calibrated"
  7. unit_of_measurement: "Lux"
  8. - name: Lux outside the garage
  9. state_topic: "garage/ambient/lux"
  10. unit_of_measurement: "lx"
  11. device_class: illuminance
  12. state_class: measurement
  13. availability:
  14. - topic: "garage/multi-sensor/status"
  15. payload_available: "online"
  16. payload_not_available: "offline"
  17. - name: SMHI Temperature
  18. state_topic: "sensors/outside/smhiTemperature"
  19. unit_of_measurement: "°C"
  20. - name: Frank Temperature
  21. state_topic: "sensors/outside/frankTemperature"
  22. unit_of_measurement: "°C"
  23. - name: Garage Ambiant Temperature
  24. state_topic: "garage/ambiant-temperature"
  25. unit_of_measurement: "°C"
  26. device_class: temperature
  27. state_class: measurement
  28. availability:
  29. - topic: "garage/multi-sensor/status"
  30. payload_available: "online"
  31. payload_not_available: "offline"
  32. - name: Garage Inside Temperature
  33. state_topic: "garage/temperature"
  34. unit_of_measurement: "°C"
  35. device_class: temperature
  36. state_class: measurement
  37. availability:
  38. - topic: "garage/multi-sensor/status"
  39. payload_available: "online"
  40. payload_not_available: "offline"
  41. - name: Garage Multi Sensor WiFi Signal Strength
  42. state_topic: "garage/multi-sensor/wifi-signal-strength"
  43. unit_of_measurement: "dBm"
  44. availability:
  45. - topic: "garage/multi-sensor/status"
  46. payload_available: "online"
  47. payload_not_available: "offline"
  48. - name: LVP Heater Accumulated Energy
  49. state_topic: "shellypmminig3-5432046a16e8/status/pm1:0"
  50. value_template: "{{ value_json.aenergy.total }}"
  51. unit_of_measurement: "Wh"
  52. device_class: energy
  53. state_class: total_increasing
  54. - name: LVP Heater Power
  55. state_topic: "shellypmminig3-5432046a16e8/status/pm1:0"
  56. value_template: "{{ value_json.apower }}"
  57. unit_of_measurement: "W"
  58. device_class: power
  59. state_class: measurement
  60. - name: Test of Ext Antenna WiFi Signal Strength
  61. state_topic: "ext-wifi-antenna-test/sensor/wifi_signal_strength/state"
  62. availability:
  63. - topic: "ext-wifi-antenna-test/status"
  64. payload_available: "online"
  65. payload_not_available: "offline"
  66. unit_of_measurement: "dBm"
  67. #device_class: signal_strength
  68. #state_class: measurement
  69. - name: Test TSL2561 Light Sensor
  70. state_topic: "ext-wifi-antenna-test/sensor/tsl2561_light_sensor/state"
  71. unit_of_measurement: "lx"
  72. availability:
  73. - topic: "ext-wifi-antenna-test/status"
  74. payload_available: "online"
  75. payload_not_available: "offline"
  76. #device_class: illuminance
  77. #state_class: measurement
  78. - name: Test DS18B20 Temp Sensor
  79. state_topic: "ext-wifi-antenna-test/sensor/garage_temperature/state"
  80. availability:
  81. - topic: "ext-wifi-antenna-test/status"
  82. payload_available: "online"
  83. payload_not_available: "offline"
  84. unit_of_measurement: "°C"
  85. # --------------------------------------- For Test ---------------------------------------
  86. #- name: Limedal Hottub Water Temperature
  87. # state_topic: "limedal-hottub/sensor/water_temperature/state"
  88. # unit_of_measurement: "°C"
  89. #- name: Limedal Hottub WiFi Signal Strength
  90. # state_topic: "limedal-hottub/sensor/wifi_signal_strength/state"
  91. # unit_of_measurement: "dBm"
  92. light:
  93. - schema: json
  94. name: "Kitchen worktop 4K"
  95. unique_id: "kitchen_worktop_lights_4K"
  96. state_topic: "kitchen/worktop/lights_4K"
  97. command_topic: "kitchen/worktop/lights_4K/set"
  98. # availability:
  99. # - topic: "kitchen/worktop/lights_4K/available"
  100. retain: true
  101. optimistic: false
  102. qos: 0
  103. brightness_scale: 1000
  104. brightness: true
  105. - schema: json
  106. name: "Kitchen worktop 27K"
  107. unique_id: "kitchen_worktop_lights_27K"
  108. state_topic: "kitchen/worktop/lights_27K"
  109. command_topic: "kitchen/worktop/lights_27K/set"
  110. # availability:
  111. # - topic: "kitchen/worktop/lights_27K/available"
  112. retain: true
  113. optimistic: false
  114. qos: 0
  115. brightness_scale: 1000
  116. brightness: true
  117. #light:
  118. # - name: "Front Door Light"
  119. # schema: template
  120. # unique_id: "shelly1minig3_front_door_light"
  121. # command_topic: "shelly1minig3-5432046e1e88/rpc"
  122. # command_on_template: '{"id":124, "src":"my_shelly", "method":"Switch.Set", "params":{"id":0, "on":true}}'
  123. # command_off_template: '{"id":124, "src":"my_shelly", "method":"Switch.Set", "params":{"id":0, "on":false}}'
  124. # state_topic: "shelly1minig3-5432046e1e88/events/rpc"
  125. # state_template: >
  126. # {% if value_json.method == "NotifyStatus" %}
  127. # {{ "on" if value_json.params["switch:0"].output else "off" }}
  128. # {% else %}
  129. # {{ states("light.front_door_light") }}
  130. # {% endif %}
  131. # retain: false
  132. # optimistic: false
  133. # availability_topic: "shelly1minig3-5432046e1e88/online"
  134. # payload_available: "true"
  135. # payload_not_available: "false"
  136. binary_sensor:
  137. - name: "Kitchen worklight switch"
  138. unique_id: "kitchen_worklight_switch"
  139. state_topic: "kitchen/worklight_switch"
  140. availability:
  141. - topic: "kitchen/worklight_switch/available"
  142. qos: 0
  143. device_class: power
  144. - name: "Kitchen Fridge Door"
  145. unique_id: "kitchen_fridge_door"
  146. state_topic: "kitchen/fridge/doorState"
  147. availability:
  148. - topic: "kitchen/fridge/available"
  149. qos: 0
  150. device_class: door
  151. payload_on: "open"
  152. payload_off: "closed"
  153. - name: "Kitchen Freezer Door"
  154. unique_id: "kitchen_freezer_door"
  155. state_topic: "kitchen/freezer/doorState"
  156. availability:
  157. - topic: "kitchen/fridge/available"
  158. qos: 0
  159. device_class: door
  160. payload_on: "open"
  161. payload_off: "closed"
  162. - name: "Mouse Detector"
  163. unique_id: "kitchen_mouse_detector"
  164. state_topic: "kitchen/mouse/motion"
  165. payload_on: "ON"
  166. payload_off: "OFF"
  167. availability_topic: "kitchen/mouse/status"
  168. payload_available: "online"
  169. payload_not_available: "offline"
  170. device_class: motion
  171. switch:
  172. - name: "Kitchen Audible Alarm"
  173. state_topic: "kitchen/alarm/state"
  174. command_topic: "kitchen/alarm/set"
  175. availability:
  176. - topic: "kitchen/alarm/available"
  177. payload_on: "on"
  178. payload_off: "off"
  179. state_on: "on"
  180. state_off: "off"
  181. retain: true
  182. qos: 1
  183. unique_id: "kitchen_audible_alarm"
  184. #- name: "Limedal Hottub Strong LED Light"
  185. # state_topic: "limedal-hottub/switch/strong_led_switch/state"
  186. # command_topic: "limedal-hottub/switch/strong_led_switch/command"
  187. # payload_on: "ON"
  188. # payload_off: "OFF"
  189. # state_on: "ON"
  190. # state_off: "OFF"
  191. # unique_id: "limedal_hottub_strong_led_light"
  192. #- name: "Front Door Light"
  193. # unique_id: "shelly1minig3_front_door_light"
  194. # state_topic: "shelly1minig3-front-door/relay/0/status"
  195. # command_topic: "shelly1minig3-front-door/command/switch:0"
  196. # availability:
  197. # - topic: "shelly1minig3-front-door/online"
  198. # payload_on: "on"
  199. # payload_off: "off"
  200. # state_on: "on"
  201. # state_off: "off"
  202. # retain: true
  203. # qos: 1
  204. #- unique_id: shelly1minig3_front_door_light
  205. # name: "Front Door Light"
  206. # state_topic: "shelly1minig3-5432046e1e88/events/rpc"
  207. # value_template: >
  208. # {% if value_json.method == "NotifyStatus" %}
  209. # {{ "ON" if value_json.params["switch:0"].output else "ON" }}
  210. # {% else %}
  211. # {{ states("switch.front_door_light") }}
  212. # {% endif %}
  213. # command_topic: "shelly1minig3-5432046e1e88/rpc"
  214. # payload_on: '{"id":1,"src":"ha","method":"Switch.Set","params":{"id":0,"on":true}}'
  215. # payload_off: '{"id":1,"src":"ha","method":"Switch.Set","params":{"id":0,"on":false}}'
  216. # qos: 1
  217. # retain: true
  218. # payload_available: "true"
  219. # state_on: "ON"
  220. # state_off: "OFF"
  221. # - unique_id: shelly1minig3_wood_shed_light
  222. # name: "Wood Shed Light"
  223. # state_topic: "shelly1minig3-5432046da248/events/rpc"
  224. # value_template: >
  225. # {% if value_json.method == "NotifyStatus" %}
  226. # {{ "ON" if value_json.params["switch:0"].output else "ON" }}
  227. # {% else %}
  228. # {{ states("switch.wood_shed_light") }}
  229. # {% endif %}
  230. # #command_topic: "shelly1minig3-5432046da248/command/switch:0"
  231. # #payload_on: "on"
  232. # #payload_off: "off"
  233. # command_topic: "shelly1minig3-5432046da248/rpc"
  234. # payload_on: '{"id":1,"src":"ha","method":"Switch.Set","params":{"id":0,"on":true}}'
  235. # payload_off: '{"id":1,"src":"ha","method":"Switch.Set","params":{"id":0,"on":false}}'
  236. # qos: 1
  237. # retain: true
  238. # payload_available: "true"
  239. # state_on: "ON"
  240. # state_off: "OFF"
  241. button:
  242. - name: "Kitchen Alarm Notification"
  243. command_topic: "kitchen/alarm/notification"
  244. payload_press: "notification"
  245. qos: 1
  246. retain: false
  247. unique_id: "kitchen_alarm_notification"