-
Notifications
You must be signed in to change notification settings - Fork 159
/
config.stdio.yml
77 lines (70 loc) · 1.26 KB
/
config.stdio.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
mqtt:
host: localhost
topic_prefix: mqtt_io
clean_session: yes
protocol: 3.1.1
keepalive: 10
reconnect_delay: 4
reconnect_count: 4
gpio_modules:
- name: stdio
module: stdio
digital_inputs:
- name: test
module: stdio
pin: 22
interrupt: rising
- name: button
module: stdio
pin: 21
on_payload: "ON"
off_payload: "OFF"
pullup: yes
pulldown: no
inverted: yes
interrupt: rising
interrupt_for:
- test
poll_interval: 2
digital_outputs:
- name: bell
module: stdio
pin: 20
on_payload: "ON"
off_payload: "OFF"
publish_initial: yes
initial: high
sensor_modules:
- name: mock
module: mock
sensor_inputs:
- name: mock_sensor
module: mock
interval: 2
logging:
version: 1
handlers:
console:
class: logging.StreamHandler
formatter: default
level: DEBUG
formatters:
default:
format: "%(asctime)s %(name)s [%(levelname)-8s] %(message)s"
datefmt: "%Y-%m-%d %H:%M:%S"
loggers:
paho:
level: DEBUG
handlers:
- console
propagate: yes
mqtt:
level: DEBUG
handlers:
- console
propagate: yes
mqtt_io:
level: DEBUG
handlers:
- console
propagate: yes