I retrieve info in a php file and then send that info to a HA owntrack device tracker using mqtt. The result is that I can put info into the attributes of a device tracker. Perhaps you can repurpose a device tracker for your sensor.
To get info from HA api I use a HA shell command to execute a python script that retrieve the json info. You can then post to a mqtt feed and update at the rate you want.