-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-rpi1.yaml
executable file
·179 lines (174 loc) · 3.77 KB
/
config-rpi1.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
general:
company_name: domIoT
device_name: hostname # 'hostname' will be replaced with device hostname
manufacturer: Raspberry pi foundation
sw_version: domIoT (beta) v0.3
model: PI3B+
platforms: # sensor that interfere with lora or ble must be commented
- none
# - bme280
# - bh1750
# - dht
# - onewire
# status_leds:
# - pin: 23
# name: green
# interval: 0.3
# - pin: 24
# name: red
# interval: 0.3
version: 0.1
scan_interval: 100
# temperature:
# unit_of_measurement: °C
# device_class: temperature
# humidity:
# unit_of_measurement: "%"
# device_class: humidity
# battery:
# unit_of_measurement: "%"
# device_class: battery
# pressure:
# unit_of_measurement: mB
# device_class: pressure
# illuminance:
# unit_of_measurement: lux
# device_class: illuminance
mqtt:
auto_configure: True
# host: rpi.clota.com
host: homeassistant.local
port: 1883
user: pi
password: domiot
mqtt_delay: 0.1
discovery_prefix: homeassistant
sensor: sensor
switch: switch
binary_sensor: binary_sensor
state: state
command: cmd
config: config
availability: available
built_in: built in # bulti in sensors name
online: online
offline: offline
payload_on: "ON"
payload_off: "OFF"
state_on: "ON"
state_off: "OFF"
payload_not_available: online
payload_available: offline
switch:
# - platform: gpio
# name: Office lens
# icon: mdi:spotlight-beam
# pin: 21
- platform: gpio
name: PC reset
icon: mdi:desktop-classic
pin: 20
- platform: gpio
name: PC switch
pin: 16
icon: mdi:desktop-classic
- platform: gpio
name: Beep
pin: 26
icon: mdi:bell-ring-outline
- platform: gpio
pin: 23
name: green LED
icon: mdi:led-off
- platform: gpio
pin: 24
name: red LED
icon: mdi:led-off
- platform: gpio
pin: 21
name: yellow LED
icon: mdi:led-off
- platform: gpio
pin: 18
name: Lens light
icon: mdi:checkbox-blank-circle-outline
binary_sensor:
# - platform: gpio
# device_class: light
# name: Button A
# pin: 18
# bouncetime: 300
# - platform: gpio
# device_class: plug
# name: Button B
# pin: 22
# bouncetime: 300
# - platform: gpio
# device_class: motion
# name: RCWL movement
# pin: 27
# bouncetime: 300
# inverted: True
- platform: gpio
device_class: power
name: PC power
pin: 19
bouncetime: 500
# sensor:
# - platform: bme280
# name: Ambient
# i2c_address: 0x77
# monitored_conditions:
# - temperature
# - humidity
# - pressure
# - platform: bh1750
# name: Iluminance
# monitored_conditions:
# - illuminance
# i2c_address: 0x23
# - platform: dht
# name: DHT
# sensor: DHT22
# pin: 20
# monitored_conditions:
# - temperature
# - humidity
# - platform: onewire
# name: cover
# monitored_conditions:
# - temperature
# ble:
# - device: Outdoors
# friendly_name: Outdoors (#1)
# platform: LYWSD03MMC
# manufacturer: Xiaomi
# sw_version: 1.0.0_0106
# model: LYWSD03MMC
# mac: A4:C1:38:89:F7:CA #1
# monitored_conditions:
# - temperature
# - humidity
# - battery
# - device: Office
# friendly_name: Office (#2)
# platform: LYWSD03MMC
# manufacturer: Xiaomi
# sw_version: 1.0.0_0106
# model: LYWSD03MMC
# mac: A4:C1:38:D3:A4:5D #2
# monitored_conditions:
# - temperature
# - humidity
# - battery
# - device: Downstairs
# friendly_name: Downstairs (#3)
# platform: LYWSD03MMC
# manufacturer: Xiaomi
# sw_version: 1.0.0_0106
# model: LYWSD03MMC
# mac: A4:C1:38:85:65:E4 #3
# monitored_conditions:
# - temperature
# - humidity
# - battery