Here is my use case:
Whenever I install a binding that auto discovers things, I like to create an *.items file that contains all the possible items. I start with many items and once I get a better understanding about what they do, I remove some of the items again.
Is there any way (besides using Visual Studio) to create this file or the content automatically?
Let’s take a look at an example, here a Shelly device:
In this case I’d like to create 4 items.
PS: I started to build a small web application that allows me to select the Thing for which I want to create the items, but I’m confused on how to detect the item type. For example I see values like “Number:Time” which is not allowed for a *.items file. Fun fact: The REST API provides more channels than displayed via PaperUI (see below)
uhm… this goes beyond my expertise I know how to use it as an enduser (clone, create issues etc.) but I need to check how I can create my own repository. would you be willing to help? we can do it in German
I’ve modified the sample a bit so you can add a “leading” string to the item names. see screenshot. Taking a look at the example I think something like PLUG1_NETWORK_SSID is much better than something like: MIIO_GENERIC_0723B6D1_SSID. Do you have any other suggestion?
I was planning on writing something VERY close to this in python this weekend, to let me overhaul my item config. This is sooooo close.
js is not a language I work with (yet), I am going to play around with this this weekend tho. I personally will need to also add a leading string to the Label for my use. Dunno if that is something others would want/need. If I do make that change I’ll make it optional and submit a pull request.