Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
kWh resolution
#22
Data was cleared, but I did it again with this version.
[Image: Screenshot-2026-03-08-144617.png]

But still this, this is with a 100W bulb

[Image: Screenshot-2026-03-08-143500.png]

This is part of the yaml code.
Code:
uart:
# id: modbus_uart
  rx_pin: 9
  tx_pin: 10
  baud_rate: 115200
  stop_bits: 1
  data_bits: 8
  parity: none
 
modbus:

modbus_controller:
  - address: 1
    update_interval: 5s

sensor:
  - platform: modbus_controller
    address: 100
    register_type: holding
    name: current_1
    id: n30_1_current_1
    unit_of_measurement: A
    device_class: current
    accuracy_decimals: 3
    value_type: U_DWORD_R
    filters:
      - multiply: 0.001

  - platform: modbus_controller
    address: 118
    register_type: holding
    name: current_10
    id: n30_1_current_10
    unit_of_measurement: A
    device_class: current
    accuracy_decimals: 3
    value_type: U_DWORD_R
    filters:
      - multiply: 0.001

  - platform: modbus_controller
    address: 120
    register_type: holding
    name: power_1
    id: n30_1_watt_1
    unit_of_measurement: W
    device_class: power
    accuracy_decimals: 1
    value_type: U_DWORD_R
    filters:
      - multiply: 0.1

 

  - platform: modbus_controller
    address: 138
    register_type: holding
    name: power_10
    id: n30_1_watt_10
    unit_of_measurement: W
    device_class: power
    accuracy_decimals: 1
    value_type: U_DWORD_R
    filters:
      - multiply: 0.1

  - platform: modbus_controller
    state_class: total_increasing
    device_class: energy
    address: 140
    register_type: holding
    name: energy_01
    id: n30_1_energy_1
    unit_of_measurement: kWh
    accuracy_decimals: 1
    value_type: U_DWORD_R
  
 
  - platform: modbus_controller
    state_class: total_increasing
    device_class: energy
    address: 158
    register_type: holding
    name: energy_10
    id: n30_1_energy_10
    unit_of_measurement: kWh
    accuracy_decimals: 1
    value_type: U_DWORD_R

  - platform: modbus_controller
    state_class: total_increasing
    device_class: energy
    address: 160
    register_type: holding
    name: energy_sum
    id: n30_1_energy_sum
    unit_of_measurement: kWh
    accuracy_decimals: 1
    value_type: U_DWORD_R

  - platform: modbus_controller
    address: 162
    register_type: holding
    name: voltage
    id: n30_1_voltage
    unit_of_measurement: V
    device_class: voltage
    accuracy_decimals: 1
    value_type: U_WORD
    filters:
      - multiply: 0.01

  - platform: modbus_controller
    address: 163
    register_type: holding
    name: frequency
    id: n30_1_period
    unit_of_measurement: Hz
    device_class: frequency
    accuracy_decimals: 1
    value_type: U_WORD
    filters:
      - multiply: 0.01

  - platform: modbus_controller
    address: 164
    register_type: holding
    name: tps1
    id: n30_1_tps_1
    unit_of_measurement: °C
    device_class: temperature
    accuracy_decimals: 1
    value_type: FP32_R
Reply


Messages In This Thread
kWh resolution - by molelightn - 12-30-2025, 05:17 PM
RE: kWh resolution - by admin - 12-31-2025, 12:52 AM
RE: kWh resolution - by admin - 12-31-2025, 06:49 AM
RE: kWh resolution - by Painy - 02-16-2026, 12:16 PM
RE: kWh resolution - by admin - 02-16-2026, 01:29 PM
RE: kWh resolution - by Painy - 02-16-2026, 03:38 PM
RE: kWh resolution - by admin - 02-16-2026, 11:10 PM
RE: kWh resolution - by Painy - 02-17-2026, 10:30 AM
RE: kWh resolution - by admin - 02-18-2026, 03:18 AM
RE: kWh resolution - by Vega - 02-28-2026, 10:54 AM
RE: kWh resolution - by Painy - 03-02-2026, 09:33 AM
RE: kWh resolution - by Painy - 03-02-2026, 09:41 AM
RE: kWh resolution - by Painy - 03-02-2026, 09:43 AM
RE: kWh resolution - by Painy - 03-02-2026, 09:43 AM
RE: kWh resolution - by admin - 03-02-2026, 10:19 AM
RE: kWh resolution - by admin - 03-03-2026, 02:07 AM
RE: kWh resolution - by admin - 03-07-2026, 11:54 PM
RE: kWh resolution - by Vega - Yesterday, 12:21 AM
RE: kWh resolution - by admin - Yesterday, 06:05 AM
RE: kWh resolution - by Vega - Yesterday, 12:51 PM
RE: kWh resolution - by admin - Yesterday, 01:31 PM
RE: kWh resolution - by Vega - Yesterday, 01:55 PM
RE: kWh resolution - by admin - Yesterday, 10:04 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)