Some changes to OP.
Ran into a bug, where data can't be saved as a boolean. Occupancy data is given as a boolean, but gets morphed into zeros and ones. _set_data is too confusing for me to unravel... tonight.