If a device has readings with similar names get_device_reading might output unrelated results
domschl opened this issue · 2 comments
domschl commented
As described by TK67 in Fhem forum, get_device_reading
returns inconsistent information, if a device has two readings, with one reading-name being a longer version of another reading, e.g. if readings myReading
and myReading2
exist, then asking for myReading2
would wrongly also return results for myReading
.
domschl commented
@Andre0512 : could you have a look at c3dbd44, I've changed your _response_filter function
, because if readings: name and name1 existed, then asking for get_device_reading(dev,'name1') would return both readings for name and name1 because of:
'Value' in v and (not len(arg) or (len(arg) and k == arg[0]))} # k in arg[0]))} fixes #14
domschl commented
Fixed in 0.6.2