I don’t use the ewelink integration here, purely AlexxIT/ SonoffLAN installed through HACS.
Inside configuration.yaml, sonoff-part (for TH10 & TH16):
sonoff:
username: !secret sonoff_usr
password: !secret sonoff_pwd
mode: local
reload: always # update device list every time HA starts
force_update: [temperature, power]
scan_interval: '00:00:30' # (optional) default 5 minutes
sensors: [temperature, humidity, power, current, voltage]