I am looking into making the number of states in a device in a plugin dynamic. ==> Is there an example of a plugin where that is done.
I would like to make the number of RPIs in the piBeacon plugin dynamic. currently it has eg for each iBeacon:
Pi_x_Signal
Pi_x_distance
Pi_x_date
x =0....9 for each possible RPI
Most folks have 2-3 RPi, but I would like to have > 10. In order to do that I would have to add 3 extra states to each iBeacon pointing to RPi#11,12,13
and they are mostly not used and it looks ugly in the device state listing.
So any pointer appreciated.. I know there are some methods that are called by indigo to overwrite the Xml for devices etc. But I am better at learning by looking at some examples.
Thanks in advance
Karl