CrazYoshi / ebusdpy

ebusd python integration library
MIT License
2 stars 3 forks source link

Cannot extract value from the result if it is not the first element in the ; delimited string result #9

Open brucemiranda opened 2 years ago

brucemiranda commented 2 years ago

There is an assumption made that all values of interest will be the first element in ; (semicolon) delimited string result from ebusd. However that is not always the case. There are several commands where the value you need to extract is deeper that at position 0. It would be good to enhance the sensor type 4 to include which element of the returned string is required rather than always assuming its element 0 needed. e.g. 4[0] can be the default (to allow backward compatibility) , but also allow 4[x] so that other elements can also be read successfully.