What you call "fake’ is better known as interpolation. I did some research and ran a Python program
to show you different types of interpolation used when plotting graphs.

On this graph, the orange dots are the real data points from the sensor.
The blue is the HA staircase. An interpolation between the data points consisting of a horizontal followed by a vertical line.
The green is the linear interpolation drawn when HA plots an input_number.
The dashed orange line is a cubic interpolation. It connects the points in an even smoother way but would probably be a challenge to implement running code on a Raspberry PI.
Here is the code used to produce the above plot:
import numpy as np
import matplotlib.pyplot as plt
from scipy.interpolate import interp1d
x = np.array([0,1,2,2,3,3,4,4,5,5,6,7])
y = np.array([0,0,0,1,1,2,2,1,1,0,0,0])
xs = np.array([0,1,2,3,4,5,6,7])
ys = np.array([0,0,1,2,1,0,0,0])
f = interp1d(xs, ys)
f2 = interp1d(xs, ys, kind='cubic')
xnew = np.linspace(0, 7, num=41, endpoint=True)
# Staircase
plt.plot(x, y)
# Splines
plt.plot(xs, ys, 'o', xnew, f(xnew), '-', xnew, f2(xnew), '--')
plt.legend(['stair', 'cubic','linear',], loc='best')
plt.show()
You can use it to see interpolation for other data points.
I have created a new post in “Share Your Project” which is a guide for smoother plots.