-
Notifications
You must be signed in to change notification settings - Fork 23
/
m5stack-atom-rs485kit.yaml
106 lines (85 loc) · 2.2 KB
/
m5stack-atom-rs485kit.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
esphome:
name: nibe-esp
esp32:
board: m5stack-atom
framework:
type: arduino
# Enable logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
encryption:
key: !secret api_password
ota:
- platform: esphome
password: !secret ota_password
wifi:
power_save_mode: none
ssid: !secret wifi_ssid
password: !secret wifi_password
external_components:
- source:
type: git
url: https://github.com/elupus/esphome-nibe.git
components: [ nibegw ]
uart:
id: my_uart
rx_pin: GPIO22
tx_pin: GPIO19
baud_rate: 9600
nibegw:
# If you have a named uart instance, you can specify this here.
uart_id: my_uart
udp:
# The target address(s) to send data to. May also be multicast addresses.
target:
- ip: 192.168.255.254
port: 9999
# List of source address to accept read/write from, may be empty for no filter, but
# this is not recommended.
source:
- 192.168.255.254
# Optional port this device will listen to to receive read requests. Defaults to 9999
# read_port: 9999
# Optional port this device will listen to to receive write request. Defaults to 10000
# write_port: 10000
acknowledge:
- MODBUS40
# Enable a dummy RMU40 accessory to receive updates
# to certain registers faster. This should not be
# enabled if you have an actual RMU40.
- RMU40_S4
# Constant replies to certain requests can be made
constants:
- address: MODBUS40
token: ACCESSORY
data: [
0x0A, # MODBUS version low
0x00, # MODBUS version high
0x02, # MODBUS address?
]
# Accessory version response
- address: RMU40_S4
token: ACCESSORY
data: [
0xEE, # RMU ?
0x03, # RMU version low
0x01, # RMU version high
]
# Unknown response that nibepi uses
- address: RMU40_S4
token: RMU_DATA
command: RMU_WRITE
data: [
0x63,
0x00,
]
# Constant fixed temperature to avoid pump going into alarm.
- address: RMU40_S4
token: RMU_WRITE
data: [
0x06, # Temperature
0x14, # degrees low
0x00, # degrees high
]