Creating assets authomatically via external services

I have been working on a external service that is gonna work as the “manager” of my community. In here all the calculations, the energy distribution and such things will be done (it recieves information of another custom addon from Home Assistant via MQTT).

From all this, the goal is to once recieved this information from ever prosumer, a new asset would be created authomatically without needing the user to manually create each attribute and expecting to recieve data. So when Open Remote, who acts as a mere visualizer, recieves the data of my external service via HTTPS / MQTT, it should be capable of creating new assets with the information.

It is compulsary to mention that the external service receives data from several users from Home Assistant, so I wonder if all of this could be done without needing to change the code or configure mannually anything.

Hi!

… so I wonder if all of this could be done without needing to change the code or configure mannually anything

From what I understand, you would simply use one of the Manager APIs to do this.
Your service receives a message through HTTPS/MQTT, handle a bit of logic internally,
and create an asset through, for example, the HTTP API.

I don’t know what you mean with “without needing to change code” ?

1 Like

Actually thats exactly what I need! I did not even know there was this and could be done that way. Right now I had some things hardcoded, so I was really trying to figure out things.

Appreciate it!