-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathhuawei_r4850.yaml
75 lines (61 loc) · 1.24 KB
/
huawei_r4850.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
esphome:
name: huawei_r4850
friendly_name: Huawei R4850
external_components:
- source: github://mb-software/esphome-huawei-r4850
esp32:
board: esp32dev
# Enable logging
logger:
level: DEBUG
logs:
canbus: INFO
# Enable Home Assistant API
api:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
web_server:
canbus:
- platform: esp32_can
id: can
tx_pin: GPIO14
rx_pin: GPIO27
use_extended_id: true
can_id: 0
bit_rate: 125kbps
huawei_r4850:
canbus_id: can
update_interval: 5s
sensor:
- platform: huawei_r4850
output_voltage:
name: Output voltage
output_current:
name: Output current
output_power:
name: Output power
input_voltage:
name: Input voltage
input_current:
name: Input current
input_power:
name: Input power
input_frequency:
name: Input frequency
efficiency:
name: Efficiency
input_temp:
name: Input temperature
output_temp:
name: Output temperature
number:
- platform: huawei_r4850
output_voltage:
name: Set output voltage
max_output_current:
name: Max output current
button:
- platform: huawei_r4850
set_offline_values:
name: Set offline values