Hello, any guidance on this below query would be really helpful. I am trying to find a way to create Items automatically using REST API (I will write an external service to do this). I am looking for some initial guidance on how to go about doing this.
For example, I have a Tesla binding added with a few things and items like this:
Thing: Thing tesla:models:1 “MyTesla” @ “Home” [ vin=“XXX”]
Item ex: Dimmer 1_SoC “State of Charge [%.1f %%]” {channel=“tesla:models:1:soc”}
If I were to go about creating this item (and potentially recurse thru all channels and create respective items) using Rest API how do I go about doing that? I understand I will need to use this API:
/items/createOrUpdateItem . But how would the json look like and how different will they have to be for each channel ?
Thanks in advance,
Rk.