update db when value or status changes, add ZigbeeDirect to config, minor reorg of stateResolver common code