Read energy meter with esphome SML

Hi guys,

I am trying to read an energy meter using esphome and a hichi ir. It’s an ACE3000 type 260 energy meter that supports SML and obis codes.

I tried a basic configuration:

uart:
  id: uart_bus
  tx_pin: 1
  rx_pin: 3
  baud_rate: 300
  data_bits: 7
  parity: EVEN
  stop_bits: 1

sml:
  id: mysml
  uart_id: uart_bus

sensor:
  - platform: sml
    name: "PV-Energie"
    sml_id: mysml
    obis_code: "1-0:1.8.0"
    unit_of_measurement: kWh
    accuracy_decimals: 0
    device_class: energy
    state_class: total_increasing

I don’t get any readings from the energy meter with this config. After looking in the manual, I figured out, that I have to send a start sequnece to the meter.
I tested this with an UART adapter and it works as expected.

So my question is: how can I send data via uart with my configuration?
Is the interval component a way to got? (Automations and Templates — ESPHome)

Thanks in advance and regards.

I got it working with adding:

interval:
  - interval: 5min
    then:
      - uart.write: "/?!\r\n"

I am using an ACE3000 type 260 energy meter. Maybe this info is helpful for other users.

Würdest Du die komplette Konfiguration zeigen?
Wir haben den gleichen Zählertyp, aber ich bekomme keine Kommunikation hin.

Grüße

Hi,
I posted the config here:

best regards