forked from bruhautomation/ESP-MQTT-JSON-Multisensor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_home_assistant_configuration.yaml
61 lines (51 loc) · 1.52 KB
/
example_home_assistant_configuration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
mqtt:
broker: your.mqtt.ip.address
port: 1883
client_id: home-assistant-1
username: YOURUSERNAME
password: YOURPASSWORD
light:
- platform: mqtt_json
name: "SN1 LED"
state_topic: "bruh/sensornode1"
command_topic: "bruh/sensornode1/set"
brightness: true
flash: true
rgb: true
optimistic: false
qos: 0
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) }}'
- platform: mqtt
state_topic: "bruh/sensornode1"
name: "SN1 Real Feel"
unit_of_measurement: "°F"
value_template: '{{ value_json.heatIndex | 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