Hello Everyone,
i’m stucked with this project where i want to get from my inverter few information…
I have a below 3 object connected each other:
- Invertek Optidrive E3 - https://inverterdrive.com/file/Invertek-Optidrive-E3-Manual
- ESP32 - https://www.amazon.it/gp/product/B071P98VTG/ref=ppx_yo_dt_b_search_asin_image?ie=UTF8&psc=1
- RS485 - https://www.amazon.it/dp/B017KNMVYM?psc=1&ref=ppx_yo2ov_dt_b_product_details
and based on documentation readed in the web i connected on below way:
This is also the ESPhome code i wrote but without success becase i have alwasy the follow message:
[18:34:37][D][modbus_controller:032]: Modbus command to device=1 register=0x7D3 countdown=0 no response received - removed from send queue
[18:34:41][D][modbus_controller:032]: Modbus command to device=1 register=0x7D2 countdown=0 no response received - removed from send queue
substitutions:
hostname: "invertek_optidrive_e3"
devicename: invertek_optidrive_e3
esphome:
name: $devicename
friendly_name: InverterPompaSommersa
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
baud_rate: 0
# level: DEBUG
# Enable Home Assistant API
api:
encryption:
key: "myKey"
ota:
wifi:
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Inverter-wifi"
password: "password"
captive_portal:
uart:
id: mod_bus
tx_pin: GPIO16
rx_pin: GPIO17
baud_rate: 115200
stop_bits: 1
data_bits: 8
parity: NONE
modbus:
id: modbus1
uart_id: mod_bus
send_wait_time: 200ms
modbus_controller:
- id: inverter
address: 0x01
modbus_id: modbus1
command_throttle: 0ms
setup_priority: -10
update_interval: 5s
sensor:
- platform: modbus_controller
modbus_controller_id: inverter
name: "Speed"
id: modbus_speed
register_type: read
address: 0x07D2 #parameter 2002
unit_of_measurement: "RPM"
value_type: U_WORD
accuracy_decimals: 2
disabled_by_default: false
- platform: modbus_controller
modbus_controller_id: inverter
name: "Current"
id: modbus_current
register_type: holding
address: 0x07D3 #parameter 2003
unit_of_measurement: "A"
value_type: U_WORD
accuracy_decimals: 2
disabled_by_default: false
- platform: template
id: flow_rate_sensor
lambda: |-
float current = id(modbus_current).state;
float speed = id(modbus_speed).state;
return (current / 9.80665) * speed;
name: "Flow Rate"
unit_of_measurement: "L/s"
disabled_by_default: true
can someone support on this? what’s wrong?