A pair of bills in Massachusetts would require manufacturers to tell consumers when their connected gadgets are going dark.