ayasystems / froniusHttp

Fronius http phyton domoticz plugin
GNU General Public License v3.0
5 stars 3 forks source link

[suggestion][minor enhancement] Different devices regarding to device number #7

Open ajarzyn opened 3 years ago

ajarzyn commented 3 years ago

Hello,

It's not obvious that one will have only one inverted at 1 adders. According to documentation DeviceId could be in range from 0 to 99 thus assuming address '1' could lead to potential problems.

My suggestion is to Parse Scope=System request's answer and check how many (and with what addresses) devices there are in the system. Based on that create devices with proper index.

BR, jarzyn