Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # this is the same config that Ben had on his Github page
- mqtt:
- broker: 192.168.1.2
- port: 1883
- client_id: home-assistant-1
- keepalive: 60
- username: username(placeholders for username)
- password: password(placeholders for password)
- protocol: 3.1
- sensor:
- - platform: mqtt
- state_topic: "bruh/sensornode1"
- name: "SN1 Humidity"
- unit_of_measurement: "%"
- value_template: '{{ value_json.humidity | round(1) }}'
- - platform: mqtt
- state_topic: "bruh/sensornode1"
- name: "SN1 LDR"
- ##This sensor is not calibrated to actual LUX. Rather, this a map of the input voltage ranging from 0 - 1023.
- unit_of_measurement: "LUX"
- value_template: '{{ value_json.ldr }}'
- - platform: mqtt
- state_topic: "bruh/sensornode1"
- name: "SN1 PIR"
- value_template: '{{ value_json.motion }}'
- - platform: mqtt
- state_topic: "bruh/sensornode1"
- name: "SN1 Temperature"
- unit_of_measurement: "°F"
- value_template: '{{ value_json.temperature | round(1) }}'
- group:
- sensor_node_1_card:
- name: Sensor Node 1
- entities:
- - sensor.sn1_temperature
- - sensor.sn1_humidity
- - sensor.sn1_ldr
- - sensor.sn1_pir
- - light.sn1_led
Add Comment
Please, Sign In to add comment