Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create m5stack-atom-lite-tail485.yaml #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions examples/m5stack-atom-lite-tail485.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
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:
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: GPIO32
tx_pin: GPIO26
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
]