add LegacyOnOffDevice support