-
Notifications
You must be signed in to change notification settings - Fork 158
/
config.example.yml
90 lines (76 loc) · 1.4 KB
/
config.example.yml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
mqtt:
host: test.mosquitto.org
port: 1883
user: ""
password: ""
topic_prefix: pimqttgpio/mydevice
gpio_modules:
- name: raspberrypi
module: raspberrypi
- name: pcf8574
module: pcf8574
i2c_bus_num: 1
chip_addr: 0x20
- name: dev
module: stdio
cleanup: no
- name: orangepi
module: orangepi
board: zero
mode: board
sensor_modules:
- name: lm75
module: lm75
i2c_bus_num: 1
chip_addr: 0x48
- name: ds18b22
module: ds18b
type: DS18S20
address: 000803702e49
- name: mhz19
module: mhz19
device: "/dev/ttyS1"
range: 5000
digital_inputs:
- name: button
module: raspberrypi
pin: 21
on_payload: "ON"
off_payload: "OFF"
pullup: no
pulldown: yes
- name: button_left
module: raspberrypi
pin: 23
interrupt_payload: "trigger"
pullup: no
pulldown: yes
interrupt: falling
bouncetime: 200
digital_outputs:
- name: bell
module: pcf8574
pin: 5
on_payload: "ON"
off_payload: "OFF"
initial: low
- name: test
module: dev
pin: 1
on_payload: "ON"
off_payload: "OFF"
sensor_inputs:
- name: temp_lm75
module: lm75
interval: 15
digits: 4
- name: temp_dsb18
module: ds18b22
interval: 10
digits: 2
- name: co2_mhz19
module: mhz19
interval: 30
ha_discovery:
name: CO2 MH-Z19
device_class: carbon_dioxide