-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Needed an example for an ESP32 and MAX485-chipset. Not pretty but it's something.
- Loading branch information
Showing
4 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
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: | ||
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.