forked from jeggleston1981/skyfandc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmicro_skyfan2.yaml
81 lines (69 loc) · 1.63 KB
/
micro_skyfan2.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
packages:
skyfan.tuya_fan: !include
file: tuya_fan.yaml
skyfan.tuya_light: !include
file: tuya_light.yaml
skyfan.sensor_ntc: !include
file: sensor_ntc.yaml
skyfan.sensor_tmp117: !include
file: sensor_tmp117.yaml
skyfan.sensor_power_fan: !include
file: sensor_power_fan.yaml
skyfan.sensor_power_light: !include
file: sensor_power_light.yaml
skyfan.sensor_rssi: !include
file: sensor_rssi.yaml
substitutions:
device_name: easy-skyfandc
fan_name: SkyFanDC
light_name: SkyFanDC-Light
temp_name: SkyFanDC-Temp
tmp117_name: "SkyFanDC TMP117"
skyfan_model: "SKY1203"
fan_rssi: "SkyFanDC-RSSI"
esphome:
name: ${device_name}
name_add_mac_suffix: true
project:
name: jimmy.easy_skyfandc
version: "0.2"
on_boot: #Setup temperature reading so you don't get a random reading come through at startup
priority: -100
then:
- switch.turn_on: led
- delay: 2s
- switch.turn_off: led
esp8266:
board: d1_mini
#web_server:
# port: 80
#Dashboard import if you want to adopt the device on your esphome dashboard
dashboard_import:
package_import_url: github://jeggleston1981/skyfandc/micro_skyfan2.yaml
api:
# Logger not using the serial port as tuya needs it
logger:
baud_rate: 0
# Version 0.2 has an i2c JST SH 4Pin Plug and uses the following pins
# Version 0.1 did use pin 4 as the power pin for the NTC
i2c:
sda: 4
scl: 5
scan: true
ota:
wifi:
ap:
password: ""
captive_portal:
uart:
rx_pin: GPIO3
tx_pin: GPIO1
baud_rate: 9600
tuya:
id: tuyamcu
switch:
- platform: gpio
pin:
number: 2
inverted: true
id: led