mqtt.yaml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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. - name: "Caravan Inside Temperature"
  86. unique_id: "caravan_inside_temperature_A"
  87. state_topic: "rf433/clas/2/state"
  88. #value_template: "{{ value_json.values.temperature }}"
  89. value_template: "{{ value_json['values']['temperature'] }}"
  90. unit_of_measurement: "°C"
  91. device_class: temperature
  92. state_class: measurement
  93. #availability_topic: "rf433/clas/2/state"
  94. # --------------------------------------- For Test ---------------------------------------
  95. #- name: Limedal Hottub Water Temperature
  96. # state_topic: "limedal-hottub/sensor/water_temperature/state"
  97. # unit_of_measurement: "°C"
  98. #- name: Limedal Hottub WiFi Signal Strength
  99. # state_topic: "limedal-hottub/sensor/wifi_signal_strength/state"
  100. # unit_of_measurement: "dBm"
  101. light:
  102. - schema: json
  103. name: "Kitchen worktop 4K"
  104. unique_id: "kitchen_worktop_lights_4K"
  105. state_topic: "kitchen/worktop/lights_4K"
  106. command_topic: "kitchen/worktop/lights_4K/set"
  107. # availability:
  108. # - topic: "kitchen/worktop/lights_4K/available"
  109. retain: true
  110. optimistic: false
  111. qos: 0
  112. brightness_scale: 1000
  113. brightness: true
  114. - schema: json
  115. name: "Kitchen worktop 27K"
  116. unique_id: "kitchen_worktop_lights_27K"
  117. state_topic: "kitchen/worktop/lights_27K"
  118. command_topic: "kitchen/worktop/lights_27K/set"
  119. # availability:
  120. # - topic: "kitchen/worktop/lights_27K/available"
  121. retain: true
  122. optimistic: false
  123. qos: 0
  124. brightness_scale: 1000
  125. brightness: true
  126. # Example of Shelly1 Mini G3 light via RPC
  127. #light:
  128. # - name: "Front Door Light"
  129. # schema: template
  130. # unique_id: "shelly1minig3_front_door_light"
  131. # command_topic: "shelly1minig3-5432046e1e88/rpc"
  132. # command_on_template: '{"id":124, "src":"my_shelly", "method":"Switch.Set", "params":{"id":0, "on":true}}'
  133. # command_off_template: '{"id":124, "src":"my_shelly", "method":"Switch.Set", "params":{"id":0, "on":false}}'
  134. # state_topic: "shelly1minig3-5432046e1e88/events/rpc"
  135. # state_template: >
  136. # {% if value_json.method == "NotifyStatus" %}
  137. # {{ "on" if value_json.params["switch:0"].output else "off" }}
  138. # {% else %}
  139. # {{ states("light.front_door_light") }}
  140. # {% endif %}
  141. # retain: false
  142. # optimistic: false
  143. # availability_topic: "shelly1minig3-5432046e1e88/online"
  144. # payload_available: "true"
  145. # payload_not_available: "false"
  146. binary_sensor:
  147. - name: "Kitchen worklight switch"
  148. unique_id: "kitchen_worklight_switch"
  149. state_topic: "kitchen/worklight_switch"
  150. availability:
  151. - topic: "kitchen/worklight_switch/available"
  152. qos: 0
  153. device_class: power
  154. - name: "Kitchen Fridge Door"
  155. unique_id: "kitchen_fridge_door"
  156. state_topic: "kitchen/fridge/doorState"
  157. availability:
  158. - topic: "kitchen/fridge/available"
  159. qos: 0
  160. device_class: door
  161. payload_on: "open"
  162. payload_off: "closed"
  163. - name: "Kitchen Freezer Door"
  164. unique_id: "kitchen_freezer_door"
  165. state_topic: "kitchen/freezer/doorState"
  166. availability:
  167. - topic: "kitchen/fridge/available"
  168. qos: 0
  169. device_class: door
  170. payload_on: "open"
  171. payload_off: "closed"
  172. - name: "Mouse Detector"
  173. unique_id: "kitchen_mouse_detector"
  174. state_topic: "kitchen/mouse/motion"
  175. payload_on: "ON"
  176. payload_off: "OFF"
  177. availability_topic: "kitchen/mouse/status"
  178. payload_available: "online"
  179. payload_not_available: "offline"
  180. device_class: motion
  181. switch:
  182. - name: "Kitchen Audible Alarm"
  183. state_topic: "kitchen/alarm/state"
  184. command_topic: "kitchen/alarm/set"
  185. availability:
  186. - topic: "kitchen/alarm/available"
  187. payload_on: "on"
  188. payload_off: "off"
  189. state_on: "on"
  190. state_off: "off"
  191. retain: true
  192. qos: 1
  193. unique_id: "kitchen_audible_alarm"
  194. #- name: "Limedal Hottub Strong LED Light"
  195. # state_topic: "limedal-hottub/switch/strong_led_switch/state"
  196. # command_topic: "limedal-hottub/switch/strong_led_switch/command"
  197. # payload_on: "ON"
  198. # payload_off: "OFF"
  199. # state_on: "ON"
  200. # state_off: "OFF"
  201. # unique_id: "limedal_hottub_strong_led_light"
  202. #- name: "Front Door Light"
  203. # unique_id: "shelly1minig3_front_door_light"
  204. # state_topic: "shelly1minig3-front-door/relay/0/status"
  205. # command_topic: "shelly1minig3-front-door/command/switch:0"
  206. # availability:
  207. # - topic: "shelly1minig3-front-door/online"
  208. # payload_on: "on"
  209. # payload_off: "off"
  210. # state_on: "on"
  211. # state_off: "off"
  212. # retain: true
  213. # qos: 1
  214. #- unique_id: shelly1minig3_front_door_light
  215. # name: "Front Door Light"
  216. # state_topic: "shelly1minig3-5432046e1e88/events/rpc"
  217. # value_template: >
  218. # {% if value_json.method == "NotifyStatus" %}
  219. # {{ "ON" if value_json.params["switch:0"].output else "ON" }}
  220. # {% else %}
  221. # {{ states("switch.front_door_light") }}
  222. # {% endif %}
  223. # command_topic: "shelly1minig3-5432046e1e88/rpc"
  224. # payload_on: '{"id":1,"src":"ha","method":"Switch.Set","params":{"id":0,"on":true}}'
  225. # payload_off: '{"id":1,"src":"ha","method":"Switch.Set","params":{"id":0,"on":false}}'
  226. # qos: 1
  227. # retain: true
  228. # payload_available: "true"
  229. # state_on: "ON"
  230. # state_off: "OFF"
  231. # - unique_id: shelly1minig3_wood_shed_light
  232. # name: "Wood Shed Light"
  233. # state_topic: "shelly1minig3-5432046da248/events/rpc"
  234. # value_template: >
  235. # {% if value_json.method == "NotifyStatus" %}
  236. # {{ "ON" if value_json.params["switch:0"].output else "ON" }}
  237. # {% else %}
  238. # {{ states("switch.wood_shed_light") }}
  239. # {% endif %}
  240. # #command_topic: "shelly1minig3-5432046da248/command/switch:0"
  241. # #payload_on: "on"
  242. # #payload_off: "off"
  243. # command_topic: "shelly1minig3-5432046da248/rpc"
  244. # payload_on: '{"id":1,"src":"ha","method":"Switch.Set","params":{"id":0,"on":true}}'
  245. # payload_off: '{"id":1,"src":"ha","method":"Switch.Set","params":{"id":0,"on":false}}'
  246. # qos: 1
  247. # retain: true
  248. # payload_available: "true"
  249. # state_on: "ON"
  250. # state_off: "OFF"
  251. button:
  252. - name: "Kitchen Alarm Notification"
  253. command_topic: "kitchen/alarm/notification"
  254. payload_press: "notification"
  255. qos: 1
  256. retain: false
  257. unique_id: "kitchen_alarm_notification"