-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathesp8266-example.yaml
107 lines (91 loc) · 2.19 KB
/
esp8266-example.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
substitutions:
name: dps
device_description: "Monitor and control a RDTech Digital Control Power Supply (DPS) via UART-TTL"
external_components_source: github://syssi/esphome-dps@main
tx_pin: GPIO4
rx_pin: GPIO5
esphome:
name: ${name}
comment: ${device_description}
min_version: 2024.6.0
project:
name: "syssi.esphome-dps"
version: 1.2.0
esp8266:
board: d1_mini
external_components:
- source: ${external_components_source}
refresh: 0s
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ota:
platform: esphome
logger:
level: DEBUG
# If you use Home Assistant please remove this `mqtt` section and uncomment the `api` component!
# The native API has many advantages over MQTT: https://esphome.io/components/api.html#advantages-over-mqtt
mqtt:
broker: !secret mqtt_host
username: !secret mqtt_username
password: !secret mqtt_password
id: mqtt_client
# api:
uart:
id: uart_0
baud_rate: 9600
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
modbus:
id: modbus0
uart_id: uart_0
send_wait_time: 0ms
dps:
id: dps0
modbus_id: modbus0
update_interval: 5s
current_resolution: AUTO
binary_sensor:
- platform: dps
output:
name: "${name} output"
key_lock:
name: "${name} key lock"
constant_current_mode:
name: "${name} constant current mode"
sensor:
- platform: dps
output_voltage:
name: "${name} output voltage"
output_current:
name: "${name} output current"
output_power:
name: "${name} output power"
input_voltage:
name: "${name} input voltage"
voltage_setting:
name: "${name} voltage setting"
current_setting:
name: "${name} current setting"
backlight_brightness:
name: "${name} backlight brightness"
firmware_version:
name: "${name} firmware version"
text_sensor:
- platform: dps
protection_status:
name: "${name} protection status"
device_model:
name: "${name} device model"
switch:
- platform: dps
output:
name: "${name} output"
key_lock:
name: "${name} key lock"
number:
- platform: dps
voltage_setting:
name: "${name} voltage setting"
current_setting:
name: "${name} current setting"