-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.ini.dist
65 lines (48 loc) · 1.55 KB
/
config.ini.dist
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
62
63
64
65
[DHT]
# Sensor type
sensor_type = DHT11
# GPIO pin on your Raspberry Pi/Beaglebone device
# pin =
# Temperature unit
temperature_unit = C
# Time between the measurements (in seconds)
time_between_measurements = 10
[MQTT]
# The MQTT broker hostname/address
# host =
# The MQTT broker port
port = 1883
# The MQTT username and password
# username =
# password =
# MQTT topics
temperature_base_topic = homeassistant/sensor/temperature/
humidity_base_topic = homeassistant/sensor/humidity/
# Repeat the MQTT config message for Home Assistant every x measurements
repeat_config_every = 15
# The MQTT payload options for the temperature and humidity
[MQTT_temperature]
device_class = temperature
name = Temperature
state_topic = homeassistant/sensor/BedroomSensor/state
unit_of_measurement = °C
value_template = {{ value_json.temperature}}
[MQTT_humidity]
device_class = humidity
name = Humidity
state_topic = homeassistant/sensor/BedroomSensor/state
unit_of_measurement = %
value_template = {{ value_json.humidity}}
# Options for MQTT TLS. These settings will be fed to the tls_set() method
# of the paho_mqtt client. See the documentation of the paho_mqtt client for
# more info
[MQTT_TLS]
# Configure the logging. There is a logging.StreamHandler that is always
# present, and a FileHandler which will be active if a file is specified.
# You can adjust the format and level of both handlers
[Logging]
level_stream = INFO
level_file = WARNING
format_stream = [%(levelname)s] - %(message)s
format_file = %(asctime)-15s [%(levelname)s] - %(message)s
#file = dht_mqtt.log