You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.4KB

  1. mqtt:
  2. broker: your.mqtt.ip.address
  3. port: 1883
  4. client_id: home-assistant-1
  5. username: YOURUSERNAME
  6. password: YOURPASSWORD
  7. light:
  8. - platform: mqtt_json
  9. name: "SN1 LED"
  10. state_topic: "bruh/sensornode1"
  11. command_topic: "bruh/sensornode1/set"
  12. brightness: true
  13. flash: true
  14. rgb: true
  15. optimistic: false
  16. qos: 0
  17. sensor:
  18. - platform: mqtt
  19. state_topic: "bruh/sensornode1"
  20. name: "SN1 Humidity"
  21. unit_of_measurement: "%"
  22. value_template: '{{ value_json.humidity | round(1) }}'
  23. - platform: mqtt
  24. state_topic: "bruh/sensornode1"
  25. name: "SN1 LDR"
  26. ##This sensor is not calibrated to actual LUX. Rather, this a map of the input voltage ranging from 0 - 1023.
  27. unit_of_measurement: "LUX"
  28. value_template: '{{ value_json.ldr }}'
  29. - platform: mqtt
  30. state_topic: "bruh/sensornode1"
  31. name: "SN1 PIR"
  32. value_template: '{{ value_json.motion }}'
  33. - platform: mqtt
  34. state_topic: "bruh/sensornode1"
  35. name: "SN1 Temperature"
  36. unit_of_measurement: "°F"
  37. value_template: '{{ value_json.temperature | round(1) }}'
  38. group:
  39. sensor_node_1_card:
  40. name: Sensor Node 1
  41. entities:
  42. - sensor.sn1_temperature
  43. - sensor.sn1_humidity
  44. - sensor.sn1_ldr
  45. - sensor.sn1_pir
  46. - light.sn1_led