Skip to content

Commit 96095a9

Browse files
authored
Update README.md
1 parent d70d9e0 commit 96095a9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,31 @@ Configuration file:
110110

111111
see included configuration file, this sets MQTT server, MQTT base topic and details about each BLE sensor. Key info you need to have is MAC Address of each sensor and the device type of each.
112112

113+
Example Home Assistant MQTT sensor configuration:
114+
```
115+
- platform: mqtt
116+
name: "BLE Temperature Reading Hourly Stats"
117+
state_topic: "homeassistant/sensor/ble-temp/$SYS/hour-stats"
118+
value_template: "{{ value_json.total_adv_packets }}"
119+
unit_of_measurement: "Pkts"
120+
json_attributes_topic: "homeassistant/sensor/ble-temp/$SYS/hour-stats"
121+
122+
- platform: mqtt
123+
name: "Backyard ATC_MI Temperature"
124+
state_topic: "homeassistant/sensor/ble-temp/A4:C1:38:DD:10:20"
125+
value_template: "{{ value_json.temperature }}"
126+
unit_of_measurement: "°F"
127+
json_attributes_topic: "homeassistant/sensor/ble-temp/A4:C1:38:DD:10:20"
128+
129+
- platform: mqtt
130+
name: "Refrigerator Govee Humidity"
131+
state_topic: "homeassistant/sensor/ble-temp/3F:46:0D:31:70:28"
132+
value_template: "{{ value_json.humidity }}"
133+
unit_of_measurement: "%"
134+
json_attributes_topic: "homeassistant/sensor/ble-temp/3F:46:0D:31:70:28"
135+
136+
```
137+
113138
Dumping raw advertising packets to console:
114139

115140
If you add the MAC address of a BLE device to the configuration file and give it a type of '99', the program will display the raw type 0 and 4 advertising packet data to the console. Useful to help figure out the data format of a new temperature and humidity sensor.

0 commit comments

Comments
 (0)