devices.esphome.io

Heltec HRI-485X

Heltec HRI-485X

Device Type: misc
Electrical Standard: global
Board: esp32
Difficulty: Disassembly required, 3/5

alt text

Model reference: HRI-485X

Manufacturer: Heltec

Basic Config

Configuration contains modbus sensors as example. First of leds on fron panel is always on (directly connected to power source), second is configured as indication of HA client connected, third led is ESPhome Status led)

GPIO16 is pin for powering MAX3485 chip. (Manufacturers magic ...)

esphome:
name: heltec-modbus
friendly_name: Heltec-Modbus
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
level: DEBUG
baud_rate: 0
# Enable Home Assistant API
api:
on_client_connected:
switch.turn_on: HAOnlineLed
on_client_disconnected:
switch.turn_off: HAOnlineLed
ota:
password: !secret ota
status_led:
pin: GPIO3
ethernet:
type: RTL8201
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
phy_addr: 0
uart:
- id: mod_bus
tx_pin: GPIO33
rx_pin: GPIO37
baud_rate: 9600
data_bits: 8
parity: NONE
stop_bits: 1
modbus:
- uart_id: mod_bus
id: modbus1
modbus_controller:
- id: epever
address: 0x1
modbus_id: modbus1
setup_priority: -10
update_interval: 5s
sensor:
- platform: modbus_controller
modbus_controller_id: epever
name: "Temperature"
id: temp
register_type: read
address: 0x0001
unit_of_measurement: "C"
value_type: U_WORD
accuracy_decimals: 1
filters:
- multiply: 0.1
- platform: modbus_controller
modbus_controller_id: epever
name: "Humidity"
id: hum
register_type: read
address: 0x0002
unit_of_measurement: "%"
value_type: U_WORD
accuracy_decimals: 1
filters:
- multiply: 0.1
switch:
- platform: gpio
pin: GPIO16
id: ModbusOnOff
- platform: gpio
pin: GPIO2
id: HAOnlineLed
inverted: true
export const _frontmatter = {"title":"Heltec HRI-485X","date-published":"2024-01-03T00:00:00.000Z","type":"misc","standard":"Global","board":"esp32","difficulty":3}
Edit this page on GitHub

On this page