Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
M30 Extension MODBUS RTU Controller
#1
I'm trying to connect another 6 channels to the M30 using an external modbus rtu energy meter.

I've configured the external meter as ID 16 (0x10), 38400 baud, and can query it directly.

But when I configure in yaml, I don't get any result.

The relevant part of my config is as follows:

Code:
uart:
  id: modbus_uart
  rx_pin: 32
  tx_pin: 33
  baud_rate: 115200
  stop_bits: 1
  data_bits: 8
  parity: NONE
 
debug:
  update_interval: 5s

modbus:
  id: modbus_hub
  uart_id: modbus_uart

modbus_controller:
  - id: modbus_hub_m30
    address: 1
    modbus_id: modbus_hub
    update_interval: 5s
  - id: modbus_ext_m6
    address: 16
    modbus_id: modbus_hub
    update_interval: 5s

sensor:
  - platform: modbus_controller
    modbus_controller_id: modbus_ext_m6
    address: 0
    register_type: holding
    name: "Modbus Extension Model Number"
    id: mext6_model_number
    value_type: U_WORD
 
  - platform: modbus_controller
    modbus_controller_id: modbus_hub_m30
    address: 100
    register_type: holding
    name: "Lights Current"
    id: m30_1_current_1
    unit_of_measurement: A
    accuracy_decimals: 3
    value_type: U_WORD
    filters:
      - multiply: 0.00098

Is this possible, and if so any ideas what I am doing wrong? I am just seeing 'NA' for the sensor and seemingly no polling.
Reply


Messages In This Thread
M30 Extension MODBUS RTU Controller - by markwj - 06-07-2025, 08:09 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)