-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathesp32_max485.yaml
68 lines (56 loc) · 1.5 KB
/
esp32_max485.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
esphome:
name: nibegw
comment: Nibegw
platform: ESP32
board: lolin_d32
# Example is for a LolinD32 Board, use your own from here: https://esphome.io/components/esp32.html
# No API if you are using MQTT, password is optional
api:
password: !secret api_password
ota:
- platform: esphome
password: !secret ota_password
logger:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
power_save_mode: none
#fast_connect: true # --> Use fast_connect if you connecting to a hidden network
# Optional: Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "ESP D32 Nibe Proxy AP"
password: !secret ap_password
# Load nibe component
external_components:
- source: github://elupus/esphome-nibe
uart:
rx_pin: GPIO16
tx_pin: GPIO17
baud_rate: 9600
# Configure NibeGW
nibegw:
udp:
# The target address(s) to send data to. May be a multicast address.
target:
- ip: 192.168.255.254
port: 10090
# List of source address to accept data from, may be empty for no filter
source:
- 192.168.255.254
acknowledge:
- MODBUS40
# Constant replies to certain requests cabe made
constants:
- address: MODBUS40
token: ACCESSORY
data: [
0x0A, # MODBUS version low
0x00, # MODBUS version high
0x01, # MODBUS address?
]
# Some helper functions to restart ESPHome from HA
button:
- platform: restart
name: Nibegw Restart
- platform: safe_mode
name: Nibegw Safe Mode Boot