Stop sending data

hi,
i have a esp32 connected to solax solar inverter with modbus device and all work fine
but when the system start to produce energy the system start a check for about 30 sec and the total yield jump to 0 and the jump back to it original value.
and now think HA that i have produce 50 megawatt.
is there a way to stop send data to HA when the value = 0 ?

  - platform: modbus_controller
    modbus_controller_id: solax
    name: "Total Yield"
    register_type: read
    address: 0x423
    value_type: U_DWORD_R
    device_class: energy
    state_class: total_increasing
    icon: mdi:solar-power-variant-outline
    unit_of_measurement: "kWh"
    accuracy_decimals: 2
    filters:
      - multiply: 0.001

You could try a filter_out filter, or use a lambda to return NAN - see lambda under modbus sensor configuration variables:

ok thnx i will give it i try

i have add

- filter_out: 0.0

this seem to work Thnx