troubledratard

Untitled

Jun 18th, 2017
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. # this is the same config that Ben had on his Github page
  2. mqtt:
  3. broker: 192.168.1.2
  4. port: 1883
  5. client_id: home-assistant-1
  6. keepalive: 60
  7. username: username(placeholders for username)
  8. password: password(placeholders for password)
  9. protocol: 3.1
  10.  
  11. sensor:
  12. - platform: mqtt
  13. state_topic: "bruh/sensornode1"
  14. name: "SN1 Humidity"
  15. unit_of_measurement: "%"
  16. value_template: '{{ value_json.humidity | round(1) }}'
  17.  
  18. - platform: mqtt
  19. state_topic: "bruh/sensornode1"
  20. name: "SN1 LDR"
  21. ##This sensor is not calibrated to actual LUX. Rather, this a map of the input voltage ranging from 0 - 1023.
  22. unit_of_measurement: "LUX"
  23. value_template: '{{ value_json.ldr }}'
  24.  
  25. - platform: mqtt
  26. state_topic: "bruh/sensornode1"
  27. name: "SN1 PIR"
  28. value_template: '{{ value_json.motion }}'
  29.  
  30. - platform: mqtt
  31. state_topic: "bruh/sensornode1"
  32. name: "SN1 Temperature"
  33. unit_of_measurement: "°F"
  34. value_template: '{{ value_json.temperature | round(1) }}'
  35.  
  36.  
  37. group:
  38. sensor_node_1_card:
  39. name: Sensor Node 1
  40. entities:
  41. - sensor.sn1_temperature
  42. - sensor.sn1_humidity
  43. - sensor.sn1_ldr
  44. - sensor.sn1_pir
  45. - light.sn1_led
Add Comment
Please, Sign In to add comment