fix for querying boolean deviceAttributeEvents from database (#314)
0.8.22