mqtt.yaml 7.5 KB

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